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();
        }
 public CacheEnumerator(ActionCache actionCache)
 {
     this.actionCache = actionCache;
 }
示例#3
0
 public Executor(ActionCache actionCache)
 {
     this.actionCache = actionCache;
     UpdateSets       = new List <PlayerAction>();
 }