Rename RaceInit to FactionInit

This commit is contained in:
penev92
2015-07-15 05:59:02 +03:00
committed by Pavel Penev
parent b34810c1d3
commit 7c1ef2231d
19 changed files with 36 additions and 30 deletions

View File

@@ -103,13 +103,13 @@ namespace OpenRA
}
}
// Allows maps / transformations to specify the race variant of an actor.
public class RaceInit : IActorInit<string>
// Allows maps / transformations to specify the faction variant of an actor.
public class FactionInit : IActorInit<string>
{
[FieldFromYamlKey] public readonly string Race;
[FieldFromYamlKey] public readonly string Faction;
public RaceInit() { }
public RaceInit(string race) { Race = race; }
public string Value(World world) { return Race; }
public FactionInit() { }
public FactionInit(string faction) { Faction = faction; }
public string Value(World world) { return Faction; }
}
}