Drag husks to their final location. Fixes #730.

This commit is contained in:
Paul Chote
2011-07-25 23:50:11 +12:00
parent 49cbaeb1d2
commit 0a5f81c39e
3 changed files with 110 additions and 24 deletions

View File

@@ -50,7 +50,7 @@ namespace OpenRA
{
T Value( World world );
}
public class FacingInit : IActorInit<int>
{
[FieldFromYamlKey]
@@ -68,7 +68,7 @@ namespace OpenRA
return value;
}
}
public class AltitudeInit : IActorInit<int>
{
[FieldFromYamlKey]
@@ -105,6 +105,24 @@ namespace OpenRA
}
}
public class CenterLocationInit : IActorInit<int2>
{
[FieldFromYamlKey]
public readonly int2 value = int2.Zero;
public CenterLocationInit() { }
public CenterLocationInit( int2 init )
{
value = init;
}
public int2 Value( World world )
{
return value;
}
}
public class OwnerInit : IActorInit<Player>
{
[FieldFromYamlKey]