improve TraitDictionary error messages

This commit is contained in:
Chris Forbes
2011-12-28 08:01:59 +13:00
parent 9581595a3d
commit 418b8d40f9
4 changed files with 23 additions and 54 deletions

View File

@@ -70,6 +70,14 @@ namespace OpenRA
public int2 Value( World world ) { return value; }
}
public class SubCellInit : IActorInit<SubCell>
{
[FieldFromYamlKey] public readonly int value = 0;
public SubCellInit() { }
public SubCellInit(int init) { value = init; }
public SubCell Value(World world) { return (SubCell)value; }
}
public class CenterLocationInit : IActorInit<int2>
{
[FieldFromYamlKey] public readonly int2 value = int2.Zero;