Use expression body syntax

This commit is contained in:
teinarss
2021-02-25 20:52:13 +01:00
committed by Paul Chote
parent 555c43843b
commit 4a1e4f3e16
403 changed files with 1342 additions and 2031 deletions

View File

@@ -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)
{