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()); }
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); }
private Event.Event createFromNetworkResponseEvent(INetClient client, NetworkEvent netEvent, BSONObject bson) { return(FireEventTool.call(new RPCResponseEvent(client, netEvent, bson))); }