added WeaponInfo

This commit is contained in:
Bob
2009-10-13 20:57:43 +13:00
parent e86b0cdaa0
commit 9af7b09e1d
9 changed files with 152 additions and 58 deletions

View File

@@ -14,14 +14,14 @@ namespace OpenRa.Game
class Actor
{
public readonly TypeDictionary traits = new TypeDictionary();
public readonly UnitInfo.BaseInfo unitInfo;
public readonly UnitInfo unitInfo;
public int2 Location;
public Player Owner;
public Actor( string name, int2 location, Player owner )
{
unitInfo = Rules.UnitInfo.Get( name );
unitInfo = Rules.UnitInfo[ name ];
Location = location;
CenterLocation = new float2( 12, 12 ) + 24 * (float2)Location;
Owner = owner;