Exemplo n.º 1
0
        public void HandlePacket(PacketManager mManager)
        {
            try
            {
                if (handlers.ContainsKey(this.Session.getMessage().getHeader()))
                {
                    StaticRequestHandler currentHandler = (StaticRequestHandler)handlers[this.Session.getMessage().getHeader()];
                    currentHandler.Invoke(mManager);

                    Console.WriteLine("[REGISTRED] Header: " + this.Session.getMessage().getHeader() + "; Packet: " + HabboEncoding.CharFiltre(this.Session.getMessage().Packet));

                }
                else
                {
                    Console.WriteLine("[INREGISTRED] Header: " + this.Session.getMessage().getHeader() + "; Packet: " + HabboEncoding.CharFiltre(this.Session.getMessage().Packet));
                }
            }
            catch (Exception e)
            {
                Loggers.AddError(e, "PacketManager");
            }
        }
Exemplo n.º 2
0
 public static void CheckRelease(PacketManager mManager)
 {
     mManager.CheckRelease();
 }