Exemplo n.º 1
0
        public PlayerManager(
            ILogger <PlayerManager> aLogger,
            IRoleHubContext <PlayerHub> aPlayerHub,
            IProvider <IUserService> aUserService)
        {
            Logger            = aLogger;
            PlayerHub         = aPlayerHub;
            UserService       = aUserService;
            SysteminfoManager = new Lazy <SysteminfoManager>(() => Program.GetManager <SysteminfoManager>());
            ChatManager       = new Lazy <ChatManager>(() => Program.GetManager <ChatManager>());
            UserManager       = new Lazy <UserManager>(() => Program.GetManager <UserManager>());

            TaskTools.Intervall(10000, SendPlayerUpdates);
        }
Exemplo n.º 2
0
 public ChatManager(IRoleHubContext <ChatHub> aChatHub)
 {
     ChatHub = aChatHub;
 }