Exemplo n.º 1
0
            public void Callback(Deserializer deserializer, GameServer server, object dict)
            {
                Dictionary <string, object> data = (Dictionary <string, object>)dict;

                server.QueueEvent(() => {
                    m_handler(data);
                });
            }
Exemplo n.º 2
0
            public void Callback(Deserializer deserializer, GameServer server, object dict)
            {
                T data = deserializer.Deserialize <T>(dict);

                server.QueueEvent(() => {
                    m_handler((T)data);
                });
            }
Exemplo n.º 3
0
            public void Callback(Deserializer deserializer, GameServer server, object dict, string id)
            {
                Dictionary <string, object> data = (Dictionary <string, object>)dict;

                server.QueueEvent(() =>
                {
                    // dict is the HFTMessageCmd. We want dict for the MessageCmdData inside the HFTMessageCmd
                    // It might not exist
                    m_handler(data, id);
                });
            }
Exemplo n.º 4
0
 public void Callback(GameServer server, MessageCmdData data)
 {
     server.QueueEvent(delegate() {
         m_handler((T)data);
     });
 }