mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-09-29 14:12:54 -04:00
Initial commit of the sharedNetworkMessages library
This commit is contained in:
@@ -0,0 +1,712 @@
|
||||
|
||||
set(SHARED_SOURCES
|
||||
shared/GrantCommand.cpp
|
||||
shared/GrantCommand.h
|
||||
shared/GrantSkill.cpp
|
||||
shared/GrantSkill.h
|
||||
shared/LogMessage.cpp
|
||||
shared/LogMessage.h
|
||||
shared/NameErrors.cpp
|
||||
shared/NameErrors.h
|
||||
shared/NetworkMessageFactory.cpp
|
||||
shared/NetworkMessageFactory.h
|
||||
shared/RevokeCommand.cpp
|
||||
shared/RevokeCommand.h
|
||||
shared/RevokeSkill.cpp
|
||||
shared/RevokeSkill.h
|
||||
|
||||
shared/chat/ChatAddFriend.cpp
|
||||
shared/chat/ChatAddFriend.h
|
||||
shared/chat/ChatAddModeratorToRoom.cpp
|
||||
shared/chat/ChatAddModeratorToRoom.h
|
||||
shared/chat/ChatAvatarIdArchive.cpp
|
||||
shared/chat/ChatAvatarIdArchive.h
|
||||
shared/chat/ChatAvatarId.cpp
|
||||
shared/chat/ChatAvatarId.h
|
||||
shared/chat/ChatBanAvatarFromRoom.cpp
|
||||
shared/chat/ChatBanAvatarFromRoom.h
|
||||
shared/chat/ChatChangeFriendStatus.cpp
|
||||
shared/chat/ChatChangeFriendStatus.h
|
||||
shared/chat/ChatChangeIgnoreStatus.cpp
|
||||
shared/chat/ChatChangeIgnoreStatus.h
|
||||
shared/chat/ChatCreateRoom.cpp
|
||||
shared/chat/ChatCreateRoom.h
|
||||
shared/chat/ChatDeleteAllPersistentMessages.cpp
|
||||
shared/chat/ChatDeleteAllPersistentMessages.h
|
||||
shared/chat/ChatDeletePersistentMessage.cpp
|
||||
shared/chat/ChatDeletePersistentMessage.h
|
||||
shared/chat/ChatDestroyRoomByName.cpp
|
||||
shared/chat/ChatDestroyRoomByName.h
|
||||
shared/chat/ChatDestroyRoom.cpp
|
||||
shared/chat/ChatDestroyRoom.h
|
||||
shared/chat/ChatEnterRoomById.cpp
|
||||
shared/chat/ChatEnterRoomById.h
|
||||
shared/chat/ChatEnterRoom.cpp
|
||||
shared/chat/ChatEnterRoom.h
|
||||
shared/chat/ChatEnum.h
|
||||
shared/chat/ChatFriendsListUpdate.cpp
|
||||
shared/chat/ChatFriendsListUpdate.h
|
||||
shared/chat/ChatGetFriendsList.cpp
|
||||
shared/chat/ChatGetFriendsList.h
|
||||
shared/chat/ChatGetIgnoreList.cpp
|
||||
shared/chat/ChatGetIgnoreList.h
|
||||
shared/chat/ChatInstantMessageToCharacter.cpp
|
||||
shared/chat/ChatInstantMessageToCharacter.h
|
||||
shared/chat/ChatInstantMessageToClient.cpp
|
||||
shared/chat/ChatInstantMessageToClient.h
|
||||
shared/chat/ChatInviteAvatarToRoom.cpp
|
||||
shared/chat/ChatInviteAvatarToRoom.h
|
||||
shared/chat/ChatInviteGroupMembersToRoom.cpp
|
||||
shared/chat/ChatInviteGroupMembersToRoom.h
|
||||
shared/chat/ChatInviteGroupToRoom.cpp
|
||||
shared/chat/ChatInviteGroupToRoom.h
|
||||
shared/chat/ChatKickAvatarFromRoom.cpp
|
||||
shared/chat/ChatKickAvatarFromRoom.h
|
||||
shared/chat/ChatMessageFromGame.cpp
|
||||
shared/chat/ChatMessageFromGame.h
|
||||
shared/chat/ChatOnAddFriend.cpp
|
||||
shared/chat/ChatOnAddFriend.h
|
||||
shared/chat/ChatOnAddModeratorToRoom.cpp
|
||||
shared/chat/ChatOnAddModeratorToRoom.h
|
||||
shared/chat/ChatOnBanAvatarFromRoom.cpp
|
||||
shared/chat/ChatOnBanAvatarFromRoom.h
|
||||
shared/chat/ChatOnChangeFriendStatus.cpp
|
||||
shared/chat/ChatOnChangeFriendStatus.h
|
||||
shared/chat/ChatOnChangeIgnoreStatus.cpp
|
||||
shared/chat/ChatOnChangeIgnoreStatus.h
|
||||
shared/chat/ChatOnConnectAvatar.cpp
|
||||
shared/chat/ChatOnConnectAvatar.h
|
||||
shared/chat/ChatOnCreateRoom.cpp
|
||||
shared/chat/ChatOnCreateRoom.h
|
||||
shared/chat/ChatOnDeleteAllPersistentMessages.cpp
|
||||
shared/chat/ChatOnDeleteAllPersistentMessages.h
|
||||
shared/chat/ChatOnDestroyRoom.cpp
|
||||
shared/chat/ChatOnDestroyRoom.h
|
||||
shared/chat/ChatOnEnteredRoom.cpp
|
||||
shared/chat/ChatOnEnteredRoom.h
|
||||
shared/chat/ChatOnGetFriendsList.cpp
|
||||
shared/chat/ChatOnGetFriendsList.h
|
||||
shared/chat/ChatOnGetIgnoreList.cpp
|
||||
shared/chat/ChatOnGetIgnoreList.h
|
||||
shared/chat/ChatOnInviteGroupToRoom.cpp
|
||||
shared/chat/ChatOnInviteGroupToRoom.h
|
||||
shared/chat/ChatOnInviteToRoom.cpp
|
||||
shared/chat/ChatOnInviteToRoom.h
|
||||
shared/chat/ChatOnKickAvatarFromRoom.cpp
|
||||
shared/chat/ChatOnKickAvatarFromRoom.h
|
||||
shared/chat/ChatOnLeaveRoom.cpp
|
||||
shared/chat/ChatOnLeaveRoom.h
|
||||
shared/chat/ChatOnReceiveRoomInvitation.cpp
|
||||
shared/chat/ChatOnReceiveRoomInvitation.h
|
||||
shared/chat/ChatOnRemoveModeratorFromRoom.cpp
|
||||
shared/chat/ChatOnRemoveModeratorFromRoom.h
|
||||
shared/chat/ChatOnRequestLog.cpp
|
||||
shared/chat/ChatOnRequestLog.h
|
||||
shared/chat/ChatOnSendInstantMessage.cpp
|
||||
shared/chat/ChatOnSendInstantMessage.h
|
||||
shared/chat/ChatOnSendPersistentMessage.cpp
|
||||
shared/chat/ChatOnSendPersistentMessage.h
|
||||
shared/chat/ChatOnSendRoomInvitation.cpp
|
||||
shared/chat/ChatOnSendRoomInvitation.h
|
||||
shared/chat/ChatOnSendRoomMessage.cpp
|
||||
shared/chat/ChatOnSendRoomMessage.h
|
||||
shared/chat/ChatOnUnbanAvatarFromRoom.cpp
|
||||
shared/chat/ChatOnUnbanAvatarFromRoom.h
|
||||
shared/chat/ChatOnUninviteFromRoom.cpp
|
||||
shared/chat/ChatOnUninviteFromRoom.h
|
||||
shared/chat/ChatPersistentMessageToClient.cpp
|
||||
shared/chat/ChatPersistentMessageToClientDataArchive.cpp
|
||||
shared/chat/ChatPersistentMessageToClientDataArchive.h
|
||||
shared/chat/ChatPersistentMessageToClientData.cpp
|
||||
shared/chat/ChatPersistentMessageToClientData.h
|
||||
shared/chat/ChatPersistentMessageToClient.h
|
||||
shared/chat/ChatPersistentMessageToServer.cpp
|
||||
shared/chat/ChatPersistentMessageToServer.h
|
||||
shared/chat/ChatPutAvatarInRoom.cpp
|
||||
shared/chat/ChatPutAvatarInRoom.h
|
||||
shared/chat/ChatQueryRoom.cpp
|
||||
shared/chat/ChatQueryRoom.h
|
||||
shared/chat/ChatQueryRoomResults.cpp
|
||||
shared/chat/ChatQueryRoomResults.h
|
||||
shared/chat/ChatRemoveAvatarFromRoom.cpp
|
||||
shared/chat/ChatRemoveAvatarFromRoom.h
|
||||
shared/chat/ChatRemoveFriend.cpp
|
||||
shared/chat/ChatRemoveFriend.h
|
||||
shared/chat/ChatRemoveModeratorFromRoom.cpp
|
||||
shared/chat/ChatRemoveModeratorFromRoom.h
|
||||
shared/chat/ChatRequestLog.cpp
|
||||
shared/chat/ChatRequestLog.h
|
||||
shared/chat/ChatRequestPersistentMessage.cpp
|
||||
shared/chat/ChatRequestPersistentMessage.h
|
||||
shared/chat/ChatRequestRoomList.cpp
|
||||
shared/chat/ChatRequestRoomList.h
|
||||
shared/chat/ChatRoomDataArchive.cpp
|
||||
shared/chat/ChatRoomDataArchive.h
|
||||
shared/chat/ChatRoomData.cpp
|
||||
shared/chat/ChatRoomData.h
|
||||
shared/chat/ChatRoomList.cpp
|
||||
shared/chat/ChatRoomList.h
|
||||
shared/chat/ChatRoomMessage.cpp
|
||||
shared/chat/ChatRoomMessage.h
|
||||
shared/chat/ChatSendToRoom.cpp
|
||||
shared/chat/ChatSendToRoom.h
|
||||
shared/chat/ChatServerStatus.cpp
|
||||
shared/chat/ChatServerStatus.h
|
||||
shared/chat/ChatSystemMessage.cpp
|
||||
shared/chat/ChatSystemMessage.h
|
||||
shared/chat/ChatUnbanAvatarFromRoom.cpp
|
||||
shared/chat/ChatUnbanAvatarFromRoom.h
|
||||
shared/chat/ChatUninviteFromRoom.cpp
|
||||
shared/chat/ChatUninviteFromRoom.h
|
||||
|
||||
shared/clientGameServer/AIDebuggingMessages.cpp
|
||||
shared/clientGameServer/AIDebuggingMessages.h
|
||||
shared/clientGameServer/AcceptAuctionMessage.cpp
|
||||
shared/clientGameServer/AcceptAuctionMessage.h
|
||||
shared/clientGameServer/AcceptAuctionResponseMessage.cpp
|
||||
shared/clientGameServer/AcceptAuctionResponseMessage.h
|
||||
shared/clientGameServer/AddMapLocationMessage.cpp
|
||||
shared/clientGameServer/AddMapLocationMessage.h
|
||||
shared/clientGameServer/AddMapLocationResponseMessage.cpp
|
||||
shared/clientGameServer/AddMapLocationResponseMessage.h
|
||||
shared/clientGameServer/AttributeListMessage.cpp
|
||||
shared/clientGameServer/AttributeListMessage.h
|
||||
shared/clientGameServer/AuctionData.h
|
||||
shared/clientGameServer/AuctionErrorCodes.h
|
||||
shared/clientGameServer/AuctionQueryHeadersMessage.cpp
|
||||
shared/clientGameServer/AuctionQueryHeadersMessage.h
|
||||
shared/clientGameServer/AuctionQueryHeadersResponseMessage.cpp
|
||||
shared/clientGameServer/AuctionQueryHeadersResponseMessage.h
|
||||
shared/clientGameServer/AuctionQueryMessage.cpp
|
||||
shared/clientGameServer/AuctionQueryMessage.h
|
||||
shared/clientGameServer/AuctionQueryResponseMessage.cpp
|
||||
shared/clientGameServer/AuctionQueryResponseMessage.h
|
||||
shared/clientGameServer/BidAuctionMessage.cpp
|
||||
shared/clientGameServer/BidAuctionMessage.h
|
||||
shared/clientGameServer/BidAuctionResponseMessage.cpp
|
||||
shared/clientGameServer/BidAuctionResponseMessage.h
|
||||
shared/clientGameServer/BuffBuilderChangeMessage.cpp
|
||||
shared/clientGameServer/BuffBuilderChangeMessage.h
|
||||
shared/clientGameServer/BuffBuilderStartMessage.cpp
|
||||
shared/clientGameServer/BuffBuilderStartMessage.h
|
||||
shared/clientGameServer/CancelLiveAuctionMessage.cpp
|
||||
shared/clientGameServer/CancelLiveAuctionMessage.h
|
||||
shared/clientGameServer/CancelLiveAuctionResponseMessage.cpp
|
||||
shared/clientGameServer/CancelLiveAuctionResponseMessage.h
|
||||
shared/clientGameServer/CharacterSheetResponseMessage.cpp
|
||||
shared/clientGameServer/CharacterSheetResponseMessage.h
|
||||
shared/clientGameServer/ClientCentralMessages.cpp
|
||||
shared/clientGameServer/ClientCentralMessages.h
|
||||
shared/clientGameServer/ClientEffectMessages.cpp
|
||||
shared/clientGameServer/ClientEffectMessages.h
|
||||
shared/clientGameServer/ClientMfdStatusUpdateMessage.cpp
|
||||
shared/clientGameServer/ClientMfdStatusUpdateMessage.h
|
||||
shared/clientGameServer/ClientOpenContainerMessage.cpp
|
||||
shared/clientGameServer/ClientOpenContainerMessage.h
|
||||
shared/clientGameServer/ClientPermissionsMessage.cpp
|
||||
shared/clientGameServer/ClientPermissionsMessage.h
|
||||
shared/clientGameServer/CloseHolocronMessage.cpp
|
||||
shared/clientGameServer/CloseHolocronMessage.h
|
||||
shared/clientGameServer/CommandChannelMessages.cpp
|
||||
shared/clientGameServer/CommandChannelMessages.h
|
||||
shared/clientGameServer/ConsentResponseMessage.cpp
|
||||
shared/clientGameServer/ConsentResponseMessage.h
|
||||
shared/clientGameServer/ConsoleChannelMessages.cpp
|
||||
shared/clientGameServer/ConsoleChannelMessages.h
|
||||
shared/clientGameServer/ControllerMessageFactory.cpp
|
||||
shared/clientGameServer/ControllerMessageFactory.h
|
||||
shared/clientGameServer/CreateAuctionMessage.cpp
|
||||
shared/clientGameServer/CreateAuctionMessage.h
|
||||
shared/clientGameServer/CreateAuctionResponseMessage.cpp
|
||||
shared/clientGameServer/CreateAuctionResponseMessage.h
|
||||
shared/clientGameServer/CreateClientPathMessage.cpp
|
||||
shared/clientGameServer/CreateClientPathMessage.h
|
||||
shared/clientGameServer/CreateImmediateAuctionMessage.cpp
|
||||
shared/clientGameServer/CreateImmediateAuctionMessage.h
|
||||
shared/clientGameServer/CreateMissileMessage.cpp
|
||||
shared/clientGameServer/CreateMissileMessage.h
|
||||
shared/clientGameServer/CreateNebulaLightningMessage.cpp
|
||||
shared/clientGameServer/CreateNebulaLightningMessage.h
|
||||
shared/clientGameServer/CreateProjectileMessage.cpp
|
||||
shared/clientGameServer/CreateProjectileMessage.h
|
||||
shared/clientGameServer/DeleteCharacterMessage.cpp
|
||||
shared/clientGameServer/DeleteCharacterMessage.h
|
||||
shared/clientGameServer/DeleteCharacterReplyMessage.cpp
|
||||
shared/clientGameServer/DeleteCharacterReplyMessage.h
|
||||
shared/clientGameServer/DestroyClientPathMessage.cpp
|
||||
shared/clientGameServer/DestroyClientPathMessage.h
|
||||
shared/clientGameServer/DestroyShipComponentMessage.cpp
|
||||
shared/clientGameServer/DestroyShipComponentMessage.h
|
||||
shared/clientGameServer/DestroyShipMessage.cpp
|
||||
shared/clientGameServer/DestroyShipMessage.h
|
||||
shared/clientGameServer/DroidCommandProgrammingMessage.cpp
|
||||
shared/clientGameServer/DroidCommandProgrammingMessage.h
|
||||
shared/clientGameServer/EditAppearanceMessage.cpp
|
||||
shared/clientGameServer/EditAppearanceMessage.h
|
||||
shared/clientGameServer/EditStatsMessage.cpp
|
||||
shared/clientGameServer/EditStatsMessage.h
|
||||
shared/clientGameServer/EnterStructurePlacementModeMessage.cpp
|
||||
shared/clientGameServer/EnterStructurePlacementModeMessage.h
|
||||
shared/clientGameServer/EnterTicketPurchaseModeMessage.cpp
|
||||
shared/clientGameServer/EnterTicketPurchaseModeMessage.h
|
||||
shared/clientGameServer/ExpertiseRequestMessage.cpp
|
||||
shared/clientGameServer/ExpertiseRequestMessage.h
|
||||
shared/clientGameServer/EnvironmentalHitData.cpp
|
||||
shared/clientGameServer/EnvironmentalHitData.h
|
||||
shared/clientGameServer/FactionRequestMessage.cpp
|
||||
shared/clientGameServer/FactionRequestMessage.h
|
||||
shared/clientGameServer/FactionResponseMessage.cpp
|
||||
shared/clientGameServer/FactionResponseMessage.h
|
||||
shared/clientGameServer/GalaxyLoopTimesResponse.cpp
|
||||
shared/clientGameServer/GalaxyLoopTimesResponse.h
|
||||
shared/clientGameServer/GetAuctionDetails.cpp
|
||||
shared/clientGameServer/GetAuctionDetails.h
|
||||
shared/clientGameServer/GetAuctionDetailsResponse.cpp
|
||||
shared/clientGameServer/GetAuctionDetailsResponse.h
|
||||
shared/clientGameServer/GetMapLocationsMessage.cpp
|
||||
shared/clientGameServer/GetMapLocationsMessage.h
|
||||
shared/clientGameServer/GetMapLocationsResponseMessage.cpp
|
||||
shared/clientGameServer/GetMapLocationsResponseMessage.h
|
||||
shared/clientGameServer/GuildRequestMessage.cpp
|
||||
shared/clientGameServer/GuildRequestMessage.h
|
||||
shared/clientGameServer/GuildResponseMessage.cpp
|
||||
shared/clientGameServer/GuildResponseMessage.h
|
||||
shared/clientGameServer/HeartBeat.cpp
|
||||
shared/clientGameServer/HeartBeat.h
|
||||
shared/clientGameServer/HyperspaceMessage.cpp
|
||||
shared/clientGameServer/HyperspaceMessage.h
|
||||
shared/clientGameServer/ImageDesignChangeMessage.cpp
|
||||
shared/clientGameServer/ImageDesignChangeMessage.h
|
||||
shared/clientGameServer/ImageDesignStartMessage.cpp
|
||||
shared/clientGameServer/ImageDesignStartMessage.h
|
||||
shared/clientGameServer/IncubatorCommitMessage.cpp
|
||||
shared/clientGameServer/IncubatorCommitMessage.h
|
||||
shared/clientGameServer/IncubatorStartMessage.cpp
|
||||
shared/clientGameServer/IncubatorStartMessage.h
|
||||
shared/clientGameServer/IsVendorOwnerMessage.cpp
|
||||
shared/clientGameServer/IsVendorOwnerMessage.h
|
||||
shared/clientGameServer/IsVendorOwnerResponseMessage.cpp
|
||||
shared/clientGameServer/IsVendorOwnerResponseMessage.h
|
||||
shared/clientGameServer/LogoutMessage.cpp
|
||||
shared/clientGameServer/LogoutMessage.h
|
||||
shared/clientGameServer/MapLocation.cpp
|
||||
shared/clientGameServer/MapLocation.h
|
||||
shared/clientGameServer/MapLocationArchive.cpp
|
||||
shared/clientGameServer/MapLocationArchive.h
|
||||
shared/clientGameServer/MessageQueueChangeRoleIconChoice.cpp
|
||||
shared/clientGameServer/MessageQueueChangeRoleIconChoice.h
|
||||
shared/clientGameServer/MessageQueueCombatCommand.cpp
|
||||
shared/clientGameServer/MessageQueueCombatCommand.h
|
||||
shared/clientGameServer/MessageQueueCombatSpam.cpp
|
||||
shared/clientGameServer/MessageQueueCombatSpam.h
|
||||
shared/clientGameServer/MessageQueueCombatSpamArchive.cpp
|
||||
shared/clientGameServer/MessageQueueCombatSpamArchive.h
|
||||
shared/clientGameServer/MessageQueueCommandQueueEnqueue.cpp
|
||||
shared/clientGameServer/MessageQueueCommandQueueEnqueue.h
|
||||
shared/clientGameServer/MessageQueueCommandQueueRemove.cpp
|
||||
shared/clientGameServer/MessageQueueCommandQueueRemove.h
|
||||
shared/clientGameServer/MessageQueueCraftCustomization.cpp
|
||||
shared/clientGameServer/MessageQueueCraftCustomization.h
|
||||
shared/clientGameServer/MessageQueueCraftEmptySlot.cpp
|
||||
shared/clientGameServer/MessageQueueCraftEmptySlot.h
|
||||
shared/clientGameServer/MessageQueueCraftExperiment.cpp
|
||||
shared/clientGameServer/MessageQueueCraftExperiment.h
|
||||
shared/clientGameServer/MessageQueueCraftFillSlot.cpp
|
||||
shared/clientGameServer/MessageQueueCraftFillSlot.h
|
||||
shared/clientGameServer/MessageQueueCraftIngredients.cpp
|
||||
shared/clientGameServer/MessageQueueCraftIngredients.h
|
||||
shared/clientGameServer/MessageQueueCraftRequestSession.cpp
|
||||
shared/clientGameServer/MessageQueueCraftRequestSession.h
|
||||
shared/clientGameServer/MessageQueueCraftSelectSchematic.cpp
|
||||
shared/clientGameServer/MessageQueueCraftSelectSchematic.h
|
||||
shared/clientGameServer/MessageQueueCreateSaga.cpp
|
||||
shared/clientGameServer/MessageQueueCreateSaga.h
|
||||
shared/clientGameServer/MessageQueueCyberneticsOpen.cpp
|
||||
shared/clientGameServer/MessageQueueCyberneticsOpen.h
|
||||
shared/clientGameServer/MessageQueueCyberneticsChangeRequest.cpp
|
||||
shared/clientGameServer/MessageQueueCyberneticsChangeRequest.h
|
||||
shared/clientGameServer/MessageQueueDataTransform.cpp
|
||||
shared/clientGameServer/MessageQueueDataTransform.h
|
||||
shared/clientGameServer/MessageQueueDataTransformWithParent.cpp
|
||||
shared/clientGameServer/MessageQueueDataTransformWithParent.h
|
||||
shared/clientGameServer/MessageQueueDraftSchematics.cpp
|
||||
shared/clientGameServer/MessageQueueDraftSchematics.h
|
||||
shared/clientGameServer/MessageQueueDraftSchematicsData.cpp
|
||||
shared/clientGameServer/MessageQueueDraftSchematicsData.h
|
||||
shared/clientGameServer/MessageQueueDraftSlots.cpp
|
||||
shared/clientGameServer/MessageQueueDraftSlots.h
|
||||
shared/clientGameServer/MessageQueueDraftSlotsData.cpp
|
||||
shared/clientGameServer/MessageQueueDraftSlotsData.h
|
||||
shared/clientGameServer/MessageQueueDraftSlotsDataArchive.cpp
|
||||
shared/clientGameServer/MessageQueueDraftSlotsDataArchive.h
|
||||
shared/clientGameServer/MessageQueueDraftSlotsDataOption.cpp
|
||||
shared/clientGameServer/MessageQueueDraftSlotsDataOption.h
|
||||
shared/clientGameServer/MessageQueueDraftSlotsDataOptionArchive.cpp
|
||||
shared/clientGameServer/MessageQueueDraftSlotsDataOptionArchive.h
|
||||
shared/clientGameServer/MessageQueueDraftSlotsQueryResponse.cpp
|
||||
shared/clientGameServer/MessageQueueDraftSlotsQueryResponse.h
|
||||
shared/clientGameServer/MessageQueueGeneric.cpp
|
||||
shared/clientGameServer/MessageQueueGeneric.h
|
||||
shared/clientGameServer/MessageQueueGenericIntResponse.cpp
|
||||
shared/clientGameServer/MessageQueueGenericIntResponse.h
|
||||
shared/clientGameServer/MessageQueueGenericIntResponseArchive.cpp
|
||||
shared/clientGameServer/MessageQueueGenericIntResponseArchive.h
|
||||
shared/clientGameServer/MessageQueueGenericResponse.cpp
|
||||
shared/clientGameServer/MessageQueueGenericResponse.h
|
||||
shared/clientGameServer/MessageQueueGenericResponseArchive.cpp
|
||||
shared/clientGameServer/MessageQueueGenericResponseArchive.h
|
||||
shared/clientGameServer/MessageQueueGenericString.cpp
|
||||
shared/clientGameServer/MessageQueueGenericString.h
|
||||
shared/clientGameServer/MessageQueueHarvesterResourceData.cpp
|
||||
shared/clientGameServer/MessageQueueHarvesterResourceData.h
|
||||
shared/clientGameServer/MessageQueueMissionCreateRequest.cpp
|
||||
shared/clientGameServer/MessageQueueMissionCreateRequest.h
|
||||
shared/clientGameServer/MessageQueueMissionCreateRequestData.cpp
|
||||
shared/clientGameServer/MessageQueueMissionCreateRequestData.h
|
||||
shared/clientGameServer/MessageQueueMissionCreateRequestDataArchive.cpp
|
||||
shared/clientGameServer/MessageQueueMissionCreateRequestDataArchive.h
|
||||
shared/clientGameServer/MessageQueueMissionDetailsRequest.cpp
|
||||
shared/clientGameServer/MessageQueueMissionDetailsRequest.h
|
||||
shared/clientGameServer/MessageQueueMissionDetailsResponse.cpp
|
||||
shared/clientGameServer/MessageQueueMissionDetailsResponse.h
|
||||
shared/clientGameServer/MessageQueueMissionDetailsResponseData.cpp
|
||||
shared/clientGameServer/MessageQueueMissionDetailsResponseData.h
|
||||
shared/clientGameServer/MessageQueueMissionDetailsResponseDataArchive.cpp
|
||||
shared/clientGameServer/MessageQueueMissionDetailsResponseDataArchive.h
|
||||
shared/clientGameServer/MessageQueueMissionGenericRequest.cpp
|
||||
shared/clientGameServer/MessageQueueMissionGenericRequest.h
|
||||
shared/clientGameServer/MessageQueueMissionGenericRequestArchive.cpp
|
||||
shared/clientGameServer/MessageQueueMissionGenericRequestArchive.h
|
||||
shared/clientGameServer/MessageQueueMissionGenericResponse.cpp
|
||||
shared/clientGameServer/MessageQueueMissionGenericResponse.h
|
||||
shared/clientGameServer/MessageQueueMissionGenericResponseArchive.cpp
|
||||
shared/clientGameServer/MessageQueueMissionGenericResponseArchive.h
|
||||
shared/clientGameServer/MessageQueueMissionListRequest.cpp
|
||||
shared/clientGameServer/MessageQueueMissionListRequest.h
|
||||
shared/clientGameServer/MessageQueueMissionListResponse.cpp
|
||||
shared/clientGameServer/MessageQueueMissionListResponse.h
|
||||
shared/clientGameServer/MessageQueueMissionListResponseArchive.cpp
|
||||
shared/clientGameServer/MessageQueueMissionListResponseArchive.h
|
||||
shared/clientGameServer/MessageQueueMissionListResponseData.cpp
|
||||
shared/clientGameServer/MessageQueueMissionListResponseData.h
|
||||
shared/clientGameServer/MessageQueueMissionListResponseDataArchive.cpp
|
||||
shared/clientGameServer/MessageQueueMissionListResponseDataArchive.h
|
||||
shared/clientGameServer/MessageQueueNetworkId.cpp
|
||||
shared/clientGameServer/MessageQueueNetworkId.h
|
||||
shared/clientGameServer/MessageQueueNetworkIdPair.cpp
|
||||
shared/clientGameServer/MessageQueueNetworkIdPair.h
|
||||
shared/clientGameServer/MessageQueueNpcConversationMessage.cpp
|
||||
shared/clientGameServer/MessageQueueNpcConversationMessage.h
|
||||
shared/clientGameServer/MessageQueueObjectMenuRequest.cpp
|
||||
shared/clientGameServer/MessageQueueObjectMenuRequest.h
|
||||
shared/clientGameServer/MessageQueueOpponentInfo.cpp
|
||||
shared/clientGameServer/MessageQueueOpponentInfo.h
|
||||
shared/clientGameServer/MessageQueuePosture.cpp
|
||||
shared/clientGameServer/MessageQueuePosture.h
|
||||
shared/clientGameServer/MessageQueueQuestTaskCounterMessage.cpp
|
||||
shared/clientGameServer/MessageQueueQuestTaskCounterMessage.h
|
||||
shared/clientGameServer/MessageQueueQuestTaskLocationMessage.cpp
|
||||
shared/clientGameServer/MessageQueueQuestTaskLocationMessage.h
|
||||
shared/clientGameServer/MessageQueueQuestTaskTimerMessage.cpp
|
||||
shared/clientGameServer/MessageQueueQuestTaskTimerMessage.h
|
||||
shared/clientGameServer/MessageQueuePushCreature.cpp
|
||||
shared/clientGameServer/MessageQueuePushCreature.h
|
||||
shared/clientGameServer/MessageQueueResourceEmptyHopper.cpp
|
||||
shared/clientGameServer/MessageQueueResourceEmptyHopper.h
|
||||
shared/clientGameServer/MessageQueueResourceEmptyHopperArchive.cpp
|
||||
shared/clientGameServer/MessageQueueResourceEmptyHopperArchive.h
|
||||
shared/clientGameServer/MessageQueueResourceWeights.cpp
|
||||
shared/clientGameServer/MessageQueueResourceWeights.h
|
||||
shared/clientGameServer/MessageQueueSecureTrade.cpp
|
||||
shared/clientGameServer/MessageQueueSecureTrade.h
|
||||
shared/clientGameServer/MessageQueueSelectCurrentWorkingSkill.cpp
|
||||
shared/clientGameServer/MessageQueueSelectCurrentWorkingSkill.h
|
||||
shared/clientGameServer/MessageQueueSelectProfessionTemplate.cpp
|
||||
shared/clientGameServer/MessageQueueSelectProfessionTemplate.h
|
||||
shared/clientGameServer/MessageQueueShipHit.cpp
|
||||
shared/clientGameServer/MessageQueueShipHit.h
|
||||
shared/clientGameServer/MessageQueueShowCombatText.cpp
|
||||
shared/clientGameServer/MessageQueueShowCombatText.h
|
||||
shared/clientGameServer/MessageQueueShowCombatTextArchive.cpp
|
||||
shared/clientGameServer/MessageQueueShowCombatTextArchive.h
|
||||
shared/clientGameServer/MessageQueueShowFlyText.cpp
|
||||
shared/clientGameServer/MessageQueueShowFlyText.h
|
||||
shared/clientGameServer/MessageQueueShowFlyTextArchive.cpp
|
||||
shared/clientGameServer/MessageQueueShowFlyTextArchive.h
|
||||
shared/clientGameServer/MessageQueueSitOnObject.cpp
|
||||
shared/clientGameServer/MessageQueueSitOnObject.h
|
||||
shared/clientGameServer/MessageQueueSitOnObjectArchive.cpp
|
||||
shared/clientGameServer/MessageQueueSitOnObjectArchive.h
|
||||
shared/clientGameServer/MessageQueueSlowDownEffect.cpp
|
||||
shared/clientGameServer/MessageQueueSlowDownEffect.h
|
||||
shared/clientGameServer/MessageQueueSocial.cpp
|
||||
shared/clientGameServer/MessageQueueSocial.h
|
||||
shared/clientGameServer/MessageQueueSocialArchive.cpp
|
||||
shared/clientGameServer/MessageQueueSocialArchive.h
|
||||
shared/clientGameServer/MessageQueueSpaceMiningSellResource.cpp
|
||||
shared/clientGameServer/MessageQueueSpaceMiningSellResource.h
|
||||
shared/clientGameServer/MessageQueueSpatialChat.cpp
|
||||
shared/clientGameServer/MessageQueueSpatialChat.h
|
||||
shared/clientGameServer/MessageQueueSpatialChatArchive.cpp
|
||||
shared/clientGameServer/MessageQueueSpatialChatArchive.h
|
||||
shared/clientGameServer/MessageQueueStartNpcConversation.cpp
|
||||
shared/clientGameServer/MessageQueueStartNpcConversation.h
|
||||
shared/clientGameServer/MessageQueueStopNpcConversation.cpp
|
||||
shared/clientGameServer/MessageQueueStopNpcConversation.h
|
||||
shared/clientGameServer/MessageQueueString.cpp
|
||||
shared/clientGameServer/MessageQueueString.h
|
||||
shared/clientGameServer/MessageQueueStringList.cpp
|
||||
shared/clientGameServer/MessageQueueStringList.h
|
||||
shared/clientGameServer/MessageQueueTeleportAck.cpp
|
||||
shared/clientGameServer/MessageQueueTeleportAck.h
|
||||
shared/clientGameServer/MessageRegionListCircleResponse.cpp
|
||||
shared/clientGameServer/MessageRegionListCircleResponse.h
|
||||
shared/clientGameServer/MessageRegionListRectResponse.cpp
|
||||
shared/clientGameServer/MessageRegionListRectResponse.h
|
||||
shared/clientGameServer/MessageRegionListRequest.cpp
|
||||
shared/clientGameServer/MessageRegionListRequest.h
|
||||
shared/clientGameServer/MessageRegionListResponse.cpp
|
||||
shared/clientGameServer/MessageRegionListResponse.h
|
||||
shared/clientGameServer/NebulaLightningData.cpp
|
||||
shared/clientGameServer/NebulaLightningData.h
|
||||
shared/clientGameServer/NebulaLightningHitData.cpp
|
||||
shared/clientGameServer/NebulaLightningHitData.h
|
||||
shared/clientGameServer/NewbieTutorialEnableHudElement.cpp
|
||||
shared/clientGameServer/NewbieTutorialEnableHudElement.h
|
||||
shared/clientGameServer/NewbieTutorialEnableInterfaceElement.cpp
|
||||
shared/clientGameServer/NewbieTutorialEnableInterfaceElement.h
|
||||
shared/clientGameServer/NewbieTutorialHighlightUIElement.cpp
|
||||
shared/clientGameServer/NewbieTutorialHighlightUIElement.h
|
||||
shared/clientGameServer/NewbieTutorialRequest.cpp
|
||||
shared/clientGameServer/NewbieTutorialRequest.h
|
||||
shared/clientGameServer/NewbieTutorialResponse.cpp
|
||||
shared/clientGameServer/NewbieTutorialResponse.h
|
||||
shared/clientGameServer/NewbieTutorialSetToolbarElement.cpp
|
||||
shared/clientGameServer/NewbieTutorialSetToolbarElement.h
|
||||
shared/clientGameServer/ObjectChannelMessages.cpp
|
||||
shared/clientGameServer/ObjectChannelMessages.h
|
||||
shared/clientGameServer/ObjectMenuRequestData.cpp
|
||||
shared/clientGameServer/ObjectMenuRequestData.h
|
||||
shared/clientGameServer/ObjectMenuRequestDataArchive.h
|
||||
shared/clientGameServer/ObjectMenuSelectMessage.cpp
|
||||
shared/clientGameServer/ObjectMenuSelectMessage.h
|
||||
shared/clientGameServer/OpenHolocronToPageMessage.cpp
|
||||
shared/clientGameServer/OpenHolocronToPageMessage.h
|
||||
shared/clientGameServer/ParametersMessage.cpp
|
||||
shared/clientGameServer/ParametersMessage.h
|
||||
shared/clientGameServer/PlanetTravelPointListRequest.cpp
|
||||
shared/clientGameServer/PlanetTravelPointListRequest.h
|
||||
shared/clientGameServer/PlanetTravelPointListResponse.cpp
|
||||
shared/clientGameServer/PlanetTravelPointListResponse.h
|
||||
shared/clientGameServer/PlayMusicMessage.cpp
|
||||
shared/clientGameServer/PlayMusicMessage.h
|
||||
shared/clientGameServer/PlayCutSceneMessage.cpp
|
||||
shared/clientGameServer/PlayCutSceneMessage.h
|
||||
shared/clientGameServer/PlayerMoneyRequest.cpp
|
||||
shared/clientGameServer/PlayerMoneyRequest.h
|
||||
shared/clientGameServer/PlayerMoneyResponse.cpp
|
||||
shared/clientGameServer/PlayerMoneyResponse.h
|
||||
shared/clientGameServer/PopulateMissionBrowserMessage.cpp
|
||||
shared/clientGameServer/PopulateMissionBrowserMessage.h
|
||||
shared/clientGameServer/RequestGalaxyLoopTimes.cpp
|
||||
shared/clientGameServer/RequestGalaxyLoopTimes.h
|
||||
shared/clientGameServer/ResourceHarvesterActivatePageMessage.cpp
|
||||
shared/clientGameServer/ResourceHarvesterActivatePageMessage.h
|
||||
shared/clientGameServer/RetrieveAuctionItemMessage.cpp
|
||||
shared/clientGameServer/RetrieveAuctionItemMessage.h
|
||||
shared/clientGameServer/RetrieveAuctionItemResponseMessage.cpp
|
||||
shared/clientGameServer/RetrieveAuctionItemResponseMessage.h
|
||||
shared/clientGameServer/SceneChannelMessages.cpp
|
||||
shared/clientGameServer/SceneChannelMessages.h
|
||||
shared/clientGameServer/SecureTradeMessages.cpp
|
||||
shared/clientGameServer/SecureTradeMessages.h
|
||||
shared/clientGameServer/ServerTimeMessage.cpp
|
||||
shared/clientGameServer/ServerTimeMessage.h
|
||||
shared/clientGameServer/ServerUserInterfaceMessages.cpp
|
||||
shared/clientGameServer/ServerUserInterfaceMessages.h
|
||||
shared/clientGameServer/SlowDownEffectMessage.cpp
|
||||
shared/clientGameServer/SlowDownEffectMessage.h
|
||||
shared/clientGameServer/SuiCreatePageMessage.cpp
|
||||
shared/clientGameServer/SuiCreatePageMessage.h
|
||||
shared/clientGameServer/SuiUpdatePageMessage.cpp
|
||||
shared/clientGameServer/SuiUpdatePageMessage.h
|
||||
shared/clientGameServer/SuiEventNotification.cpp
|
||||
shared/clientGameServer/SuiEventNotification.h
|
||||
shared/clientGameServer/ServerWeatherMessage.cpp
|
||||
shared/clientGameServer/ServerWeatherMessage.h
|
||||
shared/clientGameServer/ShipDamageMessage.cpp
|
||||
shared/clientGameServer/ShipDamageMessage.h
|
||||
shared/clientGameServer/ShipDamageMessageArchive.cpp
|
||||
shared/clientGameServer/ShipDamageMessageArchive.h
|
||||
shared/clientGameServer/ShipUpdateTransformCollisionMessage.cpp
|
||||
shared/clientGameServer/ShipUpdateTransformCollisionMessage.h
|
||||
shared/clientGameServer/ShipUpdateTransformMessage.cpp
|
||||
shared/clientGameServer/ShipUpdateTransformMessage.h
|
||||
shared/clientGameServer/StatMigrationTargetsMessage.cpp
|
||||
shared/clientGameServer/StatMigrationTargetsMessage.h
|
||||
shared/clientGameServer/StomachRequestMessage.cpp
|
||||
shared/clientGameServer/StomachRequestMessage.h
|
||||
shared/clientGameServer/UpdateCellPermissionMessage.cpp
|
||||
shared/clientGameServer/UpdateCellPermissionMessage.h
|
||||
shared/clientGameServer/UpdateContainmentMessage.cpp
|
||||
shared/clientGameServer/UpdateContainmentMessage.h
|
||||
shared/clientGameServer/UpdateMissileMessage.cpp
|
||||
shared/clientGameServer/UpdateMissileMessage.h
|
||||
shared/clientGameServer/UpdatePostureMessage.cpp
|
||||
shared/clientGameServer/UpdatePostureMessage.h
|
||||
shared/clientGameServer/UpdatePvpStatusMessage.cpp
|
||||
shared/clientGameServer/UpdatePvpStatusMessage.h
|
||||
shared/clientGameServer/UpdateTransformMessage.cpp
|
||||
shared/clientGameServer/UpdateTransformMessage.h
|
||||
shared/clientGameServer/UpdateTransformWithParentMessage.cpp
|
||||
shared/clientGameServer/UpdateTransformWithParentMessage.h
|
||||
shared/clientGameServer/WhoListMessage.cpp
|
||||
shared/clientGameServer/WhoListMessage.h
|
||||
|
||||
shared/clientLoginServer/ClientLoginMessages.cpp
|
||||
shared/clientLoginServer/ClientLoginMessages.h
|
||||
shared/clientLoginServer/LoginClusterStatus.cpp
|
||||
shared/clientLoginServer/LoginClusterStatus.h
|
||||
shared/clientLoginServer/LoginClusterStatusEx.cpp
|
||||
shared/clientLoginServer/LoginClusterStatusEx.h
|
||||
shared/clientLoginServer/LoginEnumCluster.cpp
|
||||
shared/clientLoginServer/LoginEnumCluster.h
|
||||
|
||||
shared/common/BaselinesMessage.cpp
|
||||
shared/common/BaselinesMessage.h
|
||||
shared/common/BatchBaselinesMessage.cpp
|
||||
shared/common/BatchBaselinesMessage.h
|
||||
shared/common/ClientNotificationBoxMessage.cpp
|
||||
shared/common/ClientNotificationBoxMessage.h
|
||||
shared/common/ClusterWideDataGetElementMessage.cpp
|
||||
shared/common/ClusterWideDataGetElementMessage.h
|
||||
shared/common/ClusterWideDataGetElementResponseMessage.cpp
|
||||
shared/common/ClusterWideDataGetElementResponseMessage.h
|
||||
shared/common/ClusterWideDataReleaseLockMessage.cpp
|
||||
shared/common/ClusterWideDataReleaseLockMessage.h
|
||||
shared/common/ClusterWideDataRemoveElementMessage.cpp
|
||||
shared/common/ClusterWideDataRemoveElementMessage.h
|
||||
shared/common/ClusterWideDataUpdateDictionaryMessage.cpp
|
||||
shared/common/ClusterWideDataUpdateDictionaryMessage.h
|
||||
shared/common/DeltasMessage.cpp
|
||||
shared/common/DeltasMessage.h
|
||||
shared/common/ErrorMessage.cpp
|
||||
shared/common/ErrorMessage.h
|
||||
shared/common/FrameEndMessage.cpp
|
||||
shared/common/FrameEndMessage.h
|
||||
shared/common/GameNetworkMessage.cpp
|
||||
shared/common/GameNetworkMessage.h
|
||||
shared/common/GenericValueTypeMessage.h
|
||||
shared/common/MessageQueueGenericValueType.h
|
||||
shared/common/MessageQueueNetworkIdAndTransform.cpp
|
||||
shared/common/MessageQueueNetworkIdAndTransform.h
|
||||
shared/common/MessageQueueUpdateShipOnCollision.cpp
|
||||
shared/common/MessageQueueUpdateShipOnCollision.h
|
||||
shared/common/SetTransformMessage.cpp
|
||||
shared/common/SetTransformMessage.h
|
||||
|
||||
shared/core/ControllerMessageMacros.h
|
||||
shared/core/FirstSharedNetworkMessages.h
|
||||
shared/core/NetworkStringIds.h
|
||||
shared/core/SetupSharedNetworkMessages.cpp
|
||||
shared/core/SetupSharedNetworkMessages.h
|
||||
|
||||
shared/customerService/AppendCommentMessage.cpp
|
||||
shared/customerService/AppendCommentMessage.h
|
||||
shared/customerService/AppendCommentResponseMessage.cpp
|
||||
shared/customerService/AppendCommentResponseMessage.h
|
||||
shared/customerService/CancelTicketMessage.cpp
|
||||
shared/customerService/CancelTicketMessage.h
|
||||
shared/customerService/CancelTicketResponseMessage.cpp
|
||||
shared/customerService/CancelTicketResponseMessage.h
|
||||
shared/customerService/ConnectPlayerMessage.cpp
|
||||
shared/customerService/ConnectPlayerMessage.h
|
||||
shared/customerService/ConnectPlayerResponseMessage.cpp
|
||||
shared/customerService/ConnectPlayerResponseMessage.h
|
||||
shared/customerService/CreateTicketMessage.cpp
|
||||
shared/customerService/CreateTicketMessage.h
|
||||
shared/customerService/CreateTicketResponseMessage.cpp
|
||||
shared/customerService/CreateTicketResponseMessage.h
|
||||
shared/customerService/CustomerServiceCategoryArchive.cpp
|
||||
shared/customerService/CustomerServiceCategoryArchive.h
|
||||
shared/customerService/CustomerServiceCategory.cpp
|
||||
shared/customerService/CustomerServiceCategory.h
|
||||
shared/customerService/CustomerServiceCommentArchive.cpp
|
||||
shared/customerService/CustomerServiceCommentArchive.h
|
||||
shared/customerService/CustomerServiceComment.cpp
|
||||
shared/customerService/CustomerServiceComment.h
|
||||
shared/customerService/CustomerServiceSearchResultArchive.cpp
|
||||
shared/customerService/CustomerServiceSearchResultArchive.h
|
||||
shared/customerService/CustomerServiceSearchResult.cpp
|
||||
shared/customerService/CustomerServiceSearchResult.h
|
||||
shared/customerService/CustomerServiceTicketArchive.cpp
|
||||
shared/customerService/CustomerServiceTicketArchive.h
|
||||
shared/customerService/CustomerServiceTicket.cpp
|
||||
shared/customerService/CustomerServiceTicket.h
|
||||
shared/customerService/DisconnectPlayerMessage.cpp
|
||||
shared/customerService/DisconnectPlayerMessage.h
|
||||
shared/customerService/DisconnectPlayerResponseMessage.cpp
|
||||
shared/customerService/DisconnectPlayerResponseMessage.h
|
||||
shared/customerService/GetArticleMessage.cpp
|
||||
shared/customerService/GetArticleMessage.h
|
||||
shared/customerService/GetArticleResponseMessage.cpp
|
||||
shared/customerService/GetArticleResponseMessage.h
|
||||
shared/customerService/GetCommentsMessage.cpp
|
||||
shared/customerService/GetCommentsMessage.h
|
||||
shared/customerService/GetCommentsResponseMessage.cpp
|
||||
shared/customerService/GetCommentsResponseMessage.h
|
||||
shared/customerService/GetTicketsMessage.cpp
|
||||
shared/customerService/GetTicketsMessage.h
|
||||
shared/customerService/GetTicketsResponseMessage.cpp
|
||||
shared/customerService/GetTicketsResponseMessage.h
|
||||
shared/customerService/NewTicketActivityMessage.cpp
|
||||
shared/customerService/NewTicketActivityMessage.h
|
||||
shared/customerService/NewTicketActivityResponseMessage.cpp
|
||||
shared/customerService/NewTicketActivityResponseMessage.h
|
||||
shared/customerService/RequestCategoriesMessage.cpp
|
||||
shared/customerService/RequestCategoriesMessage.h
|
||||
shared/customerService/RequestCategoriesResponseMessage.cpp
|
||||
shared/customerService/RequestCategoriesResponseMessage.h
|
||||
shared/customerService/SearchKnowledgeBaseMessage.cpp
|
||||
shared/customerService/SearchKnowledgeBaseMessage.h
|
||||
shared/customerService/SearchKnowledgeBaseResponseMessage.cpp
|
||||
shared/customerService/SearchKnowledgeBaseResponseMessage.h
|
||||
shared/customerService/VerifyPlayerNameResponseMessage.cpp
|
||||
shared/customerService/VerifyPlayerNameResponseMessage.h
|
||||
shared/customerService/VerifyPlayerNameMessage.cpp
|
||||
shared/customerService/VerifyPlayerNameMessage.h
|
||||
|
||||
shared/planetWatch/GameServerStatus.cpp
|
||||
shared/planetWatch/GameServerStatus.h
|
||||
shared/planetWatch/PlanetNodeStatusMessage.cpp
|
||||
shared/planetWatch/PlanetNodeStatusMessage.h
|
||||
shared/planetWatch/PlanetObjectStatusMessage.cpp
|
||||
shared/planetWatch/PlanetObjectStatusMessage.h
|
||||
shared/planetWatch/ServerInfoArchive.cpp
|
||||
shared/planetWatch/ServerInfoArchive.h
|
||||
shared/planetWatch/ServerInfo.h
|
||||
|
||||
shared/voicechat/VoiceChatChannelInfo.cpp
|
||||
shared/voicechat/VoiceChatChannelInfo.h
|
||||
shared/voicechat/VoiceChatMiscMessages.cpp
|
||||
shared/voicechat/VoiceChatMiscMessages.h
|
||||
shared/voicechat/VoiceChatOnGetAccount.cpp
|
||||
shared/voicechat/VoiceChatOnGetAccount.h
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
set(PLATFORM_SOURCES
|
||||
win32/FirstSharedNetworkMessages.cpp
|
||||
)
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/win32)
|
||||
else()
|
||||
set(PLATFORM_SOURCES "")
|
||||
endif()
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/shared)
|
||||
|
||||
add_library(sharedNetworkMessages
|
||||
${SHARED_SOURCES}
|
||||
${PLATFORM_SOURCES}
|
||||
)
|
||||
@@ -0,0 +1,36 @@
|
||||
// GrantCommand.cpp
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "GrantCommand.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
GrantCommand::GrantCommand(const std::string & c) :
|
||||
GameNetworkMessage("GrantCommand"),
|
||||
commandName(c)
|
||||
{
|
||||
addVariable(commandName);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
GrantCommand::GrantCommand(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("GrantCommand"),
|
||||
commandName()
|
||||
{
|
||||
addVariable(commandName);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
GrantCommand::~GrantCommand()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
// GrantCommand.h
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_GrantCommand_H
|
||||
#define _INCLUDED_GrantCommand_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class GrantCommand : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
GrantCommand(const std::string & commandName);
|
||||
GrantCommand(Archive::ReadIterator & source);
|
||||
~GrantCommand();
|
||||
|
||||
const std::string & getCommandName() const;
|
||||
private:
|
||||
GrantCommand & operator = (const GrantCommand & rhs);
|
||||
GrantCommand(const GrantCommand & source);
|
||||
|
||||
private:
|
||||
Archive::AutoVariable<std::string> commandName;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & GrantCommand::getCommandName() const
|
||||
{
|
||||
return commandName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_GrantCommand_H
|
||||
@@ -0,0 +1,53 @@
|
||||
// GrantSkill.cpp
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "GrantSkill.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
GrantSkill::GrantSkill(const std::string & n, const std::string & p, const std::string & c, const std::string & d, const std::vector<std::string> & cp) :
|
||||
GameNetworkMessage("GrantSkill"),
|
||||
category(c),
|
||||
commandsProvided(),
|
||||
description(d),
|
||||
name(n),
|
||||
discipline(p)
|
||||
{
|
||||
commandsProvided.set(cp);
|
||||
addVariable(category);
|
||||
addVariable(commandsProvided);
|
||||
addVariable(description);
|
||||
addVariable(name);
|
||||
addVariable(discipline);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
GrantSkill::GrantSkill(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("GrantSkill"),
|
||||
category(),
|
||||
commandsProvided(),
|
||||
description(),
|
||||
name(),
|
||||
discipline()
|
||||
{
|
||||
addVariable(category);
|
||||
addVariable(commandsProvided);
|
||||
addVariable(description);
|
||||
addVariable(name);
|
||||
addVariable(discipline);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
GrantSkill::~GrantSkill()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
@@ -0,0 +1,73 @@
|
||||
// GrantSkill.h
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_GrantSkill_H
|
||||
#define _INCLUDED_GrantSkill_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class GrantSkill : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
GrantSkill(const std::string & name, const std::string & discipline, const std::string & category, const std::string & description, const std::vector<std::string> & commandsProvided);
|
||||
GrantSkill(Archive::ReadIterator & source);
|
||||
~GrantSkill();
|
||||
|
||||
const std::string & getCategory () const;
|
||||
const std::vector<std::string> & getCommandsProvided () const;
|
||||
const std::string & getDescription () const;
|
||||
const std::string & getName () const;
|
||||
const std::string & getDiscipline () const;
|
||||
|
||||
private:
|
||||
Archive::AutoVariable<std::string> category;
|
||||
Archive::AutoArray<std::string> commandsProvided;
|
||||
Archive::AutoVariable<std::string> description;
|
||||
Archive::AutoVariable<std::string> name;
|
||||
Archive::AutoVariable<std::string> discipline;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & GrantSkill::getCategory() const
|
||||
{
|
||||
return category.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::vector<std::string> & GrantSkill::getCommandsProvided() const
|
||||
{
|
||||
return commandsProvided.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & GrantSkill::getDescription() const
|
||||
{
|
||||
return description.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & GrantSkill::getName() const
|
||||
{
|
||||
return name.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & GrantSkill::getDiscipline() const
|
||||
{
|
||||
return discipline.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_GrantSkill_H
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
// ======================================================================
|
||||
//
|
||||
// LogMessage.cpp
|
||||
//
|
||||
// Copyright 2002 Sony Online Entertainment
|
||||
//
|
||||
// ======================================================================
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/LogMessage.h"
|
||||
|
||||
// ======================================================================
|
||||
|
||||
LogMessage::LogMessage() :
|
||||
GameNetworkMessage("LogMessage"),
|
||||
m_timestamp(0),
|
||||
m_procId(),
|
||||
m_channel(),
|
||||
m_text(),
|
||||
m_unicodeAttach()
|
||||
{
|
||||
addVariable(m_timestamp);
|
||||
addVariable(m_procId);
|
||||
addVariable(m_channel);
|
||||
addVariable(m_text);
|
||||
addVariable(m_unicodeAttach);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
LogMessage::LogMessage(uint64 timestamp, std::string const &procId, std::string const &channel, std::string const &text, Unicode::String const &unicodeAttach) :
|
||||
GameNetworkMessage("LogMessage"),
|
||||
m_timestamp(timestamp),
|
||||
m_procId(procId),
|
||||
m_channel(channel),
|
||||
m_text(text),
|
||||
m_unicodeAttach(unicodeAttach)
|
||||
{
|
||||
addVariable(m_timestamp);
|
||||
addVariable(m_procId);
|
||||
addVariable(m_channel);
|
||||
addVariable(m_text);
|
||||
addVariable(m_unicodeAttach);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
LogMessage::LogMessage(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("LogMessage"),
|
||||
m_timestamp(0),
|
||||
m_procId(),
|
||||
m_channel(),
|
||||
m_text(),
|
||||
m_unicodeAttach()
|
||||
{
|
||||
addVariable(m_timestamp);
|
||||
addVariable(m_procId);
|
||||
addVariable(m_channel);
|
||||
addVariable(m_text);
|
||||
addVariable(m_unicodeAttach);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
LogMessage::LogMessage(LogMessage const &rhs) :
|
||||
GameNetworkMessage("LogMessage"),
|
||||
m_timestamp(rhs.m_timestamp),
|
||||
m_procId(rhs.m_procId),
|
||||
m_channel(rhs.m_channel),
|
||||
m_text(rhs.m_text),
|
||||
m_unicodeAttach(rhs.m_unicodeAttach)
|
||||
{
|
||||
addVariable(m_timestamp);
|
||||
addVariable(m_procId);
|
||||
addVariable(m_channel);
|
||||
addVariable(m_text);
|
||||
addVariable(m_unicodeAttach);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
LogMessage::~LogMessage()
|
||||
{
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
LogMessage & LogMessage::operator=(LogMessage const &rhs)
|
||||
{
|
||||
if (this != &rhs)
|
||||
{
|
||||
m_timestamp = rhs.m_timestamp;
|
||||
m_procId = rhs.m_procId;
|
||||
m_channel = rhs.m_channel;
|
||||
m_text = rhs.m_text;
|
||||
m_unicodeAttach = rhs.m_unicodeAttach;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
// ======================================================================
|
||||
@@ -0,0 +1,82 @@
|
||||
// ======================================================================
|
||||
//
|
||||
// LogMessage.h
|
||||
//
|
||||
// Copyright 2002 Sony Online Entertainment
|
||||
//
|
||||
// ======================================================================
|
||||
|
||||
#ifndef _INCLUDED_LogMessage_H
|
||||
#define _INCLUDED_LogMessage_H
|
||||
|
||||
// ======================================================================
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "unicodeArchive/UnicodeArchive.h"
|
||||
#include "sharedFoundation/NetworkIdArchive.h"
|
||||
|
||||
// ======================================================================
|
||||
|
||||
class LogMessage : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
LogMessage();
|
||||
LogMessage(uint64 timestamp, std::string const &procId, std::string const &channel, std::string const &text, Unicode::String const &unicodeAttach);
|
||||
LogMessage(Archive::ReadIterator &source);
|
||||
LogMessage(LogMessage const &source);
|
||||
~LogMessage();
|
||||
|
||||
uint64 getTimestamp() const;
|
||||
std::string const & getProcId() const;
|
||||
std::string const & getChannel() const;
|
||||
std::string const & getText() const;
|
||||
Unicode::String const & getUnicodeAttach() const;
|
||||
|
||||
LogMessage & operator=(LogMessage const &rhs);
|
||||
|
||||
private:
|
||||
Archive::AutoVariable<uint64> m_timestamp;
|
||||
Archive::AutoVariable<std::string> m_procId;
|
||||
Archive::AutoVariable<std::string> m_channel;
|
||||
Archive::AutoVariable<std::string> m_text;
|
||||
Archive::AutoVariable<Unicode::String> m_unicodeAttach;
|
||||
};
|
||||
|
||||
// ======================================================================
|
||||
|
||||
inline uint64 LogMessage::getTimestamp() const
|
||||
{
|
||||
return m_timestamp.get();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
inline std::string const &LogMessage::getProcId() const
|
||||
{
|
||||
return m_procId.get();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
inline std::string const &LogMessage::getChannel() const
|
||||
{
|
||||
return m_channel.get();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
inline std::string const &LogMessage::getText() const
|
||||
{
|
||||
return m_text.get();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
inline Unicode::String const &LogMessage::getUnicodeAttach() const
|
||||
{
|
||||
return m_unicodeAttach.get();
|
||||
}
|
||||
|
||||
// ======================================================================
|
||||
|
||||
#endif // _INCLUDED_LogMessage_H
|
||||
@@ -0,0 +1,33 @@
|
||||
// NameErrors.cpp
|
||||
// copyright 2001 Verant Interactive
|
||||
// Author: Justin Randall
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "NameErrors.h"
|
||||
|
||||
namespace NameErrors
|
||||
{
|
||||
std::string localizationFile("ui");
|
||||
|
||||
StringId nameApproved(localizationFile, "name_approved");
|
||||
StringId nameApprovedModified(localizationFile, "name_approved_modified");
|
||||
StringId nameDeclinedSyntax(localizationFile, "name_declined_syntax");
|
||||
StringId nameDeclinedEmpty(localizationFile, "name_declined_empty");
|
||||
StringId nameDeclinedRaciallyInappropriate(localizationFile, "name_declined_racially_inappropriate");
|
||||
StringId nameDeclinedFictionallyInappropriate(localizationFile, "name_declined_fictionally_inappropriate");
|
||||
StringId nameDeclinedProfane(localizationFile, "name_declined_profane");
|
||||
StringId nameDeclinedInUse(localizationFile, "name_declined_in_use");
|
||||
StringId nameDeclinedReserved(localizationFile, "name_declined_reserved");
|
||||
StringId nameDeclinedNoTemplate(localizationFile, "name_declined_no_template");
|
||||
StringId nameDeclinedNotCreatureTemplate(localizationFile, "name_declined_not_creature_template");
|
||||
StringId nameDeclinedNoNameGenerator(localizationFile, "name_declined_no_name_generator");
|
||||
StringId nameDeclinedCantCreateAvatar(localizationFile, "name_declined_cant_create_avatar");
|
||||
StringId nameDeclinedInternalError(localizationFile, "name_declined_internal_error");
|
||||
StringId nameDeclinedRetry(localizationFile, "name_declined_retry");
|
||||
StringId nameDeclinedTooFast(localizationFile, "name_declined_too_fast");
|
||||
StringId nameDeclinedNotAuthorizedForSpecies(localizationFile, "name_declined_not_authorized_for_species");
|
||||
};
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
// NameErrors.h
|
||||
// copyright 2001 Verant Interactive
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_NameErrors_H
|
||||
#define _INCLUDED_NameErrors_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "StringId.h"
|
||||
|
||||
namespace NameErrors
|
||||
{
|
||||
extern StringId nameApproved;// ui:name_approved
|
||||
extern StringId nameDeclinedSyntax; // ui:name_declined_syntax
|
||||
extern StringId nameDeclinedEmpty; // ui:name_declined_empty
|
||||
extern StringId nameDeclinedRaciallyInappropriate; // ui:name_declined_racially_inappropriate
|
||||
extern StringId nameDeclinedFictionallyInappropriate; // ui:name_declined_fictionally_inappropriate
|
||||
extern StringId nameDeclinedProfane; // ui:name_declined_profane
|
||||
extern StringId nameDeclinedInUse; // ui:name_declined_in_use
|
||||
extern StringId nameDeclinedReserved; // ui:name_declined_reserved
|
||||
extern StringId nameDeclinedNoTemplate; // ui:name_declined_no_template
|
||||
extern StringId nameDeclinedNotCreatureTemplate; // ui:name_declined_not_creature_template
|
||||
extern StringId nameDeclinedNoNameGenerator; // ui:name_declined_no_name_generator
|
||||
extern StringId nameDeclinedCantCreateAvatar; // ui:name_declined_cant_create_avatar
|
||||
extern StringId nameDeclinedInternalError; // ui:name_declined_internal_error
|
||||
extern StringId nameDeclinedRetry; // ui:name_declined_retry
|
||||
extern StringId nameDeclinedTooFast; // ui:name_declined_too_fast
|
||||
extern StringId nameDeclinedNotAuthorizedForSpecies; // ui:name_declined_not_authorized_for_species
|
||||
|
||||
extern std::string localizationFile;
|
||||
};
|
||||
|
||||
#endif // _INCLUDED_NameErrors_H
|
||||
@@ -0,0 +1,177 @@
|
||||
// NetworkMessageFactory.cpp
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "Archive/ByteStream.h"
|
||||
#include "NetworkMessageFactory.h"
|
||||
|
||||
class TcpClient;
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned long GetNewRuntimeMessageId(const char * messageName)
|
||||
{
|
||||
unsigned long result;
|
||||
static std::map<const char *, unsigned long> ids;
|
||||
|
||||
// find the string in the static map of string/id's.
|
||||
std::map<const char *, unsigned long>::const_iterator f = ids.find(messageName);
|
||||
|
||||
if(f == ids.end())
|
||||
{
|
||||
// it's not there, assign a new id, increment the static nextId
|
||||
static unsigned long nextId = 0;
|
||||
ids[messageName] = nextId;
|
||||
result = nextId;
|
||||
nextId++;
|
||||
}
|
||||
else
|
||||
{
|
||||
// found an existing ID. Often happens during initialization
|
||||
// of statics declared in headers.
|
||||
result = (*f).second;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
NetworkMessageMaker::NetworkMessageMaker(unsigned long typeId, GameNetworkMessage *(*maker)(Archive::ReadIterator &), const DispatchFunctorBase * dispatcher)
|
||||
{
|
||||
NetworkMessageFactory::getInstance().registerMaker(typeId, maker, dispatcher);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
NetworkMessageMaker::~NetworkMessageMaker()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
NetworkMessageFactory::NetworkMessageFactory()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
NetworkMessageFactory::NetworkMessageFactory(const NetworkMessageFactory &)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
NetworkMessageFactory::~NetworkMessageFactory()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
GameConnectionCallback::GameConnectionCallback(UdpConnectionMT * u, TcpClient * t) :
|
||||
Connection(u, t)
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
GameConnectionCallback::~GameConnectionCallback()
|
||||
{
|
||||
std::vector<MessageDispatch::TransceiverBase *>::iterator i;
|
||||
for(i = transceivers.begin(); i != transceivers.end(); ++i)
|
||||
{
|
||||
delete (*i);
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void GameConnectionCallback::addTransceiver(const unsigned long messageId, MessageDispatch::TransceiverBase * newTransceiver)
|
||||
{
|
||||
if(messageId >= transceivers.size())
|
||||
transceivers.resize(messageId +1);
|
||||
transceivers[messageId] = newTransceiver;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
MessageDispatch::TransceiverBase * GameConnectionCallback::getTransceiver(const unsigned long messageId)
|
||||
{
|
||||
if(messageId >= transceivers.size())
|
||||
return 0;
|
||||
|
||||
return transceivers[messageId];
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void GameConnectionCallback::onReceive(const Archive::ByteStream & message)
|
||||
{
|
||||
Archive::ReadIterator r(message);
|
||||
NetworkMessageFactory::getInstance().dispatchMessage(this, r);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
NetworkMessageFactory & NetworkMessageFactory::operator = (const NetworkMessageFactory & rhs)
|
||||
{
|
||||
if(this != &rhs)
|
||||
{
|
||||
// make assignments if right hand side is not this instance
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void NetworkMessageFactory::dispatchMessage(GameConnectionCallback * connection, Archive::ReadIterator & source)
|
||||
{
|
||||
// save a read iterator
|
||||
static Archive::ReadIterator r;
|
||||
r = source;
|
||||
|
||||
// get message type
|
||||
GameNetworkMessage * msg = makeMessage(r);
|
||||
if(msg)
|
||||
{
|
||||
unsigned long t = msg->getType();
|
||||
|
||||
std::map<unsigned long, const DispatchFunctorBase *>::iterator f = dispatchers.find(t);
|
||||
if(f != dispatchers.end())
|
||||
{
|
||||
(*f).second->dispatch(connection, *msg);
|
||||
}
|
||||
}
|
||||
delete msg;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void NetworkMessageFactory::registerMaker(unsigned long typeId, GameNetworkMessage *(*maker)(Archive::ReadIterator &), const DispatchFunctorBase * dispatcher)
|
||||
{
|
||||
messageMakers[typeId] = maker;
|
||||
dispatchers[typeId] = dispatcher;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
GameNetworkMessage * NetworkMessageFactory::makeMessage(Archive::ReadIterator & source)
|
||||
{
|
||||
Archive::ReadIterator ri = source;
|
||||
GameNetworkMessage * result = 0;
|
||||
GameNetworkMessage msg(ri);
|
||||
unsigned long messageType = msg.getType();
|
||||
|
||||
std::map<unsigned long, GameNetworkMessage *(*)(Archive::ReadIterator &)>::const_iterator f = messageMakers.find(messageType);
|
||||
if(f != messageMakers.end())
|
||||
{
|
||||
ri = source;
|
||||
result = (*f).second(ri);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
@@ -0,0 +1,217 @@
|
||||
// NetworkMessageFactory.h
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_NetworkMessageFactory_H
|
||||
#define _INCLUDED_NetworkMessageFactory_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "Archive/ByteStream.h"
|
||||
#include <map>
|
||||
#include "sharedNetwork/Connection.h"
|
||||
#include "sharedMessageDispatch/Transceiver.h"
|
||||
#include "Singleton/Singleton.h"
|
||||
|
||||
class GameNetworkMessage;
|
||||
class GameConnectionCallback;
|
||||
class TcpClient;
|
||||
|
||||
template<typename MessageType>
|
||||
inline unsigned long GetMessageId()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct DispatchFunctorBase
|
||||
{
|
||||
virtual void dispatch(GameConnectionCallback *, GameNetworkMessage &) const = 0;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
/**
|
||||
This class is responsible for creating GameNetworkMessage objects from
|
||||
Archive::ByteStream objects. It also handles dispatch of the message
|
||||
to target object members that are capable of and subscribed to the
|
||||
message or connection/message pair.
|
||||
|
||||
GameNetworkMessage construction happens via the makeMessage interface.
|
||||
makeMessage looks for the correpsonding construction function
|
||||
(define by the MakeMessage(x) macro, yuck). MakeMessage instantiates
|
||||
a static struct with parmaters that identify 1) how to construct
|
||||
a message, 2) how to identify a message for transceiver lookups and
|
||||
3) how to dispatch a message. This data is storedin the
|
||||
NetworkMessageFactory singleton for later use by recivers and emitters.
|
||||
|
||||
Dispatching is initiated by a GameConnectionCallback (or a derivative)
|
||||
passing itself and a byte stream to dispatchMessage(). Getting the
|
||||
transceiver responsible for emitting the message is a constant time
|
||||
operation.
|
||||
|
||||
*/
|
||||
class NetworkMessageFactory : public Singleton<NetworkMessageFactory>
|
||||
{
|
||||
public:
|
||||
~NetworkMessageFactory();
|
||||
|
||||
void dispatchMessage(GameConnectionCallback * source, Archive::ReadIterator &);
|
||||
|
||||
GameNetworkMessage * makeMessage(Archive::ReadIterator & bs);
|
||||
|
||||
protected:
|
||||
friend struct NetworkMessageMaker;
|
||||
friend class Singleton<NetworkMessageFactory>;
|
||||
NetworkMessageFactory();
|
||||
void registerMaker(unsigned long int, GameNetworkMessage *(*)(Archive::ReadIterator &), const DispatchFunctorBase *);
|
||||
|
||||
private:
|
||||
NetworkMessageFactory & operator = (const NetworkMessageFactory & rhs);
|
||||
NetworkMessageFactory(const NetworkMessageFactory & source);
|
||||
|
||||
private:
|
||||
std::map<unsigned long int, GameNetworkMessage * (*)(Archive::ReadIterator &)> messageMakers;
|
||||
std::map<unsigned long int, const DispatchFunctorBase *> dispatchers;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
/**
|
||||
The NetworkMessageMaker facilitates static registration of factory
|
||||
functions for GameNetworkMessage objects. Only GameNetworkMessage
|
||||
objects that are included in an application create an instance
|
||||
of the NetworkMessageMaker (no data members).
|
||||
|
||||
On construction, the NetworkMessageMaker registers create and
|
||||
dispatch functions with the NetworkMessageFactory singleton.
|
||||
*/
|
||||
struct NetworkMessageMaker
|
||||
{
|
||||
NetworkMessageMaker(unsigned long, GameNetworkMessage *(*maker)(Archive::ReadIterator &), const DispatchFunctorBase *);
|
||||
~NetworkMessageMaker();
|
||||
};
|
||||
|
||||
template<typename MessageType>
|
||||
struct NetworkMessage
|
||||
{
|
||||
NetworkMessage(GameConnectionCallback & c, MessageType & m) : connection(c), message(m){};
|
||||
GameConnectionCallback & connection;
|
||||
MessageType & message;
|
||||
NetworkMessage & operator = (const NetworkMessage &);
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
/**
|
||||
Generates a unique unsigned long integer from a character string. The
|
||||
id is unique within the scope of the current application for the
|
||||
current run ONLY. Ids are generated sequentially, to better support
|
||||
storing maps of ids to other types in vectors rather than maps.
|
||||
|
||||
This is intended to be used during type initialization (usually
|
||||
during application startup or the first time a new type id is
|
||||
required). It is a logN operation (map lookup).
|
||||
*/
|
||||
unsigned long GetNewRuntimeMessageId(const char * messageName);
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
/**
|
||||
GameConnectionCallback sits between Network::ConnectionCallback
|
||||
and the game to handle message dispatching.
|
||||
|
||||
It implements onReceiveMessage(Archive::ReadIterator &)
|
||||
and invokes NetworkMessageFactory::dispatchMessage(). This dispatch
|
||||
processes uses the sharedMessageDispatch system's Transceiver
|
||||
to deliver messages to target object member functions.
|
||||
|
||||
Dispatchers are (currently) organized in a vector. The messageId
|
||||
is determined from the type of message, which is incrementally
|
||||
defined as each new message type comes online. This is unique and
|
||||
consistent only for the current run of the application. These
|
||||
ID's CAN NOT be persisted or used between separate invocations
|
||||
of the application!
|
||||
*/
|
||||
class GameConnectionCallback : public Connection
|
||||
{
|
||||
public:
|
||||
GameConnectionCallback(UdpConnectionMT *, TcpClient *);
|
||||
virtual ~GameConnectionCallback();
|
||||
|
||||
template<typename MessageType, typename ObjectType>
|
||||
void listenForMessage(MessageDispatch::Callback & cb, ObjectType & object, void (ObjectType::*callback)(MessageType) )
|
||||
{
|
||||
unsigned long messageId = GetMessageId<MessageType>();
|
||||
MessageDispatch::Transceiver<MessageType> * t = static_cast<MessageDispatch::Transceiver<MessageType> *>(getTransceiver(messageId));
|
||||
if(!t)
|
||||
{
|
||||
t = new MessageDispatch::Transceiver<MessageType>;
|
||||
addTransceiver(messageId, t);
|
||||
}
|
||||
cb.connect(*t, object, callback);
|
||||
}
|
||||
|
||||
void addTransceiver (const unsigned long messageId, MessageDispatch::TransceiverBase * newTransceiver);
|
||||
MessageDispatch::TransceiverBase * getTransceiver (const unsigned long messageId);
|
||||
virtual void onReceive (const Archive::ByteStream & message);
|
||||
|
||||
private:
|
||||
std::vector<MessageDispatch::TransceiverBase *> transceivers;
|
||||
GameConnectionCallback(const GameConnectionCallback &);
|
||||
GameConnectionCallback & operator = (const GameConnectionCallback &);
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
Yes, this is in fact a macro. It would be a template if I could
|
||||
figure out how to do it :)
|
||||
|
||||
It defines a clone/factory function, registers the function by way
|
||||
of a static instance of a NetworkMessageMaker, and defines a dispatch
|
||||
routine which is also registered (again via the static
|
||||
NetworkMessageMaker). When a byte stream is passed to the
|
||||
NetworkMessageFactory singleton, it reconstructs the appropriate
|
||||
game network message.
|
||||
|
||||
A GameConnectionCallback invokes
|
||||
NetworkMessageFactory::dispatch() with the byte stream. The
|
||||
factory creates a GameNetworkMessage and passes it to it's
|
||||
corresponding dispatch function. The dispatch function casts
|
||||
it to the right type, finds a transceiver for the type (or
|
||||
creates one if it doesn't yet exist), and emits the message.
|
||||
|
||||
All transceivers listening for a NetworkMessage<GameMessageType>
|
||||
from the source GameConnectionCallback object or callbacks listening
|
||||
anonymously will receive the message.
|
||||
*/
|
||||
|
||||
|
||||
template<typename MessageType>
|
||||
struct DispatchFunctor : public DispatchFunctorBase
|
||||
{
|
||||
void dispatch(GameConnectionCallback * connection, GameNetworkMessage & base) const
|
||||
{
|
||||
MessageType & message = static_cast<MessageType &>(base);
|
||||
NetworkMessage<MessageType> m(*connection, message);
|
||||
unsigned long typeId = GetMessageId<MessageType>();
|
||||
MessageDispatch::Transceiver<NetworkMessage<MessageType> &> * t = static_cast<MessageDispatch::Transceiver<NetworkMessage<MessageType> &> *>(connection->getTransceiver(typeId));
|
||||
if(!t)
|
||||
{
|
||||
t = new MessageDispatch::Transceiver<NetworkMessage<MessageType> &>;
|
||||
connection->addTransceiver(typeId, t);
|
||||
}
|
||||
t->emitMessage(m);
|
||||
}
|
||||
};
|
||||
|
||||
#define MakeMessage(x) inline GameNetworkMessage * make##x(Archive::ReadIterator & source) { \
|
||||
return new x ( source ) ; \
|
||||
} \
|
||||
template<> inline unsigned long GetMessageId<x>() \
|
||||
{ \
|
||||
static const unsigned long id = GetNewRuntimeMessageId(#x); \
|
||||
return id; \
|
||||
} \
|
||||
static const DispatchFunctor<x> dispatch##x; \
|
||||
static const NetworkMessageMaker maker##x(MessageDispatch::MessageBase::makeMessageTypeFromString(#x), make##x, &dispatch##x);
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_NetworkMessageFactory_H
|
||||
@@ -0,0 +1,36 @@
|
||||
// RevokeCommand.cpp
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "RevokeCommand.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
RevokeCommand::RevokeCommand(const std::string & c) :
|
||||
GameNetworkMessage("RevokeCommand"),
|
||||
commandName(c)
|
||||
{
|
||||
addVariable(commandName);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
RevokeCommand::RevokeCommand(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("RevokeCommand"),
|
||||
commandName()
|
||||
{
|
||||
addVariable(commandName);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
RevokeCommand::~RevokeCommand()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
// RevokeCommand.h
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_RevokeCommand_H
|
||||
#define _INCLUDED_RevokeCommand_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class RevokeCommand : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
RevokeCommand(const std::string & commandName);
|
||||
RevokeCommand(Archive::ReadIterator & source);
|
||||
~RevokeCommand();
|
||||
|
||||
const std::string & getCommandName() const;
|
||||
|
||||
private:
|
||||
RevokeCommand & operator = (const RevokeCommand & rhs);
|
||||
RevokeCommand(const RevokeCommand & source);
|
||||
|
||||
private:
|
||||
Archive::AutoVariable<std::string> commandName;
|
||||
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & RevokeCommand::getCommandName() const
|
||||
{
|
||||
return commandName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_RevokeCommand_H
|
||||
@@ -0,0 +1,36 @@
|
||||
// RevokeSkill.cpp
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "RevokeSkill.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
RevokeSkill::RevokeSkill(const std::string & s) :
|
||||
GameNetworkMessage("RevokeSkill"),
|
||||
skillName(s)
|
||||
{
|
||||
addVariable(skillName);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
RevokeSkill::RevokeSkill(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("RevokeSkill"),
|
||||
skillName()
|
||||
{
|
||||
addVariable(skillName);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
RevokeSkill::~RevokeSkill()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
// RevokeSkill.h
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_RevokeSkill_H
|
||||
#define _INCLUDED_RevokeSkill_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class RevokeSkill : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
RevokeSkill(const std::string & skillName);
|
||||
RevokeSkill(Archive::ReadIterator & source);
|
||||
~RevokeSkill();
|
||||
|
||||
const std::string & getSkillName() const;
|
||||
|
||||
private:
|
||||
RevokeSkill & operator = (const RevokeSkill & rhs);
|
||||
RevokeSkill(const RevokeSkill & source);
|
||||
|
||||
private:
|
||||
Archive::AutoVariable<std::string> skillName;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & RevokeSkill::getSkillName() const
|
||||
{
|
||||
return skillName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_RevokeSkill_H
|
||||
@@ -0,0 +1,40 @@
|
||||
// ChatAddFriend.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatAddFriend.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatAddFriend::ChatAddFriend(const unsigned int q, const ChatAvatarId & c) :
|
||||
GameNetworkMessage("ChatAddFriend"),
|
||||
characterName(c),
|
||||
sequence(q)
|
||||
{
|
||||
addVariable(characterName);
|
||||
addVariable(sequence);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatAddFriend::ChatAddFriend(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatAddFriend"),
|
||||
characterName(),
|
||||
sequence()
|
||||
{
|
||||
addVariable(characterName);
|
||||
addVariable(sequence);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatAddFriend::~ChatAddFriend()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
// ChatAddFriend.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatAddFriend_H
|
||||
#define _INCLUDED_ChatAddFriend_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatAddFriend : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatAddFriend(const unsigned int sequence, const ChatAvatarId & characterName);
|
||||
ChatAddFriend(Archive::ReadIterator & source);
|
||||
~ChatAddFriend();
|
||||
|
||||
const ChatAvatarId & getCharacterName () const;
|
||||
const unsigned int getSequence () const;
|
||||
|
||||
private:
|
||||
ChatAddFriend & operator = (const ChatAddFriend & rhs);
|
||||
ChatAddFriend(const ChatAddFriend & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> characterName;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatAddFriend::getCharacterName () const
|
||||
{
|
||||
return characterName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatAddFriend::getSequence () const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatAddFriend_H
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
// ChatAddModeratorToRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatAddModeratorToRoom.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatAddModeratorToRoom::ChatAddModeratorToRoom(const unsigned int s, const ChatAvatarId & a, const std::string & r) :
|
||||
GameNetworkMessage("ChatAddModeratorToRoom"),
|
||||
avatarId(a),
|
||||
roomName(r),
|
||||
sequenceId(s)
|
||||
{
|
||||
addVariable(avatarId);
|
||||
addVariable(roomName);
|
||||
addVariable(sequenceId);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatAddModeratorToRoom::ChatAddModeratorToRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatAddModeratorToRoom"),
|
||||
avatarId(),
|
||||
roomName(),
|
||||
sequenceId(0)
|
||||
{
|
||||
addVariable(avatarId);
|
||||
addVariable(roomName);
|
||||
addVariable(sequenceId);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatAddModeratorToRoom::~ChatAddModeratorToRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
// ChatAddModeratorToRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatAddModeratorToRoom_H
|
||||
#define _INCLUDED_ChatAddModeratorToRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatAddModeratorToRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatAddModeratorToRoom(const unsigned int sequenceId, const ChatAvatarId & avatarId, const std::string & roomName);
|
||||
ChatAddModeratorToRoom(Archive::ReadIterator & source);
|
||||
~ChatAddModeratorToRoom();
|
||||
|
||||
const ChatAvatarId & getAvatarId () const;
|
||||
const std::string & getRoomName () const;
|
||||
const unsigned int getSequenceId () const;
|
||||
|
||||
private:
|
||||
ChatAddModeratorToRoom & operator = (const ChatAddModeratorToRoom & rhs);
|
||||
ChatAddModeratorToRoom(const ChatAddModeratorToRoom & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> avatarId;
|
||||
Archive::AutoVariable<std::string> roomName;
|
||||
Archive::AutoVariable<unsigned int> sequenceId;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatAddModeratorToRoom::getAvatarId() const
|
||||
{
|
||||
return avatarId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatAddModeratorToRoom::getRoomName() const
|
||||
{
|
||||
return roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatAddModeratorToRoom::getSequenceId() const
|
||||
{
|
||||
return sequenceId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatAddModeratorToRoom_H
|
||||
@@ -0,0 +1,157 @@
|
||||
//======================================================================
|
||||
//
|
||||
// ChatAvatarId.cpp
|
||||
// copyright (c) 2002 Sony Online Entertainment
|
||||
//
|
||||
//======================================================================
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "UnicodeUtils.h"
|
||||
|
||||
//======================================================================
|
||||
|
||||
ChatAvatarId::ChatAvatarId () :
|
||||
gameCode (),
|
||||
cluster (),
|
||||
name ()
|
||||
{
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
ChatAvatarId::ChatAvatarId (const std::string & _gameCode, const std::string & _cluster, const std::string & _name) :
|
||||
gameCode (_gameCode),
|
||||
cluster (_cluster),
|
||||
name (_name)
|
||||
{
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
ChatAvatarId::ChatAvatarId (const std::string & _cluster, const std::string & _name) :
|
||||
gameCode (),
|
||||
cluster (_cluster),
|
||||
name (_name)
|
||||
{
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
ChatAvatarId::ChatAvatarId (const std::string & _name) :
|
||||
gameCode (),
|
||||
cluster (),
|
||||
name (_name)
|
||||
{
|
||||
size_t dotpos = _name.rfind ('.');
|
||||
|
||||
if (dotpos != std::string::npos)
|
||||
{
|
||||
name = _name.substr (dotpos + 1);
|
||||
|
||||
if (dotpos > 0)
|
||||
{
|
||||
--dotpos;
|
||||
const size_t dotpos_2 = _name.rfind ('.', dotpos);
|
||||
|
||||
if (dotpos_2 != std::string::npos)
|
||||
{
|
||||
cluster = _name.substr (dotpos_2 + 1, dotpos - dotpos_2);
|
||||
gameCode = _name.substr (0, dotpos_2);
|
||||
}
|
||||
else
|
||||
cluster = _name.substr (0, dotpos + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
const bool ChatAvatarId::operator== (const ChatAvatarId & rhs) const
|
||||
{
|
||||
return !_stricmp (gameCode.c_str (), rhs.gameCode.c_str ()) &&
|
||||
!_stricmp (cluster.c_str (), rhs.cluster.c_str ()) &&
|
||||
!_stricmp (name.c_str (), rhs.name.c_str ());
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
const bool ChatAvatarId::operator!= (const ChatAvatarId & rhs) const
|
||||
{
|
||||
return !(rhs == *this);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const bool ChatAvatarId::operator < (const ChatAvatarId & rhs) const
|
||||
{
|
||||
if (gameCode < rhs.gameCode)
|
||||
return true;
|
||||
|
||||
if (gameCode == rhs.gameCode)
|
||||
{
|
||||
if (cluster < rhs.cluster)
|
||||
return true;
|
||||
|
||||
if (cluster == rhs.cluster)
|
||||
return (name < rhs.name);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
std::string ChatAvatarId::getNameWithNecessaryPrefix(const std::string & localGameCode, const std::string & localCluster) const
|
||||
{
|
||||
std::string nameWithNecessaryPrefix;
|
||||
if (_stricmp(gameCode.c_str(), localGameCode.c_str()))
|
||||
{
|
||||
// avatar is from a different game, so use both the game and cluster name
|
||||
nameWithNecessaryPrefix = gameCode + std::string(".") + cluster + std::string(".") + name;
|
||||
}
|
||||
else if (_stricmp(cluster.c_str(), localCluster.c_str()))
|
||||
{
|
||||
// avatar is from a different cluster, so the cluster name
|
||||
nameWithNecessaryPrefix = cluster + std::string(".") + name;
|
||||
}
|
||||
else
|
||||
{
|
||||
// avatar is from same cluster, so just use the name
|
||||
nameWithNecessaryPrefix = name;
|
||||
}
|
||||
|
||||
return nameWithNecessaryPrefix;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
std::string ChatAvatarId::getFullName () const
|
||||
{
|
||||
return gameCode + '.' + cluster + '.' + name;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
void ChatAvatarId::clear ()
|
||||
{
|
||||
gameCode.clear ();
|
||||
cluster.clear ();
|
||||
name.clear ();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
Unicode::String ChatAvatarId::getAPIAddress() const
|
||||
{
|
||||
return Unicode::narrowToWide( "SOE+" + gameCode + '+' + cluster );
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
Unicode::String ChatAvatarId::getName() const
|
||||
{
|
||||
return Unicode::narrowToWide( name );
|
||||
}
|
||||
|
||||
//======================================================================
|
||||
@@ -0,0 +1,40 @@
|
||||
//======================================================================
|
||||
//
|
||||
// ChatAvatarId.h
|
||||
// copyright (c) 2002 Sony Online Entertainment
|
||||
//
|
||||
//======================================================================
|
||||
|
||||
#ifndef INCLUDED_ChatAvatarId_H
|
||||
#define INCLUDED_ChatAvatarId_H
|
||||
|
||||
#include <string>
|
||||
#include "Unicode.h"
|
||||
|
||||
//======================================================================
|
||||
|
||||
struct ChatAvatarId
|
||||
{
|
||||
std::string gameCode;
|
||||
std::string cluster;
|
||||
std::string name;
|
||||
|
||||
ChatAvatarId ();
|
||||
explicit ChatAvatarId (const std::string & name);
|
||||
ChatAvatarId (const std::string & cluster, const std::string & name);
|
||||
ChatAvatarId (const std::string & gameCode, const std::string & cluster, const std::string & name);
|
||||
|
||||
const bool operator== (const ChatAvatarId & rhs) const;
|
||||
const bool operator!= (const ChatAvatarId & rhs) const;
|
||||
const bool operator < (const ChatAvatarId & rhs) const;
|
||||
|
||||
std::string getNameWithNecessaryPrefix(const std::string & localGameCode, const std::string & localCluster) const;
|
||||
std::string getFullName () const;
|
||||
void clear ();
|
||||
Unicode::String getAPIAddress () const;
|
||||
Unicode::String getName () const;
|
||||
};
|
||||
|
||||
//======================================================================
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,32 @@
|
||||
//======================================================================
|
||||
//
|
||||
// ChatAvatarIdArchive.cpp
|
||||
// copyright (c) 2002 Sony Online Entertainment
|
||||
//
|
||||
//======================================================================
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
namespace Archive
|
||||
{
|
||||
void get (ReadIterator & source, ChatAvatarId & target)
|
||||
{
|
||||
get (source, target.gameCode);
|
||||
get (source, target.cluster);
|
||||
get (source, target.name);
|
||||
}
|
||||
|
||||
void put (ByteStream & target, const ChatAvatarId & source)
|
||||
{
|
||||
put (target, source.gameCode);
|
||||
put (target, source.cluster);
|
||||
put (target, source.name);
|
||||
}
|
||||
}
|
||||
|
||||
//======================================================================
|
||||
@@ -0,0 +1,27 @@
|
||||
//======================================================================
|
||||
//
|
||||
// ChatAvatarIdArchive.h
|
||||
// copyright (c) 2002 Sony Online Entertainment
|
||||
//
|
||||
//======================================================================
|
||||
|
||||
#ifndef INCLUDED_ChatAvatarIdArchive_H
|
||||
#define INCLUDED_ChatAvatarIdArchive_H
|
||||
|
||||
//======================================================================
|
||||
|
||||
#include "Archive/ByteStream.h"
|
||||
|
||||
struct ChatAvatarId;
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
namespace Archive
|
||||
{
|
||||
void get (ReadIterator & source, ChatAvatarId & target);
|
||||
void put (ByteStream & target, const ChatAvatarId & source);
|
||||
}
|
||||
|
||||
//======================================================================
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,43 @@
|
||||
// ChatBanAvatarFromRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatBanAvatarFromRoom.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatBanAvatarFromRoom::ChatBanAvatarFromRoom(const unsigned int s, const ChatAvatarId & a, const std::string & r) :
|
||||
GameNetworkMessage("ChatBanAvatarFromRoom"),
|
||||
avatarId(a),
|
||||
roomName(r),
|
||||
sequence(s)
|
||||
{
|
||||
addVariable(avatarId);
|
||||
addVariable(roomName);
|
||||
addVariable(sequence);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatBanAvatarFromRoom::ChatBanAvatarFromRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatBanAvatarFromRoom"),
|
||||
avatarId(),
|
||||
roomName()
|
||||
{
|
||||
addVariable(avatarId);
|
||||
addVariable(roomName);
|
||||
addVariable(sequence);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatBanAvatarFromRoom::~ChatBanAvatarFromRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
// ChatBanAvatarFromRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
|
||||
#ifndef _INCLUDED_ChatBanAvatarFromRoom_H
|
||||
#define _INCLUDED_ChatBanAvatarFromRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatBanAvatarFromRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatBanAvatarFromRoom(const unsigned int sequence, const ChatAvatarId & avatarId, const std::string & roomName);
|
||||
ChatBanAvatarFromRoom(Archive::ReadIterator & source);
|
||||
~ChatBanAvatarFromRoom();
|
||||
|
||||
const ChatAvatarId & getAvatarId () const;
|
||||
const std::string & getRoomName () const;
|
||||
const unsigned int getSequence () const;
|
||||
|
||||
private:
|
||||
ChatBanAvatarFromRoom & operator = (const ChatBanAvatarFromRoom & rhs);
|
||||
ChatBanAvatarFromRoom(const ChatBanAvatarFromRoom & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> avatarId; //avatar to ban
|
||||
Archive::AutoVariable<std::string> roomName;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatBanAvatarFromRoom::getAvatarId() const
|
||||
{
|
||||
return avatarId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatBanAvatarFromRoom::getRoomName() const
|
||||
{
|
||||
return roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatBanAvatarFromRoom::getSequence() const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatBanAvatarFromRoom_H
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
// ChatChangeFriendStatus.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Matt Sivertson
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatChangeFriendStatus.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatChangeFriendStatus::ChatChangeFriendStatus(unsigned int q, const ChatAvatarId & c, const ChatAvatarId & _friendName, bool a) :
|
||||
GameNetworkMessage("ChatChangeFriendStatus"),
|
||||
characterName(c),
|
||||
friendName(_friendName),
|
||||
sequence(q),
|
||||
add(a)
|
||||
{
|
||||
addVariable(characterName);
|
||||
addVariable(friendName);
|
||||
addVariable(sequence);
|
||||
addVariable(add);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatChangeFriendStatus::ChatChangeFriendStatus(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatChangeFriendStatus"),
|
||||
characterName(),
|
||||
friendName(),
|
||||
sequence(0),
|
||||
add(0)
|
||||
{
|
||||
addVariable(characterName);
|
||||
addVariable(friendName);
|
||||
addVariable(sequence);
|
||||
addVariable(add);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatChangeFriendStatus::~ChatChangeFriendStatus()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
// ChatChangeFriendStatus.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatChangeFriendStatus_H
|
||||
#define _INCLUDED_ChatChangeFriendStatus_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatChangeFriendStatus : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatChangeFriendStatus(unsigned int sequence, const ChatAvatarId & characterName, const ChatAvatarId & friendName, bool add);
|
||||
ChatChangeFriendStatus(Archive::ReadIterator & source);
|
||||
~ChatChangeFriendStatus();
|
||||
|
||||
const ChatAvatarId & getCharacterName () const;
|
||||
const ChatAvatarId & getFriendName () const;
|
||||
unsigned int getSequence () const;
|
||||
bool getAdd () const;
|
||||
|
||||
private:
|
||||
ChatChangeFriendStatus & operator = (const ChatChangeFriendStatus & rhs);
|
||||
ChatChangeFriendStatus(const ChatChangeFriendStatus & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> characterName;
|
||||
Archive::AutoVariable<ChatAvatarId> friendName;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
Archive::AutoVariable<bool> add;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatChangeFriendStatus::getCharacterName () const
|
||||
{
|
||||
return characterName.get();
|
||||
}
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatChangeFriendStatus::getFriendName () const
|
||||
{
|
||||
return friendName.get();
|
||||
}
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline unsigned int ChatChangeFriendStatus::getSequence () const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline bool ChatChangeFriendStatus::getAdd () const
|
||||
{
|
||||
return add.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatChangeFriendStatus_H
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
// ChatChangeIgnoreStatus.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Matt Sivertson
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatChangeIgnoreStatus.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatChangeIgnoreStatus::ChatChangeIgnoreStatus(unsigned int q, const ChatAvatarId & c, const ChatAvatarId & _friendName, bool a) :
|
||||
GameNetworkMessage("ChatChangeIgnoreStatus"),
|
||||
characterName(c),
|
||||
friendName(_friendName),
|
||||
sequence(q),
|
||||
ignore(a)
|
||||
{
|
||||
addVariable(characterName);
|
||||
addVariable(friendName);
|
||||
addVariable(sequence);
|
||||
addVariable(ignore);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatChangeIgnoreStatus::ChatChangeIgnoreStatus(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatChangeIgnoreStatus"),
|
||||
characterName(),
|
||||
friendName(),
|
||||
sequence(0),
|
||||
ignore(0)
|
||||
{
|
||||
addVariable(characterName);
|
||||
addVariable(friendName);
|
||||
addVariable(sequence);
|
||||
addVariable(ignore);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatChangeIgnoreStatus::~ChatChangeIgnoreStatus()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
// ChatChangeIgnoreStatus.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Matt Sivertson
|
||||
|
||||
#ifndef _INCLUDED_ChatChangeIgnoreStatus_H
|
||||
#define _INCLUDED_ChatChangeIgnoreStatus_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatChangeIgnoreStatus : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatChangeIgnoreStatus(unsigned int sequence, const ChatAvatarId & characterName, const ChatAvatarId & friendName, bool ignore);
|
||||
ChatChangeIgnoreStatus(Archive::ReadIterator & source);
|
||||
~ChatChangeIgnoreStatus();
|
||||
|
||||
const ChatAvatarId & getCharacterName () const;
|
||||
const ChatAvatarId & getIgnoreName () const;
|
||||
unsigned int getSequence () const;
|
||||
bool getIgnore () const;
|
||||
|
||||
private:
|
||||
ChatChangeIgnoreStatus & operator = (const ChatChangeIgnoreStatus & rhs);
|
||||
ChatChangeIgnoreStatus(const ChatChangeIgnoreStatus & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> characterName;
|
||||
Archive::AutoVariable<ChatAvatarId> friendName;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
Archive::AutoVariable<bool> ignore;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatChangeIgnoreStatus::getCharacterName () const
|
||||
{
|
||||
return characterName.get();
|
||||
}
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatChangeIgnoreStatus::getIgnoreName () const
|
||||
{
|
||||
return friendName.get();
|
||||
}
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline unsigned int ChatChangeIgnoreStatus::getSequence () const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline bool ChatChangeIgnoreStatus::getIgnore () const
|
||||
{
|
||||
return ignore.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatChangeIgnoreStatus_H
|
||||
@@ -0,0 +1,56 @@
|
||||
// ChatCreateRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Createtainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatCreateRoom.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatCreateRoom::ChatCreateRoom(const unsigned int s, const std::string & o, const std::string & n, const bool m, const bool p, const std::string & t) :
|
||||
GameNetworkMessage("ChatCreateRoom"),
|
||||
isPublic(p),
|
||||
isModerated(m),
|
||||
ownerName(o),
|
||||
roomName(n),
|
||||
roomTitle(t),
|
||||
sequence(s)
|
||||
{
|
||||
addVariable(isPublic);
|
||||
addVariable(isModerated);
|
||||
addVariable(ownerName);
|
||||
addVariable(roomName);
|
||||
addVariable(roomTitle);
|
||||
addVariable(sequence);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatCreateRoom::ChatCreateRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatCreateRoom"),
|
||||
isPublic(),
|
||||
isModerated(),
|
||||
ownerName(),
|
||||
roomName(),
|
||||
roomTitle(),
|
||||
sequence()
|
||||
{
|
||||
addVariable(isPublic);
|
||||
addVariable(isModerated);
|
||||
addVariable(ownerName);
|
||||
addVariable(roomName);
|
||||
addVariable(roomTitle);
|
||||
addVariable(sequence);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatCreateRoom::~ChatCreateRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
// ChatCreateRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatCreateRoom_H
|
||||
#define _INCLUDED_ChatCreateRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatCreateRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatCreateRoom(const unsigned int sequence, const std::string & ownerName, const std::string & roomName, const bool isModerated, const bool isPublic, const std::string & roomTitle);
|
||||
ChatCreateRoom(Archive::ReadIterator &);
|
||||
~ChatCreateRoom();
|
||||
|
||||
const bool getIsModerated () const;
|
||||
const bool getIsPublic () const;
|
||||
const std::string & getOwnerName () const;
|
||||
const std::string & getRoomName () const;
|
||||
const unsigned int getSequence () const;
|
||||
const std::string & getRoomTitle () const;
|
||||
|
||||
private:
|
||||
ChatCreateRoom & operator = (const ChatCreateRoom & rhs);
|
||||
ChatCreateRoom(const ChatCreateRoom & source);
|
||||
|
||||
Archive::AutoVariable<bool> isPublic;
|
||||
Archive::AutoVariable<bool> isModerated;
|
||||
Archive::AutoVariable<std::string> ownerName;
|
||||
Archive::AutoVariable<std::string> roomName;
|
||||
Archive::AutoVariable<std::string> roomTitle;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const bool ChatCreateRoom::getIsPublic() const
|
||||
{
|
||||
return isPublic.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const bool ChatCreateRoom::getIsModerated() const
|
||||
{
|
||||
return isModerated.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatCreateRoom::getOwnerName() const
|
||||
{
|
||||
return ownerName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatCreateRoom::getRoomName() const
|
||||
{
|
||||
return roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatCreateRoom::getRoomTitle() const
|
||||
{
|
||||
return roomTitle.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatCreateRoom::getSequence() const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatCreateRoom_H
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// ChatDeleteAllPersistentMessages.cpp
|
||||
// Copyright 2003, Sony Online Entertainment Inc., all rights reserved.
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatDeleteAllPersistentMessages.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
ChatDeleteAllPersistentMessages::ChatDeleteAllPersistentMessages(NetworkId const &sourceNetworkId, NetworkId const &targetNetworkId)
|
||||
: GameNetworkMessage("ChatDeleteAllPersistentMessages")
|
||||
, m_sourceNetworkId(sourceNetworkId)
|
||||
, m_targetNetworkId(targetNetworkId)
|
||||
{
|
||||
addVariable(m_sourceNetworkId);
|
||||
addVariable(m_targetNetworkId);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
ChatDeleteAllPersistentMessages::ChatDeleteAllPersistentMessages(Archive::ReadIterator & source)
|
||||
: GameNetworkMessage("ChatDeleteAllPersistentMessages")
|
||||
, m_sourceNetworkId()
|
||||
, m_targetNetworkId()
|
||||
{
|
||||
addVariable(m_sourceNetworkId);
|
||||
addVariable(m_targetNetworkId);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
ChatDeleteAllPersistentMessages::~ChatDeleteAllPersistentMessages()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
NetworkId const &ChatDeleteAllPersistentMessages::getSourceNetworkId() const
|
||||
{
|
||||
return m_sourceNetworkId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
NetworkId const &ChatDeleteAllPersistentMessages::getTargetNetworkId() const
|
||||
{
|
||||
return m_targetNetworkId.get();
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// ChatDeleteAllPersistentMessages.cpp
|
||||
// Copyright 2003, Sony Online Entertainment Inc., all rights reserved.
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef INCLUDED_ChatDeleteAllPersistentMessages_H
|
||||
#define INCLUDED_ChatDeleteAllPersistentMessages_H
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedFoundation/NetworkId.h"
|
||||
#include "sharedFoundation/NetworkIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class ChatDeleteAllPersistentMessages : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatDeleteAllPersistentMessages(NetworkId const &sourceNetworkId, NetworkId const &targetNetworkId);
|
||||
ChatDeleteAllPersistentMessages(Archive::ReadIterator & source);
|
||||
~ChatDeleteAllPersistentMessages();
|
||||
|
||||
NetworkId const &getSourceNetworkId() const;
|
||||
NetworkId const &getTargetNetworkId() const;
|
||||
|
||||
private:
|
||||
|
||||
Archive::AutoVariable<NetworkId> m_sourceNetworkId;
|
||||
Archive::AutoVariable<NetworkId> m_targetNetworkId;
|
||||
|
||||
// Disabled
|
||||
|
||||
ChatDeleteAllPersistentMessages();
|
||||
ChatDeleteAllPersistentMessages & operator = (const ChatDeleteAllPersistentMessages & rhs);
|
||||
ChatDeleteAllPersistentMessages(const ChatDeleteAllPersistentMessages & source);
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif // INCLUDED_ChatDeleteAllPersistentMessages_H
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
// ChatDeletePersistentMessage.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatDeletePersistentMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatDeletePersistentMessage::ChatDeletePersistentMessage(const unsigned int i) :
|
||||
GameNetworkMessage("ChatDeletePersistentMessage"),
|
||||
messageId(i)
|
||||
{
|
||||
addVariable(messageId);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatDeletePersistentMessage::ChatDeletePersistentMessage(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatDeletePersistentMessage"),
|
||||
messageId()
|
||||
{
|
||||
addVariable(messageId);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatDeletePersistentMessage::~ChatDeletePersistentMessage()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// ChatDeletePersistentMessage.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatDeletePersistentMessage_H
|
||||
#define _INCLUDED_ChatDeletePersistentMessage_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatDeletePersistentMessage : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
explicit ChatDeletePersistentMessage(const unsigned int messageId);
|
||||
ChatDeletePersistentMessage(Archive::ReadIterator &);
|
||||
~ChatDeletePersistentMessage();
|
||||
|
||||
const unsigned int getMessageId () const;
|
||||
|
||||
private:
|
||||
ChatDeletePersistentMessage & operator = (const ChatDeletePersistentMessage & rhs);
|
||||
ChatDeletePersistentMessage(const ChatDeletePersistentMessage & source);
|
||||
|
||||
Archive::AutoVariable<unsigned int> messageId;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatDeletePersistentMessage::getMessageId() const
|
||||
{
|
||||
return messageId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatDeletePersistentMessage_H
|
||||
@@ -0,0 +1,40 @@
|
||||
// ChatDestroyRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Destroytainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatDestroyRoom.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatDestroyRoom::ChatDestroyRoom(const unsigned int s, const unsigned int i) :
|
||||
GameNetworkMessage("ChatDestroyRoom"),
|
||||
roomId(i),
|
||||
sequence(s)
|
||||
{
|
||||
addVariable(roomId);
|
||||
addVariable(sequence);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatDestroyRoom::ChatDestroyRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatDestroyRoom"),
|
||||
roomId(),
|
||||
sequence()
|
||||
{
|
||||
addVariable(roomId);
|
||||
addVariable(sequence);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatDestroyRoom::~ChatDestroyRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
// ChatDestroyRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatDestroyRoom_H
|
||||
#define _INCLUDED_ChatDestroyRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatDestroyRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatDestroyRoom(const unsigned int sequence, const unsigned int roomId);
|
||||
ChatDestroyRoom(Archive::ReadIterator &);
|
||||
~ChatDestroyRoom();
|
||||
|
||||
const unsigned int getRoomId () const;
|
||||
const unsigned int getSequence () const;
|
||||
|
||||
private:
|
||||
ChatDestroyRoom & operator = (const ChatDestroyRoom & rhs);
|
||||
ChatDestroyRoom(const ChatDestroyRoom & source);
|
||||
|
||||
Archive::AutoVariable<unsigned int> roomId;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatDestroyRoom::getRoomId() const
|
||||
{
|
||||
return roomId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatDestroyRoom::getSequence() const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatDestroyRoom_H
|
||||
@@ -0,0 +1,36 @@
|
||||
// ChatDestroyRoomByName.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatDestroyRoomByName.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatDestroyRoomByName::ChatDestroyRoomByName(const std::string & r) :
|
||||
GameNetworkMessage("ChatDestroyRoomByName"),
|
||||
roomPath(r)
|
||||
{
|
||||
addVariable(roomPath);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatDestroyRoomByName::ChatDestroyRoomByName(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatDestroyRoomByName"),
|
||||
roomPath()
|
||||
{
|
||||
addVariable(roomPath);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatDestroyRoomByName::~ChatDestroyRoomByName()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
// ChatDestroyRoomByName.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatDestroyRoomByName_H
|
||||
#define _INCLUDED_ChatDestroyRoomByName_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatDestroyRoomByName : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
explicit ChatDestroyRoomByName(const std::string & roomPath);
|
||||
explicit ChatDestroyRoomByName(Archive::ReadIterator & ri);
|
||||
~ChatDestroyRoomByName();
|
||||
|
||||
const std::string & getRoomPath () const;
|
||||
|
||||
private:
|
||||
ChatDestroyRoomByName & operator = (const ChatDestroyRoomByName & rhs);
|
||||
ChatDestroyRoomByName(const ChatDestroyRoomByName & source);
|
||||
|
||||
Archive::AutoVariable<std::string> roomPath;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatDestroyRoomByName::getRoomPath() const
|
||||
{
|
||||
return roomPath.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatDestroyRoomByName_H
|
||||
@@ -0,0 +1,40 @@
|
||||
// ChatEnterRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatEnterRoom.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatEnterRoom::ChatEnterRoom(const unsigned int s, const std::string & n) :
|
||||
GameNetworkMessage("ChatEnterRoom"),
|
||||
roomName(n),
|
||||
sequence(s)
|
||||
{
|
||||
addVariable(sequence);
|
||||
addVariable(roomName);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatEnterRoom::ChatEnterRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatEnterRoom"),
|
||||
roomName(),
|
||||
sequence()
|
||||
{
|
||||
addVariable(sequence);
|
||||
addVariable(roomName);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatEnterRoom::~ChatEnterRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
// ChatEnterRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatEnterRoom_H
|
||||
#define _INCLUDED_ChatEnterRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatEnterRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatEnterRoom(unsigned int sequence, const std::string & roomName);
|
||||
ChatEnterRoom(Archive::ReadIterator &);
|
||||
~ChatEnterRoom();
|
||||
|
||||
const std::string & getRoomName () const;
|
||||
const unsigned int getSequence () const;
|
||||
|
||||
private:
|
||||
ChatEnterRoom & operator = (const ChatEnterRoom & rhs);
|
||||
ChatEnterRoom(const ChatEnterRoom & source);
|
||||
|
||||
Archive::AutoVariable<std::string> roomName;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatEnterRoom::getRoomName() const
|
||||
{
|
||||
return roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatEnterRoom::getSequence() const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatEnterRoom_H
|
||||
@@ -0,0 +1,44 @@
|
||||
// ChatEnterRoomById.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatEnterRoomById.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatEnterRoomById::ChatEnterRoomById(const unsigned int s, const unsigned int n, const std::string & name) :
|
||||
GameNetworkMessage("ChatEnterRoomById"),
|
||||
roomId(n),
|
||||
roomName(name),
|
||||
sequence(s)
|
||||
{
|
||||
addVariable(sequence);
|
||||
addVariable(roomId);
|
||||
addVariable(roomName);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatEnterRoomById::ChatEnterRoomById(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatEnterRoomById"),
|
||||
roomId(),
|
||||
roomName(),
|
||||
sequence()
|
||||
{
|
||||
addVariable(sequence);
|
||||
addVariable(roomId);
|
||||
addVariable(roomName);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatEnterRoomById::~ChatEnterRoomById()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
// ChatEnterRoomById.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatEnterRoomById_H
|
||||
#define _INCLUDED_ChatEnterRoomById_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatEnterRoomById : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatEnterRoomById(unsigned int sequence, const unsigned int roomId, const std::string & roomName);
|
||||
ChatEnterRoomById(Archive::ReadIterator &);
|
||||
~ChatEnterRoomById();
|
||||
|
||||
const unsigned int getRoomId () const;
|
||||
const std::string & getRoomName() const;
|
||||
const unsigned int getSequence() const;
|
||||
|
||||
private:
|
||||
ChatEnterRoomById & operator = (const ChatEnterRoomById & rhs);
|
||||
ChatEnterRoomById(const ChatEnterRoomById & source);
|
||||
|
||||
Archive::AutoVariable<unsigned int> roomId;
|
||||
Archive::AutoVariable<std::string> roomName;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatEnterRoomById::getRoomId() const
|
||||
{
|
||||
return roomId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatEnterRoomById::getRoomName() const
|
||||
{
|
||||
return roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatEnterRoomById::getSequence() const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatEnterRoomById_H
|
||||
@@ -0,0 +1,58 @@
|
||||
#ifndef CHATENUM_H
|
||||
#define CHATENUM_H
|
||||
|
||||
enum ERROR_CODES
|
||||
{
|
||||
CHATRESULT_SUCCESS = 0, // 0
|
||||
ERR_TIMEOUT, // 1
|
||||
ERR_DUPLICATELOGIN, // 2
|
||||
ERR_SRCAVATARDOESNTEXIST, // 3
|
||||
ERR_DESTAVATARDOESNTEXIST, // 4
|
||||
ERR_ADDRESSDOESNTEXIST, // 5
|
||||
ERR_ADDRESSNOTROOM, // 6
|
||||
ERR_ADDRESSNOTAID, // 7
|
||||
ERR_FRIENDNOTFOUND, // 8
|
||||
ERR_ROOM_UNKNOWNFAILURE, // 9
|
||||
ERR_ROOM_SRCNOTINROOM, // 10
|
||||
ERR_ROOM_DESTNOTINROOM, // 11
|
||||
ERR_ROOM_BANNEDAVATAR, // 12
|
||||
ERR_ROOM_PRIVATEROOM, // 13
|
||||
ERR_ROOM_MODERATEDROOM, // 14
|
||||
ERR_ROOM_NOTINROOM, // 15
|
||||
ERR_ROOM_NOPRIVILEGES, // 16
|
||||
ERR_DATABASE, // 17
|
||||
ERR_CANNOTGETAVATARID, // 18
|
||||
ERR_CANNOTGETNODEID, // 19
|
||||
ERR_CANNOTGETPMSGID, // 20
|
||||
ERR_PMSGNOTFOUND, // 21
|
||||
ERR_ROOM_MAXAVATARSREACHED, // 22
|
||||
ERR_IGNORING, // 23
|
||||
ERR_ROOMALREADYEXISTS, // 24
|
||||
ERR_NOTHINGTOCONFIRM, // 25
|
||||
ERR_DUPLICATEFRIEND, // 26
|
||||
ERR_IGNORENOTFOUND, // 27
|
||||
ERR_DUPLICATEIGNORE, // 28
|
||||
ERR_DBFAIL, // 29
|
||||
ERR_ROOM_DESTAVATARNOTMODERATOR, // 30
|
||||
ERR_ROOM_DESTAVATARNOTINVITED, // 31
|
||||
ERR_ROOM_DESTAVATARNOTBANNED, // 32
|
||||
ERR_ROOM_DUPLICATEBAN, // 33
|
||||
ERR_ROOM_DUPLICATEMODERATOR, // 34
|
||||
ERR_ROOM_DUPLICATEINVITE, // 35
|
||||
ERR_ROOM_ALREADYINROOM, // 36
|
||||
ERR_ROOM_PARENTNONPERSISTENT, // 37
|
||||
ERR_ROOM_PARENTBADNODETYPE, // 38
|
||||
ERR_NOFANCLUBHANDLE, // 39
|
||||
|
||||
// SWG specific codes for chat
|
||||
// make sure that these never collide with those defined above and in
|
||||
// src/external/3rd/library/soePlatform/ChatAPI2/ChatAPI/projects/Chat/ChatAPI/ChatEnum.h
|
||||
SWG_CHAT_ERR_CHAT_SERVER_UNAVAILABLE = 1000000,
|
||||
SWG_CHAT_ERR_WRONG_FACTION,
|
||||
SWG_CHAT_ERR_INVALID_OBJECT,
|
||||
SWG_CHAT_ERR_NO_GAME_SERVER,
|
||||
SWG_CHAT_ERR_NOT_WARDEN,
|
||||
SWG_CHAT_ERR_WRONG_GCW_REGION_DEFENDER_FACTION
|
||||
};
|
||||
|
||||
#endif // CHATENUM_H
|
||||
@@ -0,0 +1,40 @@
|
||||
// ChatFriendsListUpdate.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatFriendsListUpdate.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatFriendsListUpdate::ChatFriendsListUpdate(const ChatAvatarId & c, const bool o) :
|
||||
GameNetworkMessage("ChatFriendsListUpdate"),
|
||||
characterName(c),
|
||||
isOnline(o)
|
||||
{
|
||||
addVariable(characterName);
|
||||
addVariable(isOnline);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatFriendsListUpdate::ChatFriendsListUpdate(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatFriendsListUpdate"),
|
||||
characterName(),
|
||||
isOnline()
|
||||
{
|
||||
addVariable(characterName);
|
||||
addVariable(isOnline);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatFriendsListUpdate::~ChatFriendsListUpdate()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
// ChatFriendsListUpdate.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatFriendsListUpdate_H
|
||||
#define _INCLUDED_ChatFriendsListUpdate_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatFriendsListUpdate : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatFriendsListUpdate(const ChatAvatarId & characterName, const bool isOnline);
|
||||
ChatFriendsListUpdate(Archive::ReadIterator & source);
|
||||
~ChatFriendsListUpdate();
|
||||
|
||||
const ChatAvatarId & getCharacterName () const;
|
||||
const bool getIsOnline () const;
|
||||
|
||||
private:
|
||||
ChatFriendsListUpdate & operator = (const ChatFriendsListUpdate & rhs);
|
||||
ChatFriendsListUpdate(const ChatFriendsListUpdate & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> characterName;
|
||||
Archive::AutoVariable<bool> isOnline;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatFriendsListUpdate::getCharacterName() const
|
||||
{
|
||||
return characterName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const bool ChatFriendsListUpdate::getIsOnline() const
|
||||
{
|
||||
return isOnline.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatFriendsListUpdate_H
|
||||
@@ -0,0 +1,36 @@
|
||||
// ChatGetFriendsList.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Matt Sivertson
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatGetFriendsList.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatGetFriendsList::ChatGetFriendsList(const ChatAvatarId & c) :
|
||||
GameNetworkMessage("ChatGetFriendsList"),
|
||||
characterName(c)
|
||||
{
|
||||
addVariable(characterName);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatGetFriendsList::ChatGetFriendsList(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatGetFriendsList"),
|
||||
characterName()
|
||||
{
|
||||
addVariable(characterName);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatGetFriendsList::~ChatGetFriendsList()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
// ChatGetFriendsList.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Matt Sivertson
|
||||
|
||||
#ifndef _INCLUDED_ChatGetFriendsList_H
|
||||
#define _INCLUDED_ChatGetFriendsList_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
#include <vector>
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatGetFriendsList : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatGetFriendsList(const ChatAvatarId & characterName);
|
||||
ChatGetFriendsList(Archive::ReadIterator & source);
|
||||
~ChatGetFriendsList();
|
||||
|
||||
const ChatAvatarId & getCharacterName () const;
|
||||
|
||||
private:
|
||||
ChatGetFriendsList & operator = (const ChatGetFriendsList & rhs);
|
||||
ChatGetFriendsList(const ChatGetFriendsList & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> characterName;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatGetFriendsList::getCharacterName () const
|
||||
{
|
||||
return characterName.get();
|
||||
}
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatGetFriendsList_H
|
||||
@@ -0,0 +1,36 @@
|
||||
// ChatGetIgnoreList.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Matt Sivertson
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatGetIgnoreList.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatGetIgnoreList::ChatGetIgnoreList(const ChatAvatarId & c) :
|
||||
GameNetworkMessage("ChatGetIgnoreList"),
|
||||
characterName(c)
|
||||
{
|
||||
addVariable(characterName);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatGetIgnoreList::ChatGetIgnoreList(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatGetIgnoreList"),
|
||||
characterName()
|
||||
{
|
||||
addVariable(characterName);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatGetIgnoreList::~ChatGetIgnoreList()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
// ChatGetIgnoreList.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Matt Sivertson
|
||||
|
||||
#ifndef _INCLUDED_ChatGetIgnoreList_H
|
||||
#define _INCLUDED_ChatGetIgnoreList_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
#include <vector>
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatGetIgnoreList : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatGetIgnoreList(const ChatAvatarId & characterName);
|
||||
ChatGetIgnoreList(Archive::ReadIterator & source);
|
||||
~ChatGetIgnoreList();
|
||||
|
||||
const ChatAvatarId & getCharacterName () const;
|
||||
|
||||
private:
|
||||
ChatGetIgnoreList & operator = (const ChatGetIgnoreList & rhs);
|
||||
ChatGetIgnoreList(const ChatGetIgnoreList & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> characterName;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatGetIgnoreList::getCharacterName () const
|
||||
{
|
||||
return characterName.get();
|
||||
}
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatGetIgnoreList_H
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
// ChatInstantMessageToCharacter.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatInstantMessageToCharacter.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatInstantMessageToCharacter::ChatInstantMessageToCharacter(const unsigned int s, const ChatAvatarId & c, const Unicode::String & m, const Unicode::String & o) :
|
||||
GameNetworkMessage("ChatInstantMessageToCharacter"),
|
||||
characterName(c),
|
||||
message(m),
|
||||
outOfBand(o),
|
||||
sequence(s)
|
||||
{
|
||||
addVariable(characterName);
|
||||
addVariable(message);
|
||||
addVariable(outOfBand);
|
||||
addVariable(sequence);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatInstantMessageToCharacter::ChatInstantMessageToCharacter(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatInstantMessageToCharacter"),
|
||||
characterName(),
|
||||
message(),
|
||||
outOfBand(),
|
||||
sequence()
|
||||
{
|
||||
addVariable(characterName);
|
||||
addVariable(message);
|
||||
addVariable(outOfBand);
|
||||
addVariable(sequence);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatInstantMessageToCharacter::~ChatInstantMessageToCharacter()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
// ChatInstantMessageToCharacter.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatInstantMessageToCharacter_H
|
||||
#define _INCLUDED_ChatInstantMessageToCharacter_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatInstantMessageToCharacter : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatInstantMessageToCharacter(unsigned int sequence, const ChatAvatarId & characterName, const Unicode::String & message, const Unicode::String & outOfBand);
|
||||
ChatInstantMessageToCharacter(Archive::ReadIterator & source);
|
||||
~ChatInstantMessageToCharacter();
|
||||
|
||||
const ChatAvatarId & getCharacterName () const;
|
||||
const Unicode::String & getMessage () const;
|
||||
const Unicode::String & getOutOfBand () const;
|
||||
const unsigned int getSequence () const;
|
||||
|
||||
private:
|
||||
ChatInstantMessageToCharacter & operator = (const ChatInstantMessageToCharacter & rhs);
|
||||
ChatInstantMessageToCharacter(const ChatInstantMessageToCharacter & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> characterName;
|
||||
Archive::AutoVariable<Unicode::String> message;
|
||||
Archive::AutoVariable<Unicode::String> outOfBand;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatInstantMessageToCharacter::getCharacterName() const
|
||||
{
|
||||
return characterName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const Unicode::String & ChatInstantMessageToCharacter::getMessage() const
|
||||
{
|
||||
return message.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const Unicode::String & ChatInstantMessageToCharacter::getOutOfBand() const
|
||||
{
|
||||
return outOfBand.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatInstantMessageToCharacter::getSequence() const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatInstantMessageToCharacter_H
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
// ChatInstantMessageToClient.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatInstantMessageToClient.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatInstantMessageToClient::ChatInstantMessageToClient(const ChatAvatarId & f, const Unicode::String & m, const Unicode::String & o) :
|
||||
GameNetworkMessage("ChatInstantMessageToClient"),
|
||||
fromName(f),
|
||||
message(m),
|
||||
outOfBand(o)
|
||||
{
|
||||
addVariable(fromName);
|
||||
addVariable(message);
|
||||
addVariable(outOfBand);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatInstantMessageToClient::ChatInstantMessageToClient(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatInstantMessageToClient"),
|
||||
fromName(),
|
||||
message(),
|
||||
outOfBand()
|
||||
{
|
||||
addVariable(fromName);
|
||||
addVariable(message);
|
||||
addVariable(outOfBand);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatInstantMessageToClient::~ChatInstantMessageToClient()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
// ChatInstantMessageToClient.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatInstantMessageToClient_H
|
||||
#define _INCLUDED_ChatInstantMessageToClient_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatInstantMessageToClient : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatInstantMessageToClient(const ChatAvatarId & fromName, const Unicode::String & message, const Unicode::String & outOfBand);
|
||||
explicit ChatInstantMessageToClient(Archive::ReadIterator & source);
|
||||
~ChatInstantMessageToClient();
|
||||
|
||||
const ChatAvatarId & getFromName () const;
|
||||
const Unicode::String & getMessage () const;
|
||||
const Unicode::String & getOutOfBand () const;
|
||||
|
||||
private:
|
||||
ChatInstantMessageToClient & operator = (const ChatInstantMessageToClient & rhs);
|
||||
ChatInstantMessageToClient(const ChatInstantMessageToClient & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> fromName;
|
||||
Archive::AutoVariable<Unicode::String> message;
|
||||
Archive::AutoVariable<Unicode::String> outOfBand;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const Unicode::String & ChatInstantMessageToClient::getMessage() const
|
||||
{
|
||||
return message.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatInstantMessageToClient::getFromName() const
|
||||
{
|
||||
return fromName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const Unicode::String & ChatInstantMessageToClient::getOutOfBand() const
|
||||
{
|
||||
return outOfBand.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatInstantMessageToClient_H
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
// ChatInviteAvatarToRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatInviteAvatarToRoom.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatInviteAvatarToRoom::ChatInviteAvatarToRoom(const ChatAvatarId & a, const std::string & r) :
|
||||
GameNetworkMessage("ChatInviteAvatarToRoom"),
|
||||
avatarId(a),
|
||||
roomName(r)
|
||||
{
|
||||
addVariable(avatarId);
|
||||
addVariable(roomName);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatInviteAvatarToRoom::ChatInviteAvatarToRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatInviteAvatarToRoom"),
|
||||
avatarId(),
|
||||
roomName()
|
||||
{
|
||||
addVariable(avatarId);
|
||||
addVariable(roomName);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatInviteAvatarToRoom::~ChatInviteAvatarToRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
// ChatInviteAvatarToRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatInviteAvatarToRoom_H
|
||||
#define _INCLUDED_ChatInviteAvatarToRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatInviteAvatarToRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatInviteAvatarToRoom(const ChatAvatarId & avatarId, const std::string & roomName);
|
||||
ChatInviteAvatarToRoom(Archive::ReadIterator & source);
|
||||
~ChatInviteAvatarToRoom();
|
||||
|
||||
const ChatAvatarId & getAvatarId () const;
|
||||
const std::string & getRoomName () const;
|
||||
|
||||
private:
|
||||
ChatInviteAvatarToRoom & operator = (const ChatInviteAvatarToRoom & rhs);
|
||||
ChatInviteAvatarToRoom(const ChatInviteAvatarToRoom & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> avatarId;
|
||||
Archive::AutoVariable<std::string> roomName;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatInviteAvatarToRoom::getAvatarId() const
|
||||
{
|
||||
return avatarId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatInviteAvatarToRoom::getRoomName() const
|
||||
{
|
||||
return roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatInviteAvatarToRoom_H
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
// ChatInviteGroupMembersToRoom.cpp
|
||||
// Copyright 2000-05, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: RoyFleck
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatInviteGroupMembersToRoom.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatInviteGroupMembersToRoom::ChatInviteGroupMembersToRoom(const NetworkId & i, const ChatAvatarId & g, const std::string & r, const stdvector<NetworkId>::fwd & m) :
|
||||
GameNetworkMessage("ChatInviteGroupMembersToRoom"),
|
||||
invitorNetworkId(i),
|
||||
groupLeaderId(g),
|
||||
roomName(r),
|
||||
invitedMembers()
|
||||
{
|
||||
invitedMembers.set(m);
|
||||
|
||||
addVariable(invitorNetworkId);
|
||||
addVariable(groupLeaderId);
|
||||
addVariable(roomName);
|
||||
addVariable(invitedMembers);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatInviteGroupMembersToRoom::ChatInviteGroupMembersToRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatInviteGroupMembersToRoom"),
|
||||
invitorNetworkId(),
|
||||
groupLeaderId(),
|
||||
roomName(),
|
||||
invitedMembers()
|
||||
{
|
||||
addVariable(invitorNetworkId);
|
||||
addVariable(groupLeaderId);
|
||||
addVariable(roomName);
|
||||
addVariable(invitedMembers);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatInviteGroupMembersToRoom::~ChatInviteGroupMembersToRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::vector<NetworkId> & ChatInviteGroupMembersToRoom::getInvitedMembers() const
|
||||
{
|
||||
return invitedMembers.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
// ChatInviteGroupMembersToRoom.h
|
||||
// Copyright 2000-05, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Roy Fleck
|
||||
|
||||
#ifndef _INCLUDED_ChatInviteGroupMembersToRoom_H
|
||||
#define _INCLUDED_ChatInviteGroupMembersToRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedFoundation/NetworkId.h"
|
||||
#include <string>
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatInviteGroupMembersToRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatInviteGroupMembersToRoom(const NetworkId & invitor, const ChatAvatarId & groupLeaderId, const std::string & roomName, const stdvector<NetworkId>::fwd & members);
|
||||
explicit ChatInviteGroupMembersToRoom(Archive::ReadIterator & source);
|
||||
~ChatInviteGroupMembersToRoom();
|
||||
|
||||
const NetworkId & getInvitorNetworkId() const;
|
||||
const ChatAvatarId & getGroupLeaderId () const;
|
||||
const std::string & getRoomName () const;
|
||||
const stdvector<NetworkId>::fwd & getInvitedMembers () const;
|
||||
|
||||
private:
|
||||
ChatInviteGroupMembersToRoom & operator = (const ChatInviteGroupMembersToRoom & rhs);
|
||||
ChatInviteGroupMembersToRoom(const ChatInviteGroupMembersToRoom & source);
|
||||
|
||||
Archive::AutoVariable<NetworkId> invitorNetworkId;
|
||||
Archive::AutoVariable<ChatAvatarId> groupLeaderId;
|
||||
Archive::AutoVariable<std::string> roomName;
|
||||
Archive::AutoArray<NetworkId> invitedMembers;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const NetworkId & ChatInviteGroupMembersToRoom::getInvitorNetworkId() const
|
||||
{
|
||||
return invitorNetworkId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatInviteGroupMembersToRoom::getGroupLeaderId() const
|
||||
{
|
||||
return groupLeaderId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatInviteGroupMembersToRoom::getRoomName() const
|
||||
{
|
||||
return roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatInviteGroupMembersToRoom_H
|
||||
@@ -0,0 +1,41 @@
|
||||
// ChatInviteGroupToRoom.cpp
|
||||
// Copyright 2000-05, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Roy Fleck
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatInviteGroupToRoom.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatInviteGroupToRoom::ChatInviteGroupToRoom(const ChatAvatarId & a, const std::string & r) :
|
||||
GameNetworkMessage("ChatInviteGroupToRoom"),
|
||||
avatarId(a),
|
||||
roomName(r)
|
||||
{
|
||||
addVariable(avatarId);
|
||||
addVariable(roomName);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatInviteGroupToRoom::ChatInviteGroupToRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatInviteGroupToRoom"),
|
||||
avatarId(),
|
||||
roomName()
|
||||
{
|
||||
addVariable(avatarId);
|
||||
addVariable(roomName);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatInviteGroupToRoom::~ChatInviteGroupToRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
// ChatInviteGroupToRoom.h
|
||||
// Copyright 2000-05, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Roy Fleck
|
||||
|
||||
#ifndef _INCLUDED_ChatInviteGroupToRoom_H
|
||||
#define _INCLUDED_ChatInviteGroupToRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatInviteGroupToRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatInviteGroupToRoom(const ChatAvatarId & avatarId, const std::string & roomName);
|
||||
ChatInviteGroupToRoom(Archive::ReadIterator & source);
|
||||
~ChatInviteGroupToRoom();
|
||||
|
||||
const ChatAvatarId & getAvatarId () const;
|
||||
const std::string & getRoomName () const;
|
||||
|
||||
private:
|
||||
ChatInviteGroupToRoom & operator = (const ChatInviteGroupToRoom & rhs);
|
||||
ChatInviteGroupToRoom(const ChatInviteGroupToRoom & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> avatarId;
|
||||
Archive::AutoVariable<std::string> roomName;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatInviteGroupToRoom::getAvatarId() const
|
||||
{
|
||||
return avatarId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatInviteGroupToRoom::getRoomName() const
|
||||
{
|
||||
return roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatInviteGroupToRoom_H
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
// ChatKickAvatarFromRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Roy Fleck
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
#include "sharedNetworkMessages/ChatKickAvatarFromRoom.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatKickAvatarFromRoom::ChatKickAvatarFromRoom(
|
||||
const ChatAvatarId & avatarId,
|
||||
const std::string & roomName
|
||||
) :
|
||||
GameNetworkMessage("ChatKickAvatarFromRoom"),
|
||||
m_avatarId(avatarId),
|
||||
m_roomName(roomName)
|
||||
{
|
||||
addVariable(m_avatarId);
|
||||
addVariable(m_roomName);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatKickAvatarFromRoom::ChatKickAvatarFromRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatKickAvatarFromRoom"),
|
||||
m_avatarId(),
|
||||
m_roomName()
|
||||
{
|
||||
addVariable(m_avatarId);
|
||||
addVariable(m_roomName);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatKickAvatarFromRoom::~ChatKickAvatarFromRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
// ChatKickAvatarFromRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Roy Fleck
|
||||
|
||||
#ifndef _INCLUDED_ChatKickAvatarFromRoom_H
|
||||
#define _INCLUDED_ChatKickAvatarFromRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatKickAvatarFromRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatKickAvatarFromRoom(const ChatAvatarId & avatarId, const std::string & roomName);
|
||||
explicit ChatKickAvatarFromRoom(Archive::ReadIterator & source);
|
||||
~ChatKickAvatarFromRoom();
|
||||
|
||||
const ChatAvatarId & getAvatarId () const;
|
||||
const std::string & getRoomName () const;
|
||||
|
||||
private:
|
||||
ChatKickAvatarFromRoom & operator = (const ChatKickAvatarFromRoom & rhs);
|
||||
ChatKickAvatarFromRoom(const ChatKickAvatarFromRoom & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> m_avatarId;
|
||||
Archive::AutoVariable<std::string> m_roomName;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatKickAvatarFromRoom::getAvatarId() const
|
||||
{
|
||||
return m_avatarId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatKickAvatarFromRoom::getRoomName() const
|
||||
{
|
||||
return m_roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatKickAvatarFromRoom_H
|
||||
@@ -0,0 +1,103 @@
|
||||
// ChatMessageFromGame.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatMessageFromGame.h"
|
||||
#include "UnicodeUtils.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatMessageFromGame::ChatMessageFromGame(enum MessageTypes mt, const std::string & f, const std::string & t, const Unicode::String & m, const Unicode::String & o) :
|
||||
GameNetworkMessage("ChatMessageFromGame"),
|
||||
from(f),
|
||||
message(m),
|
||||
messageType(static_cast<unsigned char>(mt)),
|
||||
oob(o),
|
||||
room(""),
|
||||
subject(Unicode::narrowToWide("")),
|
||||
to(t)
|
||||
{
|
||||
addVariable(from);
|
||||
addVariable(message);
|
||||
addVariable(messageType);
|
||||
addVariable(oob);
|
||||
addVariable(room);
|
||||
addVariable(subject);
|
||||
addVariable(to);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatMessageFromGame::ChatMessageFromGame(enum MessageTypes mt, const std::string & f, const std::string & t, const Unicode::String & m, const Unicode::String & o, const Unicode::String & s) :
|
||||
GameNetworkMessage("ChatMessageFromGame"),
|
||||
from(f),
|
||||
message(m),
|
||||
messageType(static_cast<unsigned char>(mt)),
|
||||
oob(o),
|
||||
room(""),
|
||||
subject(s),
|
||||
to(t)
|
||||
{
|
||||
addVariable(from);
|
||||
addVariable(message);
|
||||
addVariable(messageType);
|
||||
addVariable(oob);
|
||||
addVariable(room);
|
||||
addVariable(subject);
|
||||
addVariable(to);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatMessageFromGame::ChatMessageFromGame(enum MessageTypes mt, const std::string & f, const Unicode::String & m, const Unicode::String & o, const std::string & r) :
|
||||
GameNetworkMessage("ChatMessageFromGame"),
|
||||
from(f),
|
||||
message(m),
|
||||
messageType(static_cast<unsigned char>(mt)),
|
||||
oob(o),
|
||||
room(r),
|
||||
subject(Unicode::narrowToWide("")),
|
||||
to()
|
||||
{
|
||||
addVariable(from);
|
||||
addVariable(message);
|
||||
addVariable(messageType);
|
||||
addVariable(oob);
|
||||
addVariable(room);
|
||||
addVariable(subject);
|
||||
addVariable(to);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatMessageFromGame::ChatMessageFromGame(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatMessageFromGame"),
|
||||
from(),
|
||||
message(),
|
||||
messageType(INSTANT),
|
||||
oob(),
|
||||
room(),
|
||||
subject(),
|
||||
to()
|
||||
{
|
||||
addVariable(from);
|
||||
addVariable(message);
|
||||
addVariable(messageType);
|
||||
addVariable(oob);
|
||||
addVariable(room);
|
||||
addVariable(subject);
|
||||
addVariable(to);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatMessageFromGame::~ChatMessageFromGame()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
// ChatMessageFromGame.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatMessageFromGame_H
|
||||
#define _INCLUDED_ChatMessageFromGame_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatMessageFromGame : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
enum MessageTypes
|
||||
{
|
||||
INSTANT,
|
||||
PERSISTENT,
|
||||
ROOM
|
||||
};
|
||||
|
||||
ChatMessageFromGame(enum MessageTypes messageType, const std::string & from, const std::string & to, const Unicode::String & message, const Unicode::String & oob);
|
||||
ChatMessageFromGame(enum MessageTypes messageType, const std::string & from, const std::string & to, const Unicode::String & message, const Unicode::String & oob, const Unicode::String & subject);
|
||||
ChatMessageFromGame(enum MessageTypes messageType, const std::string & from, const Unicode::String & message, const Unicode::String & oob, const std::string & room);
|
||||
explicit ChatMessageFromGame(Archive::ReadIterator & source);
|
||||
~ChatMessageFromGame();
|
||||
|
||||
|
||||
const std::string & getFrom () const;
|
||||
const Unicode::String & getMessage () const;
|
||||
const MessageTypes getMessageType () const;
|
||||
const Unicode::String & getOutOfBand () const;
|
||||
const std::string & getRoom () const;
|
||||
const Unicode::String & getSubject () const;
|
||||
const std::string & getTo () const;
|
||||
|
||||
private:
|
||||
ChatMessageFromGame & operator = (const ChatMessageFromGame & rhs);
|
||||
ChatMessageFromGame(const ChatMessageFromGame & source);
|
||||
|
||||
Archive::AutoVariable<std::string> from;
|
||||
Archive::AutoVariable<Unicode::String> message;
|
||||
Archive::AutoVariable<unsigned char> messageType;
|
||||
Archive::AutoVariable<Unicode::String> oob;
|
||||
Archive::AutoVariable<std::string> room;
|
||||
Archive::AutoVariable<Unicode::String> subject;
|
||||
Archive::AutoVariable<std::string> to;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatMessageFromGame::getFrom() const
|
||||
{
|
||||
return from.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const Unicode::String & ChatMessageFromGame::getMessage() const
|
||||
{
|
||||
return message.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatMessageFromGame::MessageTypes ChatMessageFromGame::getMessageType() const
|
||||
{
|
||||
return static_cast<MessageTypes>(messageType.get());
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const Unicode::String & ChatMessageFromGame::getOutOfBand() const
|
||||
{
|
||||
return oob.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatMessageFromGame::getRoom() const
|
||||
{
|
||||
return room.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const Unicode::String & ChatMessageFromGame::getSubject() const
|
||||
{
|
||||
return subject.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatMessageFromGame::getTo() const
|
||||
{
|
||||
return to.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatMessageFromGame_H
|
||||
@@ -0,0 +1,40 @@
|
||||
// ChatOnAddFriend.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatOnAddFriend.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnAddFriend::ChatOnAddFriend(const unsigned int s, const unsigned int r) :
|
||||
GameNetworkMessage("ChatOnAddFriend"),
|
||||
result(r),
|
||||
sequence(s)
|
||||
{
|
||||
addVariable(result);
|
||||
addVariable(sequence);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnAddFriend::ChatOnAddFriend(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnAddFriend"),
|
||||
result(),
|
||||
sequence()
|
||||
{
|
||||
addVariable(result);
|
||||
addVariable(sequence);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnAddFriend::~ChatOnAddFriend()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
// ChatOnAddFriend.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatOnAddFriend_H
|
||||
#define _INCLUDED_ChatOnAddFriend_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnAddFriend : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnAddFriend(const unsigned int sequence, const unsigned int result);
|
||||
ChatOnAddFriend(Archive::ReadIterator & source);
|
||||
~ChatOnAddFriend();
|
||||
|
||||
const unsigned int getResult () const;
|
||||
const unsigned int getSequence () const;
|
||||
|
||||
private:
|
||||
ChatOnAddFriend & operator = (const ChatOnAddFriend & rhs);
|
||||
ChatOnAddFriend(const ChatOnAddFriend & source);
|
||||
|
||||
Archive::AutoVariable<unsigned int> result;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnAddFriend::getResult() const
|
||||
{
|
||||
return result.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnAddFriend::getSequence() const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnAddFriend_H
|
||||
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
// ChatOnAddModeratorToRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatOnAddModeratorToRoom.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnAddModeratorToRoom::ChatOnAddModeratorToRoom(const unsigned int c, const unsigned int s, const ChatAvatarId & a, const ChatAvatarId &granter, const std::string & r) :
|
||||
GameNetworkMessage("ChatOnAddModeratorToRoom"),
|
||||
avatarId(a),
|
||||
granterId(granter),
|
||||
resultCode(c),
|
||||
roomName(r),
|
||||
sequenceId(s)
|
||||
{
|
||||
addVariable(avatarId);
|
||||
addVariable(granterId);
|
||||
addVariable(resultCode);
|
||||
addVariable(roomName);
|
||||
addVariable(sequenceId);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnAddModeratorToRoom::ChatOnAddModeratorToRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnAddModeratorToRoom"),
|
||||
avatarId(),
|
||||
granterId(),
|
||||
resultCode(),
|
||||
roomName(),
|
||||
sequenceId()
|
||||
{
|
||||
addVariable(avatarId);
|
||||
addVariable(granterId);
|
||||
addVariable(resultCode);
|
||||
addVariable(roomName);
|
||||
addVariable(sequenceId);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnAddModeratorToRoom::~ChatOnAddModeratorToRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
// ChatOnAddModeratorToRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatOnAddModeratorToRoom_H
|
||||
#define _INCLUDED_ChatOnAddModeratorToRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnAddModeratorToRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnAddModeratorToRoom(const unsigned int resultCode, const unsigned int sequenceId, const ChatAvatarId & avatarId, const ChatAvatarId &granter, const std::string & roomName);
|
||||
explicit ChatOnAddModeratorToRoom(Archive::ReadIterator & source);
|
||||
~ChatOnAddModeratorToRoom();
|
||||
|
||||
const ChatAvatarId & getAvatarId () const;
|
||||
const ChatAvatarId & getGranterId () const;
|
||||
const unsigned int getResultCode () const;
|
||||
const std::string & getRoomName () const;
|
||||
const unsigned int getSequenceId () const;
|
||||
|
||||
private:
|
||||
ChatOnAddModeratorToRoom & operator = (const ChatOnAddModeratorToRoom & rhs);
|
||||
ChatOnAddModeratorToRoom(const ChatOnAddModeratorToRoom & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> avatarId;
|
||||
Archive::AutoVariable<ChatAvatarId> granterId;
|
||||
Archive::AutoVariable<unsigned int> resultCode;
|
||||
Archive::AutoVariable<std::string> roomName;
|
||||
Archive::AutoVariable<unsigned int> sequenceId;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnAddModeratorToRoom::getAvatarId() const
|
||||
{
|
||||
return avatarId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnAddModeratorToRoom::getGranterId() const
|
||||
{
|
||||
return granterId.get();
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnAddModeratorToRoom::getResultCode() const
|
||||
{
|
||||
return resultCode.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatOnAddModeratorToRoom::getRoomName() const
|
||||
{
|
||||
return roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnAddModeratorToRoom::getSequenceId() const
|
||||
{
|
||||
return sequenceId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnAddModeratorToRoom_H
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
// ChatOnBanAvatarFromRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatOnBanAvatarFromRoom.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnBanAvatarFromRoom::ChatOnBanAvatarFromRoom(const unsigned int s, const unsigned int r, const std::string &room, const ChatAvatarId &bannerId, const ChatAvatarId &banneeId) :
|
||||
GameNetworkMessage("ChatOnBanAvatarFromRoom"),
|
||||
roomName(room),
|
||||
banner(bannerId),
|
||||
bannee(banneeId),
|
||||
result(r),
|
||||
sequence(s)
|
||||
{
|
||||
addVariable(roomName);
|
||||
addVariable(banner);
|
||||
addVariable(bannee);
|
||||
addVariable(result);
|
||||
addVariable(sequence);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnBanAvatarFromRoom::ChatOnBanAvatarFromRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnBanAvatarFromRoom"),
|
||||
roomName(),
|
||||
banner(),
|
||||
bannee(),
|
||||
result(),
|
||||
sequence()
|
||||
{
|
||||
addVariable(roomName);
|
||||
addVariable(banner);
|
||||
addVariable(bannee);
|
||||
addVariable(result);
|
||||
addVariable(sequence);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnBanAvatarFromRoom::~ChatOnBanAvatarFromRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
// ChatOnBanAvatarFromRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatOnBanAvatarFromRoom_H
|
||||
#define _INCLUDED_ChatOnBanAvatarFromRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnBanAvatarFromRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnBanAvatarFromRoom(const unsigned int sequence, const unsigned int result, const std::string &roomName, const ChatAvatarId &banner, const ChatAvatarId &bannee );
|
||||
ChatOnBanAvatarFromRoom(Archive::ReadIterator & source);
|
||||
~ChatOnBanAvatarFromRoom();
|
||||
|
||||
const std::string & getRoomName () const;
|
||||
const ChatAvatarId & getBanner () const;
|
||||
const ChatAvatarId & getBannee () const;
|
||||
const unsigned int getResult () const;
|
||||
const unsigned int getSequence () const;
|
||||
|
||||
private:
|
||||
ChatOnBanAvatarFromRoom & operator = (const ChatOnBanAvatarFromRoom & rhs);
|
||||
ChatOnBanAvatarFromRoom(const ChatOnBanAvatarFromRoom & source);
|
||||
|
||||
Archive::AutoVariable<std::string> roomName;
|
||||
Archive::AutoVariable<ChatAvatarId> banner;
|
||||
Archive::AutoVariable<ChatAvatarId> bannee;
|
||||
Archive::AutoVariable<unsigned int> result;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatOnBanAvatarFromRoom::getRoomName() const
|
||||
{
|
||||
return roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnBanAvatarFromRoom::getBanner() const
|
||||
{
|
||||
return banner.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnBanAvatarFromRoom::getBannee() const
|
||||
{
|
||||
return bannee.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnBanAvatarFromRoom::getResult() const
|
||||
{
|
||||
return result.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnBanAvatarFromRoom::getSequence() const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnBanAvatarFromRoom_H
|
||||
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
// ChatOnChangeFriendStatus.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Matt Sivertson
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatOnChangeFriendStatus.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnChangeFriendStatus::ChatOnChangeFriendStatus(unsigned int q, const NetworkId & c, const ChatAvatarId & _friendName, bool a, unsigned int result) :
|
||||
GameNetworkMessage("ChatOnChangeFriendStatus"),
|
||||
character(c),
|
||||
friendName(_friendName),
|
||||
sequence(q),
|
||||
add(a),
|
||||
resultCode(result)
|
||||
{
|
||||
addVariable(character);
|
||||
addVariable(friendName);
|
||||
addVariable(sequence);
|
||||
addVariable(add);
|
||||
addVariable(resultCode);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnChangeFriendStatus::ChatOnChangeFriendStatus(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnChangeFriendStatus"),
|
||||
character(),
|
||||
friendName(),
|
||||
sequence(0),
|
||||
add(0),
|
||||
resultCode(0)
|
||||
{
|
||||
addVariable(character);
|
||||
addVariable(friendName);
|
||||
addVariable(sequence);
|
||||
addVariable(add);
|
||||
addVariable(resultCode);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnChangeFriendStatus::~ChatOnChangeFriendStatus()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
// ChatOnChangeFriendStatus.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Matt Sivertson
|
||||
|
||||
#ifndef _INCLUDED_ChatOnChangeFriendStatus_H
|
||||
#define _INCLUDED_ChatOnChangeFriendStatus_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnChangeFriendStatus : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnChangeFriendStatus(unsigned int sequence, const NetworkId & character, const ChatAvatarId & friendName, bool add, unsigned int result);
|
||||
ChatOnChangeFriendStatus(Archive::ReadIterator & source);
|
||||
~ChatOnChangeFriendStatus();
|
||||
|
||||
const NetworkId & getCharacter () const;
|
||||
const ChatAvatarId & getFriendName () const;
|
||||
unsigned int getSequence () const;
|
||||
bool getAdd () const;
|
||||
unsigned int getResultCode () const;
|
||||
|
||||
private:
|
||||
ChatOnChangeFriendStatus & operator = (const ChatOnChangeFriendStatus & rhs);
|
||||
ChatOnChangeFriendStatus(const ChatOnChangeFriendStatus & source);
|
||||
|
||||
Archive::AutoVariable<NetworkId> character;
|
||||
Archive::AutoVariable<ChatAvatarId> friendName;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
Archive::AutoVariable<bool> add;
|
||||
Archive::AutoVariable<unsigned int> resultCode;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const NetworkId & ChatOnChangeFriendStatus::getCharacter () const
|
||||
{
|
||||
return character.get();
|
||||
}
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnChangeFriendStatus::getFriendName () const
|
||||
{
|
||||
return friendName.get();
|
||||
}
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline unsigned int ChatOnChangeFriendStatus::getSequence () const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline bool ChatOnChangeFriendStatus::getAdd () const
|
||||
{
|
||||
return add.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline unsigned int ChatOnChangeFriendStatus::getResultCode () const
|
||||
{
|
||||
return resultCode.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnChangeFriendStatus_H
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
// ChatOnChangeIgnoreStatus.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Matt Sivertson
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatOnChangeIgnoreStatus.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnChangeIgnoreStatus::ChatOnChangeIgnoreStatus(unsigned int q, const NetworkId & c, const ChatAvatarId & _ignoreName, bool a, unsigned int result) :
|
||||
GameNetworkMessage("ChatOnChangeIgnoreStatus"),
|
||||
character(c),
|
||||
ignoreName(_ignoreName),
|
||||
sequence(q),
|
||||
ignore(a),
|
||||
resultCode(result)
|
||||
{
|
||||
addVariable(character);
|
||||
addVariable(ignoreName);
|
||||
addVariable(sequence);
|
||||
addVariable(ignore);
|
||||
addVariable(resultCode);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnChangeIgnoreStatus::ChatOnChangeIgnoreStatus(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnChangeIgnoreStatus"),
|
||||
character(),
|
||||
ignoreName(),
|
||||
sequence(0),
|
||||
ignore(0),
|
||||
resultCode(0)
|
||||
{
|
||||
addVariable(character);
|
||||
addVariable(ignoreName);
|
||||
addVariable(sequence);
|
||||
addVariable(ignore);
|
||||
addVariable(resultCode);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnChangeIgnoreStatus::~ChatOnChangeIgnoreStatus()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
// ChatOnChangeIgnoreStatus.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Matt Sivertson
|
||||
|
||||
#ifndef _INCLUDED_ChatOnChangeIgnoreStatus_H
|
||||
#define _INCLUDED_ChatOnChangeIgnoreStatus_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnChangeIgnoreStatus : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnChangeIgnoreStatus(unsigned int sequence, const NetworkId & character, const ChatAvatarId & ignoreName, bool ignore, unsigned int result);
|
||||
ChatOnChangeIgnoreStatus(Archive::ReadIterator & source);
|
||||
~ChatOnChangeIgnoreStatus();
|
||||
|
||||
const NetworkId & getCharacter () const;
|
||||
const ChatAvatarId & getIgnoreName () const;
|
||||
unsigned int getSequence () const;
|
||||
bool getIgnore () const;
|
||||
unsigned int getResultCode () const;
|
||||
|
||||
private:
|
||||
ChatOnChangeIgnoreStatus & operator = (const ChatOnChangeIgnoreStatus & rhs);
|
||||
ChatOnChangeIgnoreStatus(const ChatOnChangeIgnoreStatus & source);
|
||||
|
||||
Archive::AutoVariable<NetworkId> character;
|
||||
Archive::AutoVariable<ChatAvatarId> ignoreName;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
Archive::AutoVariable<bool> ignore;
|
||||
Archive::AutoVariable<unsigned int> resultCode;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const NetworkId & ChatOnChangeIgnoreStatus::getCharacter () const
|
||||
{
|
||||
return character.get();
|
||||
}
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnChangeIgnoreStatus::getIgnoreName () const
|
||||
{
|
||||
return ignoreName.get();
|
||||
}
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline unsigned int ChatOnChangeIgnoreStatus::getSequence () const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline bool ChatOnChangeIgnoreStatus::getIgnore () const
|
||||
{
|
||||
return ignore.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline unsigned int ChatOnChangeIgnoreStatus::getResultCode () const
|
||||
{
|
||||
return resultCode.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnChangeIgnoreStatus_H
|
||||
@@ -0,0 +1,31 @@
|
||||
// ChatOnConnectAvatar.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatOnConnectAvatar.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnConnectAvatar::ChatOnConnectAvatar() :
|
||||
GameNetworkMessage("ChatOnConnectAvatar")
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnConnectAvatar::ChatOnConnectAvatar(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnConnectAvatar")
|
||||
{
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnConnectAvatar::~ChatOnConnectAvatar()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
// ChatOnConnectAvatar.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
|
||||
#ifndef _INCLUDED_ChatOnConnectAvatar_H
|
||||
#define _INCLUDED_ChatOnConnectAvatar_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnConnectAvatar : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnConnectAvatar();
|
||||
ChatOnConnectAvatar(Archive::ReadIterator & source);
|
||||
~ChatOnConnectAvatar();
|
||||
|
||||
private:
|
||||
ChatOnConnectAvatar & operator = (const ChatOnConnectAvatar & rhs);
|
||||
ChatOnConnectAvatar(const ChatOnConnectAvatar & source);
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnConnectAvatar_H
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
// ChatOnCreateRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatOnCreateRoom.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnCreateRoom::ChatOnCreateRoom(const unsigned int s, const unsigned int c, const ChatRoomData & r) :
|
||||
GameNetworkMessage("ChatOnCreateRoom"),
|
||||
resultCode(c),
|
||||
roomData(r),
|
||||
sequence(s)
|
||||
{
|
||||
addVariable(resultCode);
|
||||
addVariable(roomData);
|
||||
addVariable(sequence);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnCreateRoom::ChatOnCreateRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnCreateRoom"),
|
||||
resultCode(),
|
||||
roomData(),
|
||||
sequence()
|
||||
{
|
||||
addVariable(resultCode);
|
||||
addVariable(roomData);
|
||||
addVariable(sequence);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnCreateRoom::~ChatOnCreateRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
// ChatOnCreateRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatOnCreateRoom_H
|
||||
#define _INCLUDED_ChatOnCreateRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatRoomData.h"
|
||||
#include "sharedNetworkMessages/ChatRoomDataArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnCreateRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnCreateRoom(const unsigned int sequence, const unsigned int resultCode, const ChatRoomData & roomData);
|
||||
ChatOnCreateRoom(Archive::ReadIterator &);
|
||||
~ChatOnCreateRoom();
|
||||
|
||||
const unsigned int getResultCode () const;
|
||||
const ChatRoomData & getRoomData () const;
|
||||
const unsigned int getSequence () const;
|
||||
|
||||
private:
|
||||
ChatOnCreateRoom & operator = (const ChatOnCreateRoom & rhs);
|
||||
ChatOnCreateRoom(const ChatOnCreateRoom & source);
|
||||
|
||||
Archive::AutoVariable<unsigned int> resultCode;
|
||||
Archive::AutoVariable<ChatRoomData> roomData;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnCreateRoom::getResultCode() const
|
||||
{
|
||||
return resultCode.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatRoomData & ChatOnCreateRoom::getRoomData() const
|
||||
{
|
||||
return roomData.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnCreateRoom::getSequence() const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnCreateRoom_H
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// ChatOnDeleteAllPersistentMessages.cpp
|
||||
// Copyright 2003, Sony Online Entertainment Inc., all rights reserved.
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatOnDeleteAllPersistentMessages.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
ChatOnDeleteAllPersistentMessages::ChatOnDeleteAllPersistentMessages(std::string const &targetName, bool const success)
|
||||
: GameNetworkMessage("ChatOnDeleteAllPersistentMessages")
|
||||
, m_targetName(targetName)
|
||||
, m_success(success)
|
||||
{
|
||||
addVariable(m_targetName);
|
||||
addVariable(m_success);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
ChatOnDeleteAllPersistentMessages::ChatOnDeleteAllPersistentMessages(Archive::ReadIterator & source)
|
||||
: GameNetworkMessage("ChatOnDeleteAllPersistentMessages")
|
||||
, m_targetName()
|
||||
, m_success()
|
||||
{
|
||||
addVariable(m_targetName);
|
||||
addVariable(m_success);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
ChatOnDeleteAllPersistentMessages::~ChatOnDeleteAllPersistentMessages()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
std::string const &ChatOnDeleteAllPersistentMessages::getTargetName() const
|
||||
{
|
||||
return m_targetName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
bool const &ChatOnDeleteAllPersistentMessages::isSuccess() const
|
||||
{
|
||||
return m_success.get();
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// ChatOnDeleteAllPersistentMessages.cpp
|
||||
// Copyright 2003, Sony Online Entertainment Inc., all rights reserved.
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef INCLUDED_ChatOnDeleteAllPersistentMessages_H
|
||||
#define INCLUDED_ChatOnDeleteAllPersistentMessages_H
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class ChatOnDeleteAllPersistentMessages : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnDeleteAllPersistentMessages(std::string const &targetName, bool const success);
|
||||
ChatOnDeleteAllPersistentMessages(Archive::ReadIterator & source);
|
||||
~ChatOnDeleteAllPersistentMessages();
|
||||
|
||||
std::string const &getTargetName() const;
|
||||
bool const &isSuccess() const;
|
||||
|
||||
private:
|
||||
|
||||
Archive::AutoVariable<std::string> m_targetName;
|
||||
Archive::AutoVariable<bool> m_success;
|
||||
|
||||
// Disabled
|
||||
|
||||
ChatOnDeleteAllPersistentMessages();
|
||||
ChatOnDeleteAllPersistentMessages & operator = (const ChatOnDeleteAllPersistentMessages & rhs);
|
||||
ChatOnDeleteAllPersistentMessages(const ChatOnDeleteAllPersistentMessages & source);
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif // INCLUDED_ChatOnDeleteAllPersistentMessages_H
|
||||
@@ -0,0 +1,48 @@
|
||||
// ChatOnDestroyRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatOnDestroyRoom.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnDestroyRoom::ChatOnDestroyRoom(const unsigned int s, const unsigned int c, const unsigned int r, const ChatAvatarId & d) :
|
||||
GameNetworkMessage("ChatOnDestroyRoom"),
|
||||
destroyer(d),
|
||||
resultCode(c),
|
||||
roomId(r),
|
||||
sequence(s)
|
||||
{
|
||||
addVariable(destroyer);
|
||||
addVariable(resultCode);
|
||||
addVariable(roomId);
|
||||
addVariable(sequence);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnDestroyRoom::ChatOnDestroyRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnDestroyRoom"),
|
||||
destroyer(),
|
||||
resultCode(),
|
||||
roomId(),
|
||||
sequence()
|
||||
{
|
||||
addVariable(destroyer);
|
||||
addVariable(resultCode);
|
||||
addVariable(roomId);
|
||||
addVariable(sequence);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnDestroyRoom::~ChatOnDestroyRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
// ChatOnDestroyRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatOnDestroyRoom_H
|
||||
#define _INCLUDED_ChatOnDestroyRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnDestroyRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnDestroyRoom(const unsigned int sequence, const unsigned int resultCode, const unsigned int roomId, const ChatAvatarId & destroyer);
|
||||
ChatOnDestroyRoom(Archive::ReadIterator &);
|
||||
~ChatOnDestroyRoom();
|
||||
|
||||
const ChatAvatarId & getDestroyer () const;
|
||||
const unsigned int getResultCode () const;
|
||||
const unsigned int getRoomId () const;
|
||||
const unsigned int getSequence () const;
|
||||
|
||||
private:
|
||||
ChatOnDestroyRoom & operator = (const ChatOnDestroyRoom & rhs);
|
||||
ChatOnDestroyRoom(const ChatOnDestroyRoom & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> destroyer;
|
||||
Archive::AutoVariable<unsigned int> resultCode;
|
||||
Archive::AutoVariable<unsigned int> roomId;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnDestroyRoom::getDestroyer() const
|
||||
{
|
||||
return destroyer.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnDestroyRoom::getResultCode() const
|
||||
{
|
||||
return resultCode.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnDestroyRoom::getRoomId() const
|
||||
{
|
||||
return roomId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnDestroyRoom::getSequence() const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnDestroyRoom_H
|
||||
@@ -0,0 +1,48 @@
|
||||
// ChatOnEnteredRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatOnEnteredRoom.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnEnteredRoom::ChatOnEnteredRoom(const unsigned int s, const unsigned int r, const unsigned int n, const ChatAvatarId & c) :
|
||||
GameNetworkMessage("ChatOnEnteredRoom"),
|
||||
characterName(c),
|
||||
result(r),
|
||||
roomId(n),
|
||||
sequence(s)
|
||||
{
|
||||
addVariable(characterName);
|
||||
addVariable(result);
|
||||
addVariable(roomId);
|
||||
addVariable(sequence);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnEnteredRoom::ChatOnEnteredRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnEnteredRoom"),
|
||||
characterName(),
|
||||
result(),
|
||||
roomId(),
|
||||
sequence()
|
||||
{
|
||||
addVariable(characterName);
|
||||
addVariable(result);
|
||||
addVariable(roomId);
|
||||
addVariable(sequence);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnEnteredRoom::~ChatOnEnteredRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
// ChatOnEnteredRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatOnEnteredRoom_H
|
||||
#define _INCLUDED_ChatOnEnteredRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnEnteredRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnEnteredRoom(unsigned int sequence, const unsigned int result, const unsigned int roomId, const ChatAvatarId & characterName);
|
||||
ChatOnEnteredRoom(Archive::ReadIterator &);
|
||||
~ChatOnEnteredRoom();
|
||||
|
||||
const ChatAvatarId & getCharacterName () const;
|
||||
const unsigned int getResult () const;
|
||||
const unsigned int getRoomId () const;
|
||||
const unsigned int getSequence () const;
|
||||
|
||||
private:
|
||||
ChatOnEnteredRoom & operator = (const ChatOnEnteredRoom & rhs);
|
||||
ChatOnEnteredRoom(const ChatOnEnteredRoom & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> characterName;
|
||||
Archive::AutoVariable<unsigned int> result;
|
||||
Archive::AutoVariable<unsigned int> roomId;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnEnteredRoom::getCharacterName() const
|
||||
{
|
||||
return characterName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnEnteredRoom::getResult() const
|
||||
{
|
||||
return result.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnEnteredRoom::getRoomId() const
|
||||
{
|
||||
return roomId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnEnteredRoom::getSequence() const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnEnteredRoom_H
|
||||
@@ -0,0 +1,41 @@
|
||||
// ChatOnGetFriendsList.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Matt Sivertson
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatOnGetFriendsList.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnGetFriendsList::ChatOnGetFriendsList(const NetworkId & c, const std::vector<ChatAvatarId> & friendsList) :
|
||||
GameNetworkMessage("ChatOnGetFriendsList"),
|
||||
character(c),
|
||||
friends()
|
||||
{
|
||||
friends.set(friendsList);
|
||||
addVariable(character);
|
||||
addVariable(friends);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnGetFriendsList::ChatOnGetFriendsList(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnGetFriendsList"),
|
||||
character(),
|
||||
friends()
|
||||
{
|
||||
addVariable(character);
|
||||
addVariable(friends);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnGetFriendsList::~ChatOnGetFriendsList()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
// ChatOnGetFriendsList.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Matt Sivertson
|
||||
|
||||
#ifndef _INCLUDED_ChatOnGetFriendsList_H
|
||||
#define _INCLUDED_ChatOnGetFriendsList_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
#include <vector>
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnGetFriendsList : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnGetFriendsList(const NetworkId & character, const std::vector<ChatAvatarId> & friends);
|
||||
ChatOnGetFriendsList(Archive::ReadIterator & source);
|
||||
~ChatOnGetFriendsList();
|
||||
|
||||
const NetworkId & getCharacter () const;
|
||||
const std::vector<ChatAvatarId> & getFriends () const;
|
||||
|
||||
private:
|
||||
ChatOnGetFriendsList & operator = (const ChatOnGetFriendsList & rhs);
|
||||
ChatOnGetFriendsList(const ChatOnGetFriendsList & source);
|
||||
|
||||
Archive::AutoVariable<NetworkId> character;
|
||||
Archive::AutoArray<ChatAvatarId> friends;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const NetworkId & ChatOnGetFriendsList::getCharacter () const
|
||||
{
|
||||
return character.get();
|
||||
}
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::vector<ChatAvatarId> & ChatOnGetFriendsList::getFriends () const
|
||||
{
|
||||
return friends.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnGetFriendsList_H
|
||||
@@ -0,0 +1,41 @@
|
||||
// ChatOnGetIgnoreList.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Matt Sivertson
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatOnGetIgnoreList.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnGetIgnoreList::ChatOnGetIgnoreList(const NetworkId & c, const std::vector<ChatAvatarId> & ignoreList) :
|
||||
GameNetworkMessage("ChatOnGetIgnoreList"),
|
||||
character(c),
|
||||
ignores()
|
||||
{
|
||||
ignores.set(ignoreList);
|
||||
addVariable(character);
|
||||
addVariable(ignores);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnGetIgnoreList::ChatOnGetIgnoreList(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnGetIgnoreList"),
|
||||
character(),
|
||||
ignores()
|
||||
{
|
||||
addVariable(character);
|
||||
addVariable(ignores);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnGetIgnoreList::~ChatOnGetIgnoreList()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
// ChatOnGetIgnoreList.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Matt Sivertson
|
||||
|
||||
#ifndef _INCLUDED_ChatOnGetIgnoreList_H
|
||||
#define _INCLUDED_ChatOnGetIgnoreList_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
#include <vector>
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnGetIgnoreList : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnGetIgnoreList(const NetworkId & character, const std::vector<ChatAvatarId> & ignoreList);
|
||||
ChatOnGetIgnoreList(Archive::ReadIterator & source);
|
||||
~ChatOnGetIgnoreList();
|
||||
|
||||
const NetworkId & getCharacter () const;
|
||||
const std::vector<ChatAvatarId> & getIgnoreList () const;
|
||||
|
||||
private:
|
||||
ChatOnGetIgnoreList & operator = (const ChatOnGetIgnoreList & rhs);
|
||||
ChatOnGetIgnoreList(const ChatOnGetIgnoreList & source);
|
||||
|
||||
Archive::AutoVariable<NetworkId> character;
|
||||
Archive::AutoArray<ChatAvatarId> ignores;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const NetworkId & ChatOnGetIgnoreList::getCharacter () const
|
||||
{
|
||||
return character.get();
|
||||
}
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::vector<ChatAvatarId> & ChatOnGetIgnoreList::getIgnoreList () const
|
||||
{
|
||||
return ignores.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnGetIgnoreList_H
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
// ChatOnInviteToRoom.cpp
|
||||
// Copyright 2000-05, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Roy Fleck
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatOnInviteGroupToRoom.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnInviteGroupToRoom::ChatOnInviteGroupToRoom(const unsigned int r, const std::string &room, const ChatAvatarId &invitorId, const ChatAvatarId &inviteeId) :
|
||||
GameNetworkMessage("ChatOnInviteGroupToRoom"),
|
||||
roomName(room),
|
||||
invitor(invitorId),
|
||||
invitee(inviteeId),
|
||||
result(r)
|
||||
{
|
||||
addVariable(roomName);
|
||||
addVariable(invitor);
|
||||
addVariable(invitee);
|
||||
addVariable(result);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnInviteGroupToRoom::ChatOnInviteGroupToRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnInviteGroupToRoom"),
|
||||
roomName(),
|
||||
invitor(),
|
||||
invitee(),
|
||||
result()
|
||||
{
|
||||
addVariable(roomName);
|
||||
addVariable(invitor);
|
||||
addVariable(invitee);
|
||||
addVariable(result);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnInviteGroupToRoom::~ChatOnInviteGroupToRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
// ChatOnInviteGroupToRoom.h
|
||||
// Copyright 2000-05, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Roy Fleck
|
||||
|
||||
#ifndef _INCLUDED_ChatOnInviteGroupToRoom_H
|
||||
#define _INCLUDED_ChatOnInviteGroupToRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnInviteGroupToRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnInviteGroupToRoom(const unsigned int result, const std::string &roomName, const ChatAvatarId &invitor, const ChatAvatarId &invitee );
|
||||
ChatOnInviteGroupToRoom(Archive::ReadIterator & source);
|
||||
~ChatOnInviteGroupToRoom();
|
||||
|
||||
const std::string & getRoomName () const;
|
||||
const ChatAvatarId & getInvitor () const;
|
||||
const ChatAvatarId & getInvitee () const;
|
||||
const unsigned int getResult () const;
|
||||
|
||||
private:
|
||||
ChatOnInviteGroupToRoom & operator = (const ChatOnInviteGroupToRoom & rhs);
|
||||
ChatOnInviteGroupToRoom(const ChatOnInviteGroupToRoom & source);
|
||||
|
||||
Archive::AutoVariable<std::string> roomName;
|
||||
Archive::AutoVariable<ChatAvatarId> invitor;
|
||||
Archive::AutoVariable<ChatAvatarId> invitee;
|
||||
Archive::AutoVariable<unsigned int> result;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatOnInviteGroupToRoom::getRoomName() const
|
||||
{
|
||||
return roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnInviteGroupToRoom::getInvitor() const
|
||||
{
|
||||
return invitor.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnInviteGroupToRoom::getInvitee() const
|
||||
{
|
||||
return invitee.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnInviteGroupToRoom::getResult() const
|
||||
{
|
||||
return result.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnInviteGroupToRoom_H
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
// ChatOnInviteToRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatOnInviteToRoom.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnInviteToRoom::ChatOnInviteToRoom(const unsigned int r, const std::string &room, const ChatAvatarId &invitorId, const ChatAvatarId &inviteeId) :
|
||||
GameNetworkMessage("ChatOnInviteToRoom"),
|
||||
roomName(room),
|
||||
invitor(invitorId),
|
||||
invitee(inviteeId),
|
||||
result(r)
|
||||
{
|
||||
addVariable(roomName);
|
||||
addVariable(invitor);
|
||||
addVariable(invitee);
|
||||
addVariable(result);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnInviteToRoom::ChatOnInviteToRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnInviteToRoom"),
|
||||
roomName(),
|
||||
invitor(),
|
||||
invitee(),
|
||||
result()
|
||||
{
|
||||
addVariable(roomName);
|
||||
addVariable(invitor);
|
||||
addVariable(invitee);
|
||||
addVariable(result);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnInviteToRoom::~ChatOnInviteToRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
// ChatOnInviteToRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatOnInviteToRoom_H
|
||||
#define _INCLUDED_ChatOnInviteToRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnInviteToRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnInviteToRoom(const unsigned int result, const std::string &roomName, const ChatAvatarId &invitor, const ChatAvatarId &invitee );
|
||||
ChatOnInviteToRoom(Archive::ReadIterator & source);
|
||||
~ChatOnInviteToRoom();
|
||||
|
||||
const std::string & getRoomName () const;
|
||||
const ChatAvatarId & getInvitor () const;
|
||||
const ChatAvatarId & getInvitee () const;
|
||||
const unsigned int getResult () const;
|
||||
|
||||
private:
|
||||
ChatOnInviteToRoom & operator = (const ChatOnInviteToRoom & rhs);
|
||||
ChatOnInviteToRoom(const ChatOnInviteToRoom & source);
|
||||
|
||||
Archive::AutoVariable<std::string> roomName;
|
||||
Archive::AutoVariable<ChatAvatarId> invitor;
|
||||
Archive::AutoVariable<ChatAvatarId> invitee;
|
||||
Archive::AutoVariable<unsigned int> result;
|
||||
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatOnInviteToRoom::getRoomName() const
|
||||
{
|
||||
return roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnInviteToRoom::getInvitor() const
|
||||
{
|
||||
return invitor.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnInviteToRoom::getInvitee() const
|
||||
{
|
||||
return invitee.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnInviteToRoom::getResult() const
|
||||
{
|
||||
return result.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnInviteToRoom_H
|
||||
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
// ChatOnKickAvatarFromRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Roy Fleck
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
#include "sharedNetworkMessages/ChatOnKickAvatarFromRoom.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnKickAvatarFromRoom::ChatOnKickAvatarFromRoom(const unsigned int c, const ChatAvatarId & i, const ChatAvatarId &remover, const std::string & r) :
|
||||
GameNetworkMessage("ChatOnKickAvatarFromRoom"),
|
||||
avatarId(i),
|
||||
removerId(remover),
|
||||
resultCode(c),
|
||||
roomName(r)
|
||||
{
|
||||
addVariable(avatarId);
|
||||
addVariable(removerId);
|
||||
addVariable(resultCode);
|
||||
addVariable(roomName);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnKickAvatarFromRoom::ChatOnKickAvatarFromRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnKickAvatarFromRoom"),
|
||||
avatarId(),
|
||||
removerId(),
|
||||
resultCode(),
|
||||
roomName()
|
||||
{
|
||||
addVariable(avatarId);
|
||||
addVariable(removerId);
|
||||
addVariable(resultCode);
|
||||
addVariable(roomName);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnKickAvatarFromRoom::~ChatOnKickAvatarFromRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
// ChatOnKickAvatarFromRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Roy Fleck
|
||||
|
||||
#ifndef _INCLUDED_ChatOnKickAvatarFromRoom_H
|
||||
#define _INCLUDED_ChatOnKickAvatarFromRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnKickAvatarFromRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnKickAvatarFromRoom(const unsigned int resultCode, const ChatAvatarId & avatarId, const ChatAvatarId &removerId, const std::string & roomName);
|
||||
explicit ChatOnKickAvatarFromRoom(Archive::ReadIterator & source);
|
||||
~ChatOnKickAvatarFromRoom();
|
||||
|
||||
const ChatAvatarId & getAvatarId () const;
|
||||
const ChatAvatarId & getRemoverId () const;
|
||||
const unsigned int getResultCode () const;
|
||||
const std::string & getRoomName () const;
|
||||
|
||||
private:
|
||||
ChatOnKickAvatarFromRoom & operator = (const ChatOnKickAvatarFromRoom & rhs);
|
||||
ChatOnKickAvatarFromRoom(const ChatOnKickAvatarFromRoom & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> avatarId;
|
||||
Archive::AutoVariable<ChatAvatarId> removerId;
|
||||
Archive::AutoVariable<unsigned int> resultCode;
|
||||
Archive::AutoVariable<std::string> roomName;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnKickAvatarFromRoom::getAvatarId() const
|
||||
{
|
||||
return avatarId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnKickAvatarFromRoom::getRemoverId() const
|
||||
{
|
||||
return removerId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnKickAvatarFromRoom::getResultCode() const
|
||||
{
|
||||
return resultCode.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatOnKickAvatarFromRoom::getRoomName() const
|
||||
{
|
||||
return roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnKickAvatarFromRoom_H
|
||||
@@ -0,0 +1,48 @@
|
||||
// ChatOnLeaveRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "ChatOnLeaveRoom.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnLeaveRoom::ChatOnLeaveRoom(const unsigned int s, const unsigned int r, const unsigned int n, const ChatAvatarId & c) :
|
||||
GameNetworkMessage("ChatOnLeaveRoom"),
|
||||
characterName(c),
|
||||
resultCode(r),
|
||||
roomId(n),
|
||||
sequence(s)
|
||||
{
|
||||
addVariable(characterName);
|
||||
addVariable(resultCode);
|
||||
addVariable(roomId);
|
||||
addVariable(sequence);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnLeaveRoom::ChatOnLeaveRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnLeaveRoom"),
|
||||
characterName(),
|
||||
resultCode(),
|
||||
roomId(),
|
||||
sequence()
|
||||
{
|
||||
addVariable(characterName);
|
||||
addVariable(resultCode);
|
||||
addVariable(roomId);
|
||||
addVariable(sequence);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnLeaveRoom::~ChatOnLeaveRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
// ChatOnLeaveRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatOnLeaveRoom_H
|
||||
#define _INCLUDED_ChatOnLeaveRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnLeaveRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnLeaveRoom(unsigned int sequence, const unsigned int resultCode, const unsigned int roomId, const ChatAvatarId & characterName);
|
||||
ChatOnLeaveRoom(Archive::ReadIterator &);
|
||||
~ChatOnLeaveRoom();
|
||||
|
||||
const ChatAvatarId & getCharacterName () const;
|
||||
const unsigned int getResultCode () const;
|
||||
const unsigned int getRoomId () const;
|
||||
const unsigned int getSequence () const;
|
||||
|
||||
private:
|
||||
ChatOnLeaveRoom & operator = (const ChatOnLeaveRoom & rhs);
|
||||
ChatOnLeaveRoom(const ChatOnLeaveRoom & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> characterName;
|
||||
Archive::AutoVariable<unsigned int> resultCode;
|
||||
Archive::AutoVariable<unsigned int> roomId;
|
||||
Archive::AutoVariable<unsigned int> sequence;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnLeaveRoom::getCharacterName() const
|
||||
{
|
||||
return characterName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnLeaveRoom::getResultCode() const
|
||||
{
|
||||
return resultCode.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnLeaveRoom::getRoomId() const
|
||||
{
|
||||
return roomId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnLeaveRoom::getSequence() const
|
||||
{
|
||||
return sequence.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnLeaveRoom_H
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
// ChatOnReceiveRoomInvitation.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
#include "sharedNetworkMessages/ChatOnReceiveRoomInvitation.h"
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnReceiveRoomInvitation::ChatOnReceiveRoomInvitation(const std::string & r, const ChatAvatarId & id) :
|
||||
GameNetworkMessage("ChatOnReceiveRoomInvitation"),
|
||||
invitorAvatar(id),
|
||||
roomName(r)
|
||||
{
|
||||
addVariable(invitorAvatar);
|
||||
addVariable(roomName);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnReceiveRoomInvitation::ChatOnReceiveRoomInvitation(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnReceiveRoomInvitation"),
|
||||
invitorAvatar(),
|
||||
roomName()
|
||||
{
|
||||
addVariable(invitorAvatar);
|
||||
addVariable(roomName);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnReceiveRoomInvitation::~ChatOnReceiveRoomInvitation()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
// ChatOnReceiveRoomInvitation.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatOnReceiveRoomInvitation_H
|
||||
#define _INCLUDED_ChatOnReceiveRoomInvitation_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnReceiveRoomInvitation : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnReceiveRoomInvitation(const std::string & roomName, const ChatAvatarId & invitorAvator);
|
||||
ChatOnReceiveRoomInvitation(Archive::ReadIterator & source);
|
||||
~ChatOnReceiveRoomInvitation();
|
||||
|
||||
const ChatAvatarId & getInvitorAvatar () const;
|
||||
const std::string & getRoomName () const;
|
||||
|
||||
private:
|
||||
ChatOnReceiveRoomInvitation & operator = (const ChatOnReceiveRoomInvitation & rhs);
|
||||
ChatOnReceiveRoomInvitation(const ChatOnReceiveRoomInvitation & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> invitorAvatar;
|
||||
Archive::AutoVariable<std::string> roomName;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnReceiveRoomInvitation::getInvitorAvatar() const
|
||||
{
|
||||
return invitorAvatar.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatOnReceiveRoomInvitation::getRoomName() const
|
||||
{
|
||||
return roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnReceiveRoomInvitation_H
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
// ChatOnRemoveModeratorFromRoom.cpp
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/FirstSharedNetworkMessages.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarIdArchive.h"
|
||||
#include "sharedNetworkMessages/ChatOnRemoveModeratorFromRoom.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnRemoveModeratorFromRoom::ChatOnRemoveModeratorFromRoom(const unsigned int c, const unsigned int s, const ChatAvatarId & i, const ChatAvatarId &remover, const std::string & r) :
|
||||
GameNetworkMessage("ChatOnRemoveModeratorFromRoom"),
|
||||
avatarId(i),
|
||||
removerId(remover),
|
||||
resultCode(c),
|
||||
roomName(r),
|
||||
sequenceId(s)
|
||||
{
|
||||
addVariable(avatarId);
|
||||
addVariable(removerId);
|
||||
addVariable(resultCode);
|
||||
addVariable(roomName);
|
||||
addVariable(sequenceId);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnRemoveModeratorFromRoom::ChatOnRemoveModeratorFromRoom(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("ChatOnRemoveModeratorFromRoom"),
|
||||
avatarId(),
|
||||
removerId(),
|
||||
resultCode(),
|
||||
roomName(),
|
||||
sequenceId()
|
||||
{
|
||||
addVariable(avatarId);
|
||||
addVariable(removerId);
|
||||
addVariable(resultCode);
|
||||
addVariable(roomName);
|
||||
addVariable(sequenceId);
|
||||
unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
ChatOnRemoveModeratorFromRoom::~ChatOnRemoveModeratorFromRoom()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
// ChatOnRemoveModeratorFromRoom.h
|
||||
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_ChatOnRemoveModeratorFromRoom_H
|
||||
#define _INCLUDED_ChatOnRemoveModeratorFromRoom_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include "sharedNetworkMessages/ChatAvatarId.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class ChatOnRemoveModeratorFromRoom : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
ChatOnRemoveModeratorFromRoom(const unsigned int resultCode, const unsigned int sequenceId, const ChatAvatarId & avatarId, const ChatAvatarId &removerId, const std::string & roomName);
|
||||
explicit ChatOnRemoveModeratorFromRoom(Archive::ReadIterator & source);
|
||||
~ChatOnRemoveModeratorFromRoom();
|
||||
|
||||
const ChatAvatarId & getAvatarId () const;
|
||||
const ChatAvatarId & getRemoverId () const;
|
||||
const unsigned int getResultCode () const;
|
||||
const std::string & getRoomName () const;
|
||||
const unsigned int getSequenceId () const;
|
||||
|
||||
private:
|
||||
ChatOnRemoveModeratorFromRoom & operator = (const ChatOnRemoveModeratorFromRoom & rhs);
|
||||
ChatOnRemoveModeratorFromRoom(const ChatOnRemoveModeratorFromRoom & source);
|
||||
|
||||
Archive::AutoVariable<ChatAvatarId> avatarId;
|
||||
Archive::AutoVariable<ChatAvatarId> removerId;
|
||||
Archive::AutoVariable<unsigned int> resultCode;
|
||||
Archive::AutoVariable<std::string> roomName;
|
||||
Archive::AutoVariable<unsigned int> sequenceId;
|
||||
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnRemoveModeratorFromRoom::getAvatarId() const
|
||||
{
|
||||
return avatarId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const ChatAvatarId & ChatOnRemoveModeratorFromRoom::getRemoverId() const
|
||||
{
|
||||
return removerId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnRemoveModeratorFromRoom::getResultCode() const
|
||||
{
|
||||
return resultCode.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const std::string & ChatOnRemoveModeratorFromRoom::getRoomName() const
|
||||
{
|
||||
return roomName.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
inline const unsigned int ChatOnRemoveModeratorFromRoom::getSequenceId() const
|
||||
{
|
||||
return sequenceId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_ChatOnRemoveModeratorFromRoom_H
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user