git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1312 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -7,10 +7,11 @@ namespace OpenRa.Game
|
||||
class Building : Actor
|
||||
{
|
||||
protected Animation animation;
|
||||
protected int2 location;
|
||||
|
||||
public Building( string name, int2 location, int palette )
|
||||
{
|
||||
this.renderLocation = 24.0f * location.ToFloat2();
|
||||
this.location = location;
|
||||
this.palette = palette;
|
||||
|
||||
animation = new Animation( name );
|
||||
@@ -26,5 +27,10 @@ namespace OpenRa.Game
|
||||
{
|
||||
get { return animation.Images; }
|
||||
}
|
||||
|
||||
public override float2 RenderLocation
|
||||
{
|
||||
get { return 24.0f * location.ToFloat2(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user