Пример #1
0
 public ServerMgr()
 {
     statsMgr      = new StatsMgr(null);
     isInitialized = false;
     shouldQuit    = false;
     Time          = 0;
     Id            = IdMgr.GetNewServerId();
 }
Пример #2
0
 public SceneMgr()
 {
     StatsMgr          = new StatsMgr(this);
     isGameInitialized = false;
     shouldQuit        = false;
     synchronizedQueue = new ConcurrentQueue <Action>();
     GameWindowState   = WindowState.IN_MAIN_MENU;
 }
 private void ReceivedPlayerReceivedPowerUpMsg(NetIncomingMessage msg)
 {
     StatsMgr.AddStatToPlayer(GetPlayer(msg.ReadInt32()).Data, (PlayerStats)msg.ReadByte(), msg.ReadFloat());
 }