示例#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");
            }
        }
示例#2
0
 public static void CheckRelease(PacketManager mManager)
 {
     mManager.CheckRelease();
 }