示例#1
0
        private static void onServerFinishedLoaded()
        {
            injectNewHandler();
            started = true;
            QQLib.registerListener(new TestListener());

            // FAIRE UN WAIT Pour attendre le chargement des autres plugins
            FireEventTool.call(new ServerStartedEvent());
        }
示例#2
0
        private Event.Event createEventFromNetworkRPCEvent(INetClient client, NetworkEvent netEvent, BSONObject bson)
        {
            BSONValue value;

            bson.TryGetValue("method", out value);
            string methodname = value.StringValue;

            switch (methodname)
            {
            case "KeepAlive":
                return(FireEventTool.call(new KeepAliveEvent(client, netEvent, bson, methodname)));

            case "PlayerInteract":
                return(FireEventTool.call(new PlayerInteract(client, netEvent, bson, methodname)));

            default:
                return(FireEventTool.call(new NotregistredRPCMethodEvent(client, netEvent, bson, methodname)));
            }

            return(null);
        }
示例#3
0
 private Event.Event createFromNetworkResponseEvent(INetClient client, NetworkEvent netEvent, BSONObject bson)
 {
     return(FireEventTool.call(new RPCResponseEvent(client, netEvent, bson)));
 }