Replay stuff.

FYI: Don't try to replay a game where you built any vehicles. It WILL fail horribly.
This commit is contained in:
Bob
2009-10-29 01:57:47 +13:00
parent 7c5fc4aa76
commit 89f9a96de5
6 changed files with 308 additions and 225 deletions

View File

@@ -14,14 +14,16 @@ namespace OpenRa.Game
class Actor
{
public readonly TypeDictionary traits = new TypeDictionary();
public readonly UnitInfo unitInfo;
public readonly UnitInfo unitInfo;
public readonly uint ActorID;
public int2 Location;
public Player Owner;
public int Health;
public Actor( string name, int2 location, Player owner )
{
{
ActorID = Game.world.NextAID();
unitInfo = Rules.UnitInfo[ name ];
Location = location;
CenterLocation = new float2( 12, 12 ) + Game.CellSize * (float2)Location;