fix #1052; tidy up *Init; route initial turret facing for husks through new TurretFacingInit

This commit is contained in:
Chris Forbes
2011-07-28 23:07:14 +12:00
parent 096fe7759c
commit 2bf7cb1496
7 changed files with 84 additions and 164 deletions

View File

@@ -89,19 +89,9 @@ namespace OpenRA.Mods.RA
public class HuskSpeedInit : IActorInit<int>
{
[FieldFromYamlKey]
public readonly int value = 0;
[FieldFromYamlKey] public readonly int value = 0;
public HuskSpeedInit() { }
public HuskSpeedInit( int init )
{
value = init;
}
public int Value( World world )
{
return value;
}
public HuskSpeedInit( int init ) { value = init; }
public int Value( World world ) { return value; }
}
}