UpgradeManager after IUpgradables
This commit is contained in:
@@ -12,12 +12,12 @@ using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
class KillsSelfInfo : UpgradableTraitInfo, ITraitInfo
|
||||
class KillsSelfInfo : UpgradableTraitInfo
|
||||
{
|
||||
[Desc("Remove the actor from the world (and destroy it) instead of killing it.")]
|
||||
public readonly bool RemoveInstead = false;
|
||||
|
||||
public object Create(ActorInitializer init) { return new KillsSelf(this); }
|
||||
public override object Create(ActorInitializer init) { return new KillsSelf(this); }
|
||||
}
|
||||
|
||||
class KillsSelf : UpgradableTrait<KillsSelfInfo>, INotifyAddedToWorld
|
||||
|
||||
Reference in New Issue
Block a user