Introduce IUpgradable and purchasable unit upgrades.

This commit is contained in:
Paul Chote
2014-07-30 19:34:59 +12:00
parent 4cf822cd00
commit bf5da145b0
4 changed files with 164 additions and 0 deletions

View File

@@ -83,6 +83,12 @@ namespace OpenRA.Traits
public interface INotifyHarvest { void Harvested(Actor self, ResourceType resource); }
public interface INotifyInfiltrated { void Infiltrated(Actor self, Actor infiltrator); }
public interface IUpgradable
{
bool AcceptsUpgrade(string type);
void UpgradeAvailable(Actor self, string type, bool available);
}
public interface ISeedableResource { void Seed(Actor self); }
public interface IDemolishableInfo { bool IsValidTarget(ActorInfo actorInfo, Actor saboteur); }