コード例 #1
0
		public static CPacket SerializeGAME_REQUEST_MYHOUSINGITEM_LIST(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_MYHOUSINGITEM_LIST pk = (cmdGAME_REQUEST_MYHOUSINGITEM_LIST)obj;
			CPacket __msg = new CPacket();
			ushort size = 0;

			__msg.WriteHeader(cmd, size, 0);

			return __msg;

		}
コード例 #2
0
		public static CPacket SerializeGAME_REQUEST_GAME_CHECKPOINT(ushort cmd, object obj)
		{
			cmdGameRequestGameCheckPoint pk = (cmdGameRequestGameCheckPoint)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(Int32);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write (pk.check_point);
					
			return __msg;
		}
コード例 #3
0
		public static CPacket SerializeGAME_REQUEST_GAME_GOALIN(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_GAME_GOALIN pk = (cmdGAME_REQUEST_GAME_GOALIN)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(Int32);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write (pk.gameKey);
			
			return __msg;
		}
コード例 #4
0
		public static CPacket SerializeGAME_REQUEST_SKILL(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_SKILL pk = (cmdGAME_REQUEST_SKILL)obj;
			CPacket __msg = new CPacket();
			ushort size = 4 * sizeof(short) + sizeof(byte);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write (pk.type);
			__msg.Write (pk.sp);
			__msg.Write (pk.judge);
			__msg.Write (pk.dir);
			__msg.Write (pk.skill_type);
			
			return __msg;
		}
コード例 #5
0
		public static CPacket SerializeGAME_REQUEST_GAME_EVENTOBJECT(ushort cmd, object obj)
		{
			cmdGameRequestGameEventObject pk = (cmdGameRequestGameEventObject)obj;
			CPacket __msg = new CPacket();
			ushort size = 4 * sizeof(UInt32);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write (pk.managerHandle);
			__msg.Write (pk.eventObjectHandle);
			__msg.Write (pk.eventUnitHandle);
			__msg.Write (pk.eventHandle);
			
			return __msg;
		}
コード例 #6
0
		public static CPacket SerializeGAME_REQUEST_GAME_COUNT_STOP(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_GAME_STOP_COUNT pk = (cmdGAME_REQUEST_GAME_STOP_COUNT)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(byte);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write(pk.byStop);
			
			return __msg;
		}
コード例 #7
0
		public static CPacket SerializeGAME_REQUEST_GAME_LOADED(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_GAME_LOADED pk = (cmdGAME_REQUEST_GAME_LOADED)obj;
			CPacket __msg = new CPacket();
			ushort size = 0;
			
			__msg.WriteHeader(cmd, size, 0);
						
			return __msg;
		}
コード例 #8
0
		public static CPacket SerializeGAME_REQUEST_ROOM_CREATE(ushort cmd, object obj)
		{
			cmdGameRequestRoomCreate pk = (cmdGameRequestRoomCreate)obj;
			CPacket __msg = new CPacket();
			ushort size = Constant.MAX_ROOM_NAME_LEN + 1 + Constant.MAX_ROOM_PASSWORD_LEN + 1 + sizeof(bool) + 4*sizeof(byte);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.WriteChars(pk.name,Constant.MAX_ROOM_NAME_LEN + 1);
			__msg.WriteChars(pk.password,Constant.MAX_ROOM_PASSWORD_LEN + 1);
			__msg.Write(pk.mapNum);
			__msg.Write(pk.mode);
			__msg.Write(pk.mapLaps);
			__msg.Write(pk.maxJoinerNum);
			__msg.Write(pk.StrikeAttack);
			
			return __msg;
		}
コード例 #9
0
		public static CPacket SerializeGAME_REQUEST_ROOM_CREATE_GSRV(ushort cmd, object obj)
		{
			cmdGameRequestCreateGame_GameSrv pk = (cmdGameRequestCreateGame_GameSrv)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(byte) + 4*sizeof(Int32);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write(pk.mode);
			__msg.Write(pk.roomNo);
			__msg.Write(pk.gameKey);
			__msg.Write(pk.lobbyUserId);
			__msg.Write(pk.lobbySrvId);
			
			return __msg;
		}
コード例 #10
0
		public static CPacket SerializeGAME_REQUEST_ROOM_LIST(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_ROOM_LIST pk = (cmdGAME_REQUEST_ROOM_LIST)obj;
			CPacket __msg = new CPacket();
			ushort size = 3* sizeof(byte);
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write (pk.pageType);
			__msg.Write (pk.matchViewType);
			__msg.Write (pk.roomViewType);
			
			return __msg;
		}
