public Game() { GameID = Guid.NewGuid(); Players = new Dictionary<int, ICharacterInfo>(); Observers = new Dictionary<int, ICharacterInfo>(); EverActivePlayers = new Dictionary<int, ICharacterInfo>(); IsShuttingDown = false; Properties = new PropertyBag("GameProperties"); Properties.SubscribeToChangeNotifications(this); Owner = 0; AbandonedTimestamp = DateTime.MaxValue; ObjectManager = new GameObjectManager(GameID); }
public SquareGridPlayArea(int xWidth, int yHeight, float worldUnitsTileWidth, GameObjectManager objMgr) { m_WorldUnitsTileWidth = worldUnitsTileWidth; m_XWidth = xWidth; m_YHeight = yHeight; Tiles = new TileType[xWidth, yHeight]; }