Changed: Made ConquestVictoryConditions public (same for Surrender / Win methods)

This commit is contained in:
geckosoft
2010-11-15 09:08:46 +01:00
committed by Chris Forbes
parent 7f7c293856
commit 2a7525122e

View File

@@ -13,9 +13,9 @@ using OpenRA.Traits;
namespace OpenRA.Mods.RA namespace OpenRA.Mods.RA
{ {
class ConquestVictoryConditionsInfo : TraitInfo<ConquestVictoryConditions> { } public class ConquestVictoryConditionsInfo : TraitInfo<ConquestVictoryConditions> { }
class ConquestVictoryConditions : ITick, IResolveOrder public class ConquestVictoryConditions : ITick, IResolveOrder
{ {
public void Tick(Actor self) public void Tick(Actor self)
{ {
@@ -40,7 +40,7 @@ namespace OpenRA.Mods.RA
Surrender(self); Surrender(self);
} }
void Surrender(Actor self) public void Surrender(Actor self)
{ {
if (self.Owner.WinState == WinState.Lost) return; if (self.Owner.WinState == WinState.Lost) return;
self.Owner.WinState = WinState.Lost; self.Owner.WinState = WinState.Lost;
@@ -53,7 +53,7 @@ namespace OpenRA.Mods.RA
} }
void Win(Actor self) public void Win(Actor self)
{ {
if (self.Owner.WinState == WinState.Won) return; if (self.Owner.WinState == WinState.Won) return;
self.Owner.WinState = WinState.Won; self.Owner.WinState = WinState.Won;