コード例 #11
0
		public static CPacket SerializeGAME_REQUEST_ROOM_QUICKJOIN(ushort cmd, object obj)
		{
			cmdGameRequestRoomQuickJoin pk = (cmdGameRequestRoomQuickJoin)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(byte);
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write (pk.mode);
			
			return __msg;
		}
コード例 #12
0
		public static CPacket SerializeRELAY_ECHO_PING(ushort cmd, object obj)
		{
			cmdGAME_PING_INFO pk = (cmdGAME_PING_INFO)obj;
			CPacket __msg = new CPacket();
			ushort size = 0;
			__msg.WriteHeader(cmd, size, 0);
			
			return __msg;
		}
コード例 #13
0
		public static CPacket SerializeGAME_REQUEST_ABILITY_CARD_STAT(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_ABILITY_CARD_STAT pk = (cmdGAME_REQUEST_ABILITY_CARD_STAT)obj;
			CPacket __msg = new CPacket();
			ushort size = 0;
			__msg.WriteHeader(cmd, size, 0);
			
			return __msg;
		}
コード例 #14
0
		public static CPacket SerializeGAME_REQUEST_CHAR_INFO(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_CHAR_INFO pk = (cmdGAME_REQUEST_CHAR_INFO)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(byte);

			__msg.WriteHeader(cmd, size, 0);
			__msg.Write (pk.avatar);
			
			return __msg;
		}
コード例 #15
0
		public static CPacket SerializeGAME_REQUEST_ROOM_KICKOUT(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_ROOM_KICKOUT pk = (cmdGAME_REQUEST_ROOM_KICKOUT)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(int);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write(pk.uid);
			
			return __msg;
		}
コード例 #16
0
		public static CPacket SerializeGAME_REQUEST_ROOM_READY(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_ROOM_READY pk = (cmdGAME_REQUEST_ROOM_READY)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(byte);
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write (pk.byReady);
			
			return __msg;
		}
コード例 #17
0
		public static CPacket SerializeGAME_REQUEST_ROOM_MAPSELECT(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_ROOM_MAPSELECT pk = (cmdGAME_REQUEST_ROOM_MAPSELECT)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(byte);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write(pk.mapNum);
			
			return __msg;
		}
コード例 #18
0
		public static CPacket SerializeGAME_REQUEST_GAME_LOBBY_MEMBERS(ushort cmd, object obj)
		{
			cmdGameRequestGameLobbyMembers pk = (cmdGameRequestGameLobbyMembers)obj;
			CPacket __msg = new CPacket();
			ushort size = 0;
			__msg.WriteHeader(cmd, size, 0);
						
			return __msg;
		}
コード例 #19
0
		public static CPacket SerializeGAME_REQUEST_GAME_LOADING_PROGRESS_VALUE(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_GAME_LOADING_PROGRESS_VALUE pk = (cmdGAME_REQUEST_GAME_LOADING_PROGRESS_VALUE)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(short);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write(pk.val);
			
			return __msg;
		}
コード例 #20
0
		public static CPacket SerializeGAME_REQUEST_ROOM_MAX_JOINER_NUM_CHANGE(ushort cmd, object obj)
		{
			cmdGameRequestRoomMaxJoinerNumChange pk = (cmdGameRequestRoomMaxJoinerNumChange)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(byte);
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write (pk.maxJoinerNum);
			
			return __msg;
		}
コード例 #21
0
		public static CPacket SerializeGAME_REQUEST_GAME_PASSZONE(ushort cmd, object obj)
		{
			cmdGameRequestGamePassZone pk = (cmdGameRequestGamePassZone)obj;
			CPacket __msg = new CPacket();
			ushort size = 3 * sizeof(float) + sizeof(Int32);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write (pk.x);
			__msg.Write (pk.y);
			__msg.Write (pk.z);
			__msg.Write (pk.passzone_id);
			
			return __msg;
		}
コード例 #22
0
		public static CPacket SerializeGAME_REQUEST_ROOM_SETTING(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_ROOM_SETTING pk = (cmdGAME_REQUEST_ROOM_SETTING)obj;
			CPacket __msg = new CPacket();
			ushort size = Constant.MAX_ROOM_NAME_LEN + 1 + Constant.MAX_ROOM_PASSWORD_LEN + 1;
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.WriteChars(pk.name,Constant.MAX_ROOM_NAME_LEN + 1);
			__msg.WriteChars(pk.password,Constant.MAX_ROOM_PASSWORD_LEN + 1);

			return __msg;
		}
