Add IBotEnabled interface.
This commit is contained in:
@@ -72,6 +72,8 @@ namespace OpenRA.Mods.Common.Traits
|
||||
player = p;
|
||||
tickModules = p.PlayerActor.TraitsImplementing<IBotTick>().ToArray();
|
||||
attackResponseModules = p.PlayerActor.TraitsImplementing<IBotRespondToAttack>().ToArray();
|
||||
foreach (var ibe in p.PlayerActor.TraitsImplementing<IBotEnabled>())
|
||||
ibe.BotEnabled(this);
|
||||
}
|
||||
|
||||
void IBot.QueueOrder(Order order)
|
||||
|
||||
@@ -470,6 +470,9 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[RequireExplicitImplementation]
|
||||
public interface IPreventsShroudReset { bool PreventShroudReset(Actor self); }
|
||||
|
||||
[RequireExplicitImplementation]
|
||||
public interface IBotEnabled { void BotEnabled(IBot bot); }
|
||||
|
||||
[RequireExplicitImplementation]
|
||||
public interface IBotTick { void BotTick(IBot bot); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user