Use expression body syntax
This commit is contained in:
@@ -30,9 +30,9 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Minimum portion of pending orders to issue each tick (e.g. 5 issues at least 1/5th of all pending orders). Excess orders remain queued for subsequent ticks.")]
|
||||
public readonly int MinOrderQuotientPerTick = 5;
|
||||
|
||||
string IBotInfo.Type { get { return Type; } }
|
||||
string IBotInfo.Type => Type;
|
||||
|
||||
string IBotInfo.Name { get { return Name; } }
|
||||
string IBotInfo.Name => Name;
|
||||
|
||||
public override object Create(ActorInitializer init) { return new ModularBot(this, init); }
|
||||
}
|
||||
@@ -50,8 +50,8 @@ namespace OpenRA.Mods.Common.Traits
|
||||
IBotTick[] tickModules;
|
||||
IBotRespondToAttack[] attackResponseModules;
|
||||
|
||||
IBotInfo IBot.Info { get { return info; } }
|
||||
Player IBot.Player { get { return player; } }
|
||||
IBotInfo IBot.Info => info;
|
||||
Player IBot.Player => player;
|
||||
|
||||
public ModularBot(ModularBotInfo info, ActorInitializer init)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user