コード例 #23
0
		public static CPacket SerializeGAME_REQUEST_GAME_SET_MAX_COMBO(ushort cmd, object obj)
		{
			cmdGameRequestGameSetMaxCombo pk = (cmdGameRequestGameSetMaxCombo)obj;
			CPacket __msg = new CPacket();
			ushort size = 2 * sizeof(byte) + sizeof(char);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write (pk.max_combo_step);
			__msg.Write (pk.byUserItem);
			__msg.Write (pk.bIsPerfect);
					
			return __msg;
		}
コード例 #24
0
		public static CPacket SerializeGAME_REQUEST_GAME_ROOM_STRIKEATTACK_INFO_CHANGE(ushort cmd, object obj)
		{
			cmdGameRequestRoomStrikeAttackInfoChange pk = (cmdGameRequestRoomStrikeAttackInfoChange)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(bool);
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write (pk.bStrikeAttack);
			
			return __msg;
		}
コード例 #25
0
		public static CPacket SerializeGAME_REQUEST_SPUSE(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_SPUSE pk = (cmdGAME_REQUEST_SPUSE)obj;
			CPacket __msg = new CPacket();
			ushort size = 2 * sizeof(Int16);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write (pk.type);
			__msg.Write (pk.sp);

			return __msg;
		}
コード例 #26
0
		public static CPacket SerializeGAME_REQUEST_ROOM_JOIN(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_ROOM_JOIN pk = (cmdGAME_REQUEST_ROOM_JOIN)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(short) + Constant.MAX_ROOM_PASSWORD_LEN + 1 + sizeof(byte) + 2*sizeof(UInt32);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write(pk.roomNo);
			__msg.WriteChars(pk.password,Constant.MAX_ROOM_PASSWORD_LEN + 1);
			__msg.Write(pk.mode);
			__msg.Write(pk.lobbyUserId);
			__msg.Write(pk.lobbySrvId);
						
			return __msg;
		}
コード例 #27
0
		public static CPacket SerializeGAME_REQUEST_USER_INPUT_STATUS_STOP(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_USER_INPUT_STATUS_STOP pk = (cmdGAME_REQUEST_USER_INPUT_STATUS_STOP)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(UInt32);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write (pk.uiItemindex);
			
			return __msg;
		}
コード例 #28
0
		public static CPacket SerializeGAME_REQUEST_ROOM_TEAMCHANGE(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_ROOM_TEAMCHANGE pk = (cmdGAME_REQUEST_ROOM_TEAMCHANGE)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(UInt32);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write(pk.uid);
			
			return __msg;
		}
コード例 #29
0
		public static CPacket SerializeRELAY_ECHO_POSITION(ushort cmd, object obj)
		{
			cmdRELAY_ECHO_POSITION pk = (cmdRELAY_ECHO_POSITION)obj;
			CPacket __msg = new CPacket();
			ushort size = 5 * sizeof(float) + sizeof(short) + sizeof(UInt32);

			#if _NEW_PROUD_CHAR_MOVE_
			size = 9 * sizeof(float) + sizeof(short) + sizeof(UInt32);
			#endif
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write (pk.cmdId);
			__msg.Write (pk.uid);

			__msg.Write (pk.pos_x);
			__msg.Write (pk.pos_y);
			__msg.Write (pk.pos_z);

			#if _NEW_PROUD_CHAR_MOVE_
			__msg.Write (pk.velocity_x);
			__msg.Write (pk.velocity_y);
			__msg.Write (pk.velocity_z);
			__msg.Write (pk.zRotSpeed);
			#endif

			__msg.Write (pk.zRotAng);
			__msg.Write (pk.speed);
			
			return __msg;
		}
コード例 #30
0
		public static CPacket SerializeGAME_REQUEST_USER_INFO(ushort cmd, object obj)
		{
			cmdGAME_REQUEST_USER_INFO pk = (cmdGAME_REQUEST_USER_INFO)obj;
			CPacket __msg = new CPacket();
			ushort size = sizeof(uint);
			
			__msg.WriteHeader(cmd, size, 0);
			__msg.Write(pk.security_key);
			
			return __msg;
		}