Exemplo n.º 1
0
        static GameManager()
        {
            Map = GenerateMap();

            listOfWinners    = new List <Player>();
            winnersSemaphore = new SemaphoreSlim(1, 1);

            actionCache = new ActionCache();
            executor    = new Executor(actionCache);
            Players     = new Dictionary <int, NetworkPlayer>();
            roles       = RoleManager.GetAllRolesRandomized();
        }
Exemplo n.º 2
0
 public CacheEnumerator(ActionCache actionCache)
 {
     this.actionCache = actionCache;
 }
Exemplo n.º 3
0
 public Executor(ActionCache actionCache)
 {
     this.actionCache = actionCache;
     UpdateSets       = new List <PlayerAction>();
 }