public Packets(short opcode, Readers Ler, User here, byte[] buffer, PlayerInfo pInfo)
        {
            switch (opcode)
            {
            case 0:
            {
                heartbeat.HeartBeatNot(here);
                break;
            }

            case 2:
            {
                player.logar(here, pInfo, charsInfo, Ler);
                break;
            }

            case 24:
            {
                canal.CriarSala(here, pInfo, Ler, charsInfo);
                break;
            }

            case 16:
            {
                canal.Salas(here, Ler);
                break;
            }


            case 423:
            {
                spInfo.fullspInfo(here);
                break;
            }

            case 1555:
            {
                joinchar.CharSelectJoin(here);
                break;
            }

            case 871:
            {
                cost_rate.cost_rate(here);
                break;
            }

            case 1106:
            {
                agitmap.map(here);
                break;
            }

            case 1184:
            {
                fairytreelvtable.lvtable(here);
                break;
            }

            case 1340:
            {
                depotInfo.Info(here);
                break;
            }

            case 1012:
            {
                Choicebox.list(here);
                channellist.ChannelList(here);
                break;
            }

            case 12:
            {
                enterChannel.enterchannel(here, Ler);
                break;
            }

            case 14:
            {
                channellist.ChannelList(here);
                break;
            }

            case 33:
            {
                SairdaSala.leaveroom(here);
                break;
            }

            case 36:
            {
                playgame.rungame(here);
                break;
            }

            case 39:
            {
                Loading.LoadCompleteNot(here);
                break;
            }

            case 927:
            {
                stageLoading.stageLoadComplete(here);
                break;
            }

            case 20:
            {
                join.enterRoom(here, Ler, charsInfo);
                break;
            }

            case 26:
            {
                exit0.SairDoCanal(here);
                break;
            }

            case 6:
            {
                getChat.chat(here, Ler);
                break;
            }

            case 18:
            {
                playerlist.userlist(here);
                break;
            }

            case 886:
            {
                HeroItemC.Lista_De_Item(here);
                break;
            }

            case 889:
            {
                HeroItemM.Item_Material(here);
                break;
            }

            case 806:
            {
                ManuF.Manu(here);
                break;
            }

            case 804:
            {
                ManuC.Manu(here);
                break;
            }

            case 1465:
            {
                SpecItemB.SpecificItemB(here);
                break;
            }

            default:
            {
                log.Hex("Recebido, OpCode {" + opcode + "} Payload: ", buffer);
                break;
            }
            }
        }
示例#2
0
        public Packets(short opcode, Readers Ler, User here, byte[] buffer, PlayerInfo pInfo)
        {
            switch (opcode)
            {
            case 0:
            {
                heartbeat.HeartBeatNot(here);
                break;
            }

            case 2:
            {
                player.logar(here, pInfo, charsInfo, Ler);
                break;
            }

            case 24:
            {
                canal.CriarSala(here, pInfo, Ler, charsInfo);
                break;
            }

            case 423:
            {
                spInfo.fullspInfo(here);
                break;
            }

            case 1555:
            {
                joinchar.CharSelectJoin(here);
                break;
            }

            case 871:
            {
                cost_rate.cost_rate(here);
                break;
            }

            case 1106:
            {
                agitmap.map(here);
                break;
            }

            case 1184:
            {
                fairytreelvtable.lvtable(here);
                break;
            }

            case 1340:
            {
                depotInfo.Info(here);
                break;
            }

            case 1012:
            {
                Choicebox.list(here);
                channellist.ChannelList(here);
                enterChannel.enterchannel(here, Ler);
                break;
            }

            case 12:
            {
                enterChannel.enterchannel(here, Ler);
                break;
            }

            case 14:
            {
                channellist.ChannelList(here);
                enterChannel.enterchannel(here, Ler);
                break;
            }

            case 33:
            {
                SairdaSala.leaveroom(here);
                break;
            }

            case 36:
            {
                playgame.rungame(here);
                break;
            }

            case 39:
            {
                Loading.LoadCompleteNot(here);
                break;
            }

            case 927:
            {
                stageLoading.stageLoadComplete(here);
                break;
            }

            default:
            {
                log.Hex("Recebido, OpCode {" + opcode + "} Payload: ", buffer, 1);
                break;
            }
            }
        }