Ejemplo n.º 1
0
        private void EncodeVoltron(IoSession session, object message, IProtocolEncoderOutput output)
        {
            IVoltronPacket    voltronPacket     = (IVoltronPacket)message;
            VoltronPacketType voltronPacketType = voltronPacket.GetPacketType();

            EncodeVoltronStylePackets(session, output, AriesPacketType.Voltron, voltronPacketType.GetPacketCode(), voltronPacket);
        }
Ejemplo n.º 2
0
        public static ushort GetPacketCode(this VoltronPacketType type)
        {
            switch (type)
            {
            case VoltronPacketType.AlertHandledPDU:
                return(0x0001);

            case VoltronPacketType.AlertMsgPDU:
                return(0x0002);

            case VoltronPacketType.AlertMsgResponsePDU:
                return(0x0003);

            case VoltronPacketType.AnnouncementMsgResponsePDU:
                return(0x0004);

            case VoltronPacketType.AnnouncementMsgPDU:
                return(0x0005);

            case VoltronPacketType.ClientByePDU:
                return(0x0006);

            case VoltronPacketType.ServerByePDU:
                return(0x0007);

            case VoltronPacketType.ChatMsgFailedPDU:
                return(0x0008);

            case VoltronPacketType.ChatMsgPDU:
                return(0x0009);

            case VoltronPacketType.ClientOnlinePDU:
                return(0x000a);

            case VoltronPacketType.CreateAndJoinRoomFailedPDU:
                return(0x000b);

            case VoltronPacketType.CreateAndJoinRoomPDU:
                return(0x000c);

            case VoltronPacketType.CreateRoomPDU:
                return(0x000d);

            case VoltronPacketType.CreateRoomResponsePDU:
                return(0x000e);

            case VoltronPacketType.DestroyRoomPDU:
                return(0x000f);

            case VoltronPacketType.DestroyRoomResponsePDU:
                return(0x0010);

            case VoltronPacketType.DetachFromRoomFailedPDU:
                return(0x0011);

            case VoltronPacketType.DetachFromRoomPDU:
                return(0x0012);

            case VoltronPacketType.EjectOccupantPDU:
                return(0x0013);

            case VoltronPacketType.EjectOccupantResponsePDU:
                return(0x0014);

            case VoltronPacketType.ErrorPDU:
                return(0x0015);

            case VoltronPacketType.ExitRoomFailedPDU:
                return(0x0016);

            case VoltronPacketType.ExitRoomPDU:
                return(0x0017);

            case VoltronPacketType.FindPlayerPDU:
                return(0x0018);

            case VoltronPacketType.FindPlayerResponsePDU:
                return(0x0019);

            case VoltronPacketType.FlashMsgResponsePDU:
                return(0x001a);

            case VoltronPacketType.FlashMsgPDU:
                return(0x001b);

            case VoltronPacketType.HandleAlertPDU:
                return(0x001c);

            case VoltronPacketType.HostOfflinePDU:
                return(0x001d);

            case VoltronPacketType.HostOnlinePDU:
                return(0x001e);

            case VoltronPacketType.InvitationMsgResponsePDU:
                return(0x001f);

            case VoltronPacketType.InvitationMsgPDU:
                return(0x0020);

            case VoltronPacketType.JoinPlayerFailedPDU:
                return(0x0021);

            case VoltronPacketType.JoinPlayerPDU:
                return(0x0022);

            case VoltronPacketType.JoinRoomFailedPDU:
                return(0x0023);

            case VoltronPacketType.JoinRoomPDU:
                return(0x0024);

            case VoltronPacketType.ListOccupantsPDU:
                return(0x0025);

            case VoltronPacketType.ListOccupantsResponsePDU:
                return(0x0026);

            case VoltronPacketType.ListRoomsPDU:
                return(0x0027);

            case VoltronPacketType.ListRoomsResponsePDU:
                return(0x0028);

            case VoltronPacketType.LogEventPDU:
                return(0x0029);

            case VoltronPacketType.LogEventResponsePDU:
                return(0x002a);

            case VoltronPacketType.MessageLostPDU:
                return(0x002b);

            case VoltronPacketType.OccupantArrivedPDU:
                return(0x002c);

            case VoltronPacketType.OccupantDepartedPDU:
                return(0x002d);

            case VoltronPacketType.ReadProfilePDU:
                return(0x002e);

            case VoltronPacketType.ReadProfileResponsePDU:
                return(0x002f);

            case VoltronPacketType.ReleaseProfilePDU:
                return(0x0030);

            case VoltronPacketType.ReleaseProfileResponsePDU:
                return(0x0031);

            case VoltronPacketType.SetAcceptAlertsPDU:
                return(0x0032);

            case VoltronPacketType.SetAcceptAlertsResponsePDU:
                return(0x0033);

            case VoltronPacketType.SetIgnoreListPDU:
                return(0x0034);

            case VoltronPacketType.SetIgnoreListResponsePDU:
                return(0x0035);

            case VoltronPacketType.SetInvinciblePDU:
                return(0x0036);

            case VoltronPacketType.SetInvincibleResponsePDU:
                return(0x0037);

            case VoltronPacketType.SetInvisiblePDU:
                return(0x0038);

            case VoltronPacketType.SetInvisibleResponsePDU:
                return(0x0039);

            case VoltronPacketType.SetRoomNamePDU:
                return(0x003a);

            case VoltronPacketType.SetRoomNameResponsePDU:
                return(0x003b);

            case VoltronPacketType.UpdateOccupantsPDU:
                return(0x003c);

            case VoltronPacketType.UpdatePlayerPDU:
                return(0x003d);

            case VoltronPacketType.UpdateProfilePDU:
                return(0x003e);

            case VoltronPacketType.UpdateRoomPDU:
                return(0x003f);

            case VoltronPacketType.YankPlayerFailedPDU:
                return(0x0040);

            case VoltronPacketType.YankPlayerPDU:
                return(0x0041);

            case VoltronPacketType.SetAcceptFlashesPDU:
                return(0x0042);

            case VoltronPacketType.SetAcceptFlashesResponsePDU:
                return(0x0043);

            case VoltronPacketType.SplitBufferPDU:
                return(0x0044);

            case VoltronPacketType.ActionRoomNamePDU:
                return(0x0045);

            case VoltronPacketType.ActionRoomNameResponsePDU:
                return(0x0046);

            case VoltronPacketType.NotifyRoomActionedPDU:
                return(0x0047);

            case VoltronPacketType.ModifyProfilePDU:
                return(0x0048);

            case VoltronPacketType.ModifyProfileResponsePDU:
                return(0x0049);

            case VoltronPacketType.ListBBSFoldersPDU:
                return(0x004a);

            case VoltronPacketType.ListBBSFoldersResponsePDU:
                return(0x004b);

            case VoltronPacketType.GetBBSMessageListPDU:
                return(0x004c);

            case VoltronPacketType.GetBBSMessageListResponsePDU:
                return(0x004d);

            case VoltronPacketType.PostBBSMessagePDU:
                return(0x004e);

            case VoltronPacketType.PostBBSReplyPDU:
                return(0x004f);

            case VoltronPacketType.PostBBSMessageResponsePDU:
                return(0x0050);

            case VoltronPacketType.GetMPSMessagesPDU:
                return(0x0051);

            case VoltronPacketType.GetMPSMessagesResponsePDU:
                return(0x0052);

            case VoltronPacketType.DeleteMPSMessagePDU:
                return(0x0053);

            case VoltronPacketType.DeleteMPSMessageResponsePDU:
                return(0x0054);

            case VoltronPacketType.BBSMessageDataPDU:
                return(0x0055);

            case VoltronPacketType.UpdateRoomAdminListPDU:
                return(0x0056);

            case VoltronPacketType.GetRoomAdminListPDU:
                return(0x0057);

            case VoltronPacketType.GetRoomAdminListResponsePDU:
                return(0x0058);

            case VoltronPacketType.GroupInfoRequestPDU:
                return(0x0059);

            case VoltronPacketType.GroupInfoResponsePDU:
                return(0x005a);

            case VoltronPacketType.GroupAdminRequestPDU:
                return(0x005b);

            case VoltronPacketType.GroupAdminResponsePDU:
                return(0x005c);

            case VoltronPacketType.GroupMembershipRequestPDU:
                return(0x005d);

            case VoltronPacketType.GroupMembershipResponsePDU:
                return(0x005e);

            case VoltronPacketType.FlashGroupPDU:
                return(0x005f);

            case VoltronPacketType.FlashGroupResponsePDU:
                return(0x0060);

            case VoltronPacketType.UpdateGroupMemberPDU:
                return(0x0061);

            case VoltronPacketType.UpdateGroupMemberResponsePDU:
                return(0x0062);

            case VoltronPacketType.UpdateGroupAdminPDU:
                return(0x0063);

            case VoltronPacketType.UpdateGroupAdminResponsePDU:
                return(0x0064);

            case VoltronPacketType.ListGroupsPDU:
                return(0x0065);

            case VoltronPacketType.ListGroupsResponsePDU:
                return(0x0066);

            case VoltronPacketType.ListJoinedGroupsPDU:
                return(0x0067);

            case VoltronPacketType.ListJoinedGroupsResponsePDU:
                return(0x0068);

            case VoltronPacketType.GpsChatPDU:
                return(0x0069);

            case VoltronPacketType.GpsChatResponsePDU:
                return(0x006a);

            case VoltronPacketType.PetitionStatusUpdatePDU:
                return(0x006b);

            case VoltronPacketType.LogGPSPetitionPDU:
                return(0x006c);

            case VoltronPacketType.LogGPSPetitionResponsePDU:
                return(0x006d);

            case VoltronPacketType.List20RoomsPDU:
                return(0x006e);

            case VoltronPacketType.List20RoomsResponsePDU:
                return(0x006f);

            case VoltronPacketType.UpdateIgnoreListPDU:
                return(0x0070);

            case VoltronPacketType.ResetWatchdogPDU:
                return(0x0071);

            case VoltronPacketType.ResetWatchdogResponsePDU:
                return(0x0072);

            case VoltronPacketType.BroadcastDataBlobPDU:
                return(0x2710);

            case VoltronPacketType.TransmitDataBlobPDU:
                return(0x2711);

            case VoltronPacketType.DBRequestWrapperPDU:
                return(0x2712);

            case VoltronPacketType.TransmitCreateAvatarNotificationPDU:
                return(0x2713);

            case VoltronPacketType.BC_PlayerLoginEventPDU:
                return(0x2715);

            case VoltronPacketType.BC_PlayerLogoutEventPDU:
                return(0x2716);

            case VoltronPacketType.RoomserverUserlistPDU:
                return(0x2718);

            case VoltronPacketType.LotEntryRequestPDU:
                return(0x2719);

            case VoltronPacketType.ClientConfigPDU:
                return(0x271a);

            case VoltronPacketType.KickoutRoommatePDU:
                return(0x271c);

            case VoltronPacketType.GenericFlashPDU:
                return(0x271d);

            case VoltronPacketType.GenericFlashRequestPDU:
                return(0x271e);

            case VoltronPacketType.GenericFlashResponsePDU:
                return(0x271f);

            case VoltronPacketType.TransmitGenericGDMPDU:
                return(0x2722);

            case VoltronPacketType.EjectAvatarPDU:
                return(0x2723);

            case VoltronPacketType.TestPDU:
                return(0x2724);

            case VoltronPacketType.HouseSimConstraintsPDU:
                return(0x2725);

            case VoltronPacketType.HouseSimConstraintsResponsePDU:
                return(0x2726);

            case VoltronPacketType.LoadHouseResponsePDU:
                return(0x2728);

            case VoltronPacketType.ComponentVersionRequestPDU:
                return(0x2729);

            case VoltronPacketType.ComponentVersionResponsePDU:
                return(0x272a);

            case VoltronPacketType.InviteRoommatePDU:
                return(0x272b);

            case VoltronPacketType.RoommateInvitationAnswerPDU:
                return(0x272c);

            case VoltronPacketType.RoommateGDMPDU:
                return(0x272d);

            case VoltronPacketType.HSB_ShutdownSimulatorPDU:
                return(0x272e);

            case VoltronPacketType.RoommateGDMResponsePDU:
                return(0x272f);

            case VoltronPacketType.RSGZWrapperPDU:
                return(0x2730);

            case VoltronPacketType.AvatarHasNewLotIDPDU:
                return(0x2731);

            case VoltronPacketType.CheatPDU:
                return(0x2733);

            case VoltronPacketType.DataServiceWrapperPDU:
                return(0x2734);

            case VoltronPacketType.CsrEjectAvatarPDU:
                return(0x2735);

            case VoltronPacketType.CsrEjectAvatarResponsePDU:
                return(0x2736);

            case VoltronPacketType.cTSONetMessagePDU:
                return(0x2737);

            case VoltronPacketType.LogCsrActionPDU:
                return(0x2738);

            case VoltronPacketType.LogAvatarActionPDU:
                return(0x2739);

            case VoltronPacketType.Unknown:
                return(0xffff);
            }
            return(0);
        }