コード例 #1
0
ファイル: Game.cs プロジェクト: kamilion/WISP
 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);
 }
コード例 #2
0
 public SquareGridPlayArea(int xWidth, int yHeight, float worldUnitsTileWidth, GameObjectManager objMgr)
 {
     m_WorldUnitsTileWidth = worldUnitsTileWidth;
     m_XWidth  = xWidth;
     m_YHeight = yHeight;
     Tiles     = new TileType[xWidth, yHeight];
 }