List <IMessageHandlerCommand> IServerExtension.CreateMessageHandlers(ServerCore server, PingDeterminer pingDeterminer, MatchGameEventContainer matchGameEventWrapper, Clock matchClock)
        {
            List <IMessageHandlerCommand> msgHandler         = new List <IMessageHandlerCommand>();
            SpellGUIDGenerator            spellGUIDGenerator = new SpellGUIDGenerator();

            msgHandler.Add(new MessageHandler_ClientRequest_CreateSpellWithDirection(server, spellGUIDGenerator));
            msgHandler.Add(new MessageHandler_ClientRequest_CreateSpellInStaticPosition(server, spellGUIDGenerator));
            msgHandler.Add(new MessageHandler_ClientRequest_PlayerMovementUpdate(server, pingDeterminer));
            msgHandler.Add(new MessageHandler_ClientRequest_RoundEnded(server, matchGameEventWrapper, matchClock, pingDeterminer));

            return(msgHandler);
        }
 public MessageHandler_ClientRequest_CreateSpellWithDirection(ServerCore server, SpellGUIDGenerator spellGUIDGenerator)
 {
     this.server             = server;
     this.spellGUIDGenerator = spellGUIDGenerator;
 }
Exemplo n.º 3
0
 public MessageHandler_ClientRequest_CreateSpellInStaticPosition(ServerCore server, SpellGUIDGenerator spellGUIDGenerator)
 {
     this.server             = server;
     this.spellGUIDGenerator = spellGUIDGenerator;
 }