ActorInitializer, in preparation for next change (bob)
This commit is contained in:
@@ -27,10 +27,9 @@ using OpenRA.Mods.RA;
|
||||
|
||||
namespace OpenRA.Mods.Aftermath
|
||||
{
|
||||
class ChronoshiftDeployInfo : ITraitInfo
|
||||
class ChronoshiftDeployInfo : TraitInfo<ChronoshiftDeploy>
|
||||
{
|
||||
public readonly int ChargeTime = 120; // Seconds
|
||||
public object Create(Actor self) { return new ChronoshiftDeploy(self); }
|
||||
}
|
||||
|
||||
class ChronoshiftDeploy : IIssueOrder, IResolveOrder, ITick, IPips
|
||||
@@ -39,8 +38,6 @@ namespace OpenRA.Mods.Aftermath
|
||||
[Sync]
|
||||
int chargeTick = 0; // How long until we can chronoshift again?
|
||||
|
||||
public ChronoshiftDeploy(Actor self) { }
|
||||
|
||||
public void Tick(Actor self)
|
||||
{
|
||||
if (chargeTick > 0)
|
||||
|
||||
Reference in New Issue
Block a user