diff --git a/engine/shared/library/sharedNetworkMessages/CMakeLists.txt b/engine/shared/library/sharedNetworkMessages/CMakeLists.txt new file mode 100644 index 00000000..782885a5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 2.8) + +project(sharedNetworkMessages) + +if(WIN32) + add_definitions(/D_CRT_SECURE_NO_WARNINGS) +endif() + +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include/public) + +add_subdirectory(src) diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AIDebuggingMessages.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AIDebuggingMessages.h new file mode 100644 index 00000000..1dc3857f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AIDebuggingMessages.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/AIDebuggingMessages.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AcceptAuctionMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AcceptAuctionMessage.h new file mode 100644 index 00000000..4c1f6d56 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AcceptAuctionMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/AcceptAuctionMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AcceptAuctionResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AcceptAuctionResponseMessage.h new file mode 100644 index 00000000..26906deb --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AcceptAuctionResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/AcceptAuctionResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AddMapLocationMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AddMapLocationMessage.h new file mode 100644 index 00000000..65828b16 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AddMapLocationMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/AddMapLocationMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AddMapLocationResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AddMapLocationResponseMessage.h new file mode 100644 index 00000000..a762b744 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AddMapLocationResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/AddMapLocationResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AlterWaitTimerNotificationMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AlterWaitTimerNotificationMessage.h new file mode 100644 index 00000000..6ee431bd --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AlterWaitTimerNotificationMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/AlterWaitTimerNotificationMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AppendCommentMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AppendCommentMessage.h new file mode 100644 index 00000000..f0ba5a5f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AppendCommentMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/AppendCommentMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AppendCommentResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AppendCommentResponseMessage.h new file mode 100644 index 00000000..ce636f43 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AppendCommentResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/AppendCommentResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AttributeListMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AttributeListMessage.h new file mode 100644 index 00000000..64159c57 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AttributeListMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/AttributeListMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionData.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionData.h new file mode 100644 index 00000000..8a8ffc08 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionData.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/AuctionData.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionErrorCodes.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionErrorCodes.h new file mode 100644 index 00000000..a9a7f42f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionErrorCodes.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/AuctionErrorCodes.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionQueryHeadersMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionQueryHeadersMessage.h new file mode 100644 index 00000000..8b949879 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionQueryHeadersMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/AuctionQueryHeadersMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionQueryHeadersResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionQueryHeadersResponseMessage.h new file mode 100644 index 00000000..cf2d4d0d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionQueryHeadersResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/AuctionQueryHeadersResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionQueryMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionQueryMessage.h new file mode 100644 index 00000000..9f86e98f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionQueryMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/AuctionQueryMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionQueryResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionQueryResponseMessage.h new file mode 100644 index 00000000..17b34ff4 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/AuctionQueryResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/AuctionQueryResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BarrierMetrics.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BarrierMetrics.h new file mode 100644 index 00000000..edcddf5d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BarrierMetrics.h @@ -0,0 +1 @@ +#include "../../src/shared/planetWatch/BarrierMetrics.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BarrierMetricsData.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BarrierMetricsData.h new file mode 100644 index 00000000..ba9f01ef --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BarrierMetricsData.h @@ -0,0 +1 @@ +#include "../../src/shared/planetWatch/BarrierMetricsData.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BaselinesMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BaselinesMessage.h new file mode 100644 index 00000000..58323281 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BaselinesMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/common/BaselinesMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BatchBaselinesMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BatchBaselinesMessage.h new file mode 100644 index 00000000..abb6ba08 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BatchBaselinesMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/common/BatchBaselinesMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BidAuctionMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BidAuctionMessage.h new file mode 100644 index 00000000..2f80bbbe --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BidAuctionMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/BidAuctionMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BidAuctionResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BidAuctionResponseMessage.h new file mode 100644 index 00000000..f04efd2e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BidAuctionResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/BidAuctionResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BuffBuilderChangeMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BuffBuilderChangeMessage.h new file mode 100644 index 00000000..991fddb8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BuffBuilderChangeMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/BuffBuilderChangeMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BuffBuilderStartMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BuffBuilderStartMessage.h new file mode 100644 index 00000000..4af749b3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/BuffBuilderStartMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/BuffBuilderStartMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CancelLiveAuctionMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CancelLiveAuctionMessage.h new file mode 100644 index 00000000..7cd9ab4f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CancelLiveAuctionMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/CancelLiveAuctionMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CancelLiveAuctionResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CancelLiveAuctionResponseMessage.h new file mode 100644 index 00000000..96f44c49 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CancelLiveAuctionResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/CancelLiveAuctionResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CancelTicketMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CancelTicketMessage.h new file mode 100644 index 00000000..7dc8df60 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CancelTicketMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/CancelTicketMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CancelTicketResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CancelTicketResponseMessage.h new file mode 100644 index 00000000..91c3eaca --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CancelTicketResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/CancelTicketResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CharacterSheetResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CharacterSheetResponseMessage.h new file mode 100644 index 00000000..3acdf998 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CharacterSheetResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/CharacterSheetResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatAddFriend.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatAddFriend.h new file mode 100644 index 00000000..271e84b6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatAddFriend.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatAddFriend.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatAddModeratorToRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatAddModeratorToRoom.h new file mode 100644 index 00000000..22999bcb --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatAddModeratorToRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatAddModeratorToRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatAvatarId.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatAvatarId.h new file mode 100644 index 00000000..4477e7f5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatAvatarId.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatAvatarId.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatAvatarIdArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatAvatarIdArchive.h new file mode 100644 index 00000000..3b8d7d5b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatAvatarIdArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatAvatarIdArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatBanAvatarFromRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatBanAvatarFromRoom.h new file mode 100644 index 00000000..e7484ff7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatBanAvatarFromRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatBanAvatarFromRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatChangeFriendStatus.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatChangeFriendStatus.h new file mode 100644 index 00000000..61d477cf --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatChangeFriendStatus.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatChangeFriendStatus.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatChangeIgnoreStatus.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatChangeIgnoreStatus.h new file mode 100644 index 00000000..7cc27350 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatChangeIgnoreStatus.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatChangeIgnoreStatus.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatCreateRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatCreateRoom.h new file mode 100644 index 00000000..d2c43cf2 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatCreateRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatCreateRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatDeleteAllPersistentMessages.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatDeleteAllPersistentMessages.h new file mode 100644 index 00000000..77f6eba9 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatDeleteAllPersistentMessages.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatDeleteAllPersistentMessages.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatDeletePersistentMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatDeletePersistentMessage.h new file mode 100644 index 00000000..287730a7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatDeletePersistentMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatDeletePersistentMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatDestroyRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatDestroyRoom.h new file mode 100644 index 00000000..4395974c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatDestroyRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatDestroyRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatDestroyRoomByName.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatDestroyRoomByName.h new file mode 100644 index 00000000..ce4110a9 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatDestroyRoomByName.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatDestroyRoomByName.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatEnterRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatEnterRoom.h new file mode 100644 index 00000000..229bffc0 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatEnterRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatEnterRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatEnterRoomById.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatEnterRoomById.h new file mode 100644 index 00000000..3ef938a3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatEnterRoomById.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatEnterRoomById.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatEnum.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatEnum.h new file mode 100644 index 00000000..2f87ae35 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatEnum.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatEnum.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatFriendsListUpdate.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatFriendsListUpdate.h new file mode 100644 index 00000000..478cab32 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatFriendsListUpdate.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatFriendsListUpdate.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatGetFriendsList.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatGetFriendsList.h new file mode 100644 index 00000000..f996459d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatGetFriendsList.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatGetFriendsList.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatGetIgnoreList.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatGetIgnoreList.h new file mode 100644 index 00000000..8290350d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatGetIgnoreList.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatGetIgnoreList.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatInstantMessageToCharacter.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatInstantMessageToCharacter.h new file mode 100644 index 00000000..9693127d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatInstantMessageToCharacter.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatInstantMessageToCharacter.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatInstantMessageToClient.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatInstantMessageToClient.h new file mode 100644 index 00000000..22b526db --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatInstantMessageToClient.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatInstantMessageToClient.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatInviteAvatarToRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatInviteAvatarToRoom.h new file mode 100644 index 00000000..29cbb418 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatInviteAvatarToRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatInviteAvatarToRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatInviteGroupMembersToRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatInviteGroupMembersToRoom.h new file mode 100644 index 00000000..feded2d4 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatInviteGroupMembersToRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatInviteGroupMembersToRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatInviteGroupToRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatInviteGroupToRoom.h new file mode 100644 index 00000000..62b2afe8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatInviteGroupToRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatInviteGroupToRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatKickAvatarFromRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatKickAvatarFromRoom.h new file mode 100644 index 00000000..27569f93 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatKickAvatarFromRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatKickAvatarFromRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatMessageFromGame.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatMessageFromGame.h new file mode 100644 index 00000000..9460e5f0 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatMessageFromGame.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatMessageFromGame.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnAddFriend.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnAddFriend.h new file mode 100644 index 00000000..d785907c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnAddFriend.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnAddFriend.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnAddModeratorToRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnAddModeratorToRoom.h new file mode 100644 index 00000000..9d1c1f83 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnAddModeratorToRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnAddModeratorToRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnBanAvatarFromRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnBanAvatarFromRoom.h new file mode 100644 index 00000000..27b4b95a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnBanAvatarFromRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnBanAvatarFromRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnChangeFriendStatus.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnChangeFriendStatus.h new file mode 100644 index 00000000..993478d1 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnChangeFriendStatus.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnChangeFriendStatus.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnChangeIgnoreStatus.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnChangeIgnoreStatus.h new file mode 100644 index 00000000..047cda01 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnChangeIgnoreStatus.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnChangeIgnoreStatus.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnConnectAvatar.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnConnectAvatar.h new file mode 100644 index 00000000..12e0273d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnConnectAvatar.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnConnectAvatar.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnCreateRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnCreateRoom.h new file mode 100644 index 00000000..2af06993 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnCreateRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnCreateRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnDeleteAllPersistentMessages.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnDeleteAllPersistentMessages.h new file mode 100644 index 00000000..65f66c1c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnDeleteAllPersistentMessages.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnDeleteAllPersistentMessages.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnDestroyRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnDestroyRoom.h new file mode 100644 index 00000000..9a3ed8a1 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnDestroyRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnDestroyRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnEnteredRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnEnteredRoom.h new file mode 100644 index 00000000..1447d548 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnEnteredRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnEnteredRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnGetFriendsList.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnGetFriendsList.h new file mode 100644 index 00000000..bb6c1218 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnGetFriendsList.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnGetFriendsList.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnGetIgnoreList.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnGetIgnoreList.h new file mode 100644 index 00000000..dae6169c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnGetIgnoreList.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnGetIgnoreList.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnInviteGroupToRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnInviteGroupToRoom.h new file mode 100644 index 00000000..a49a5245 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnInviteGroupToRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnInviteGroupToRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnInviteToRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnInviteToRoom.h new file mode 100644 index 00000000..65b406ef --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnInviteToRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnInviteToRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnKickAvatarFromRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnKickAvatarFromRoom.h new file mode 100644 index 00000000..a908b1b9 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnKickAvatarFromRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnKickAvatarFromRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnLeaveRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnLeaveRoom.h new file mode 100644 index 00000000..a072d638 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnLeaveRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnLeaveRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnReceiveRoomInvitation.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnReceiveRoomInvitation.h new file mode 100644 index 00000000..e5d1c32f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnReceiveRoomInvitation.h @@ -0,0 +1,2 @@ +#include "../../src/shared/chat/ChatOnReceiveRoomInvitation.h" + diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnRemoveModeratorFromRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnRemoveModeratorFromRoom.h new file mode 100644 index 00000000..14afd720 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnRemoveModeratorFromRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnRemoveModeratorFromRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnRequestLog.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnRequestLog.h new file mode 100644 index 00000000..6151d783 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnRequestLog.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnRequestLog.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnSendInstantMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnSendInstantMessage.h new file mode 100644 index 00000000..8ae9e89b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnSendInstantMessage.h @@ -0,0 +1,2 @@ +#include "../../src/shared/chat/ChatOnSendInstantMessage.h" + diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnSendPersistentMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnSendPersistentMessage.h new file mode 100644 index 00000000..16eb9084 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnSendPersistentMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnSendPersistentMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnSendRoomInvitation.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnSendRoomInvitation.h new file mode 100644 index 00000000..36be2ff8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnSendRoomInvitation.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnSendRoomInvitation.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnSendRoomMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnSendRoomMessage.h new file mode 100644 index 00000000..0c4dc198 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnSendRoomMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnSendRoomMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnUnbanAvatarFromRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnUnbanAvatarFromRoom.h new file mode 100644 index 00000000..6f03577e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnUnbanAvatarFromRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnUnbanAvatarFromRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnUninviteFromRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnUninviteFromRoom.h new file mode 100644 index 00000000..30a9d50e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatOnUninviteFromRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatOnUninviteFromRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatPersistentMessageToClient.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatPersistentMessageToClient.h new file mode 100644 index 00000000..6878ff07 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatPersistentMessageToClient.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatPersistentMessageToClient.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatPersistentMessageToClientData.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatPersistentMessageToClientData.h new file mode 100644 index 00000000..9ea7ea3d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatPersistentMessageToClientData.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatPersistentMessageToClientData.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatPersistentMessageToClientDataArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatPersistentMessageToClientDataArchive.h new file mode 100644 index 00000000..96f1abf6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatPersistentMessageToClientDataArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatPersistentMessageToClientDataArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatPersistentMessageToServer.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatPersistentMessageToServer.h new file mode 100644 index 00000000..b5e58db5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatPersistentMessageToServer.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatPersistentMessageToServer.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatPutAvatarInRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatPutAvatarInRoom.h new file mode 100644 index 00000000..93b76f49 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatPutAvatarInRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatPutAvatarInRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatQueryRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatQueryRoom.h new file mode 100644 index 00000000..3819c9b6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatQueryRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatQueryRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatQueryRoomResults.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatQueryRoomResults.h new file mode 100644 index 00000000..9ca37460 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatQueryRoomResults.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatQueryRoomResults.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRemoveAvatarFromRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRemoveAvatarFromRoom.h new file mode 100644 index 00000000..a93fa807 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRemoveAvatarFromRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatRemoveAvatarFromRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRemoveFriend.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRemoveFriend.h new file mode 100644 index 00000000..1ec26dc6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRemoveFriend.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatRemoveFriend.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRemoveModeratorFromRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRemoveModeratorFromRoom.h new file mode 100644 index 00000000..5bb37802 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRemoveModeratorFromRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatRemoveModeratorFromRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRequestLog.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRequestLog.h new file mode 100644 index 00000000..f02577d7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRequestLog.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatRequestLog.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRequestPersistentMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRequestPersistentMessage.h new file mode 100644 index 00000000..b92d5728 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRequestPersistentMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatRequestPersistentMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRequestRoomList.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRequestRoomList.h new file mode 100644 index 00000000..13a47dff --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRequestRoomList.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatRequestRoomList.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRoomData.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRoomData.h new file mode 100644 index 00000000..4d65a223 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRoomData.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatRoomData.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRoomDataArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRoomDataArchive.h new file mode 100644 index 00000000..9626e910 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRoomDataArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatRoomDataArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRoomList.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRoomList.h new file mode 100644 index 00000000..ab0e73fa --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRoomList.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatRoomList.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRoomMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRoomMessage.h new file mode 100644 index 00000000..9ed1e9ab --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatRoomMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatRoomMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatSendToRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatSendToRoom.h new file mode 100644 index 00000000..2b45eb86 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatSendToRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatSendToRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatServerStatus.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatServerStatus.h new file mode 100644 index 00000000..84c5e5a2 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatServerStatus.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatServerStatus.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatSystemMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatSystemMessage.h new file mode 100644 index 00000000..442324ea --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatSystemMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatSystemMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatUnbanAvatarFromRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatUnbanAvatarFromRoom.h new file mode 100644 index 00000000..b4204fc5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatUnbanAvatarFromRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatUnbanAvatarFromRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatUninviteFromRoom.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatUninviteFromRoom.h new file mode 100644 index 00000000..c09b4528 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ChatUninviteFromRoom.h @@ -0,0 +1 @@ +#include "../../src/shared/chat/ChatUninviteFromRoom.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientCentralMessages.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientCentralMessages.h new file mode 100644 index 00000000..fa6e860b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientCentralMessages.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ClientCentralMessages.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientEffectMessages.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientEffectMessages.h new file mode 100644 index 00000000..2ec102bf --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientEffectMessages.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ClientEffectMessages.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientLoginMessages.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientLoginMessages.h new file mode 100644 index 00000000..caf974e0 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientLoginMessages.h @@ -0,0 +1 @@ +#include "../../src/shared/clientLoginServer/ClientLoginMessages.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientMfdStatusUpdateMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientMfdStatusUpdateMessage.h new file mode 100644 index 00000000..f53f3d6a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientMfdStatusUpdateMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ClientMfdStatusUpdateMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientNotificationBoxMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientNotificationBoxMessage.h new file mode 100644 index 00000000..9a2ddb62 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientNotificationBoxMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/common/ClientNotificationBoxMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientOpenContainerMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientOpenContainerMessage.h new file mode 100644 index 00000000..7c64b13c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientOpenContainerMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ClientOpenContainerMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientPermissionsMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientPermissionsMessage.h new file mode 100644 index 00000000..d31c2f7c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClientPermissionsMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ClientPermissionsMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CloseHolocronMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CloseHolocronMessage.h new file mode 100644 index 00000000..25dd04fb --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CloseHolocronMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/CloseHolocronMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClusterWideDataGetElementMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClusterWideDataGetElementMessage.h new file mode 100644 index 00000000..61c72c40 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClusterWideDataGetElementMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/common/ClusterWideDataGetElementMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClusterWideDataGetElementResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClusterWideDataGetElementResponseMessage.h new file mode 100644 index 00000000..622d960e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClusterWideDataGetElementResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/common/ClusterWideDataGetElementResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClusterWideDataReleaseLockMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClusterWideDataReleaseLockMessage.h new file mode 100644 index 00000000..155028c8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClusterWideDataReleaseLockMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/common/ClusterWideDataReleaseLockMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClusterWideDataRemoveElementMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClusterWideDataRemoveElementMessage.h new file mode 100644 index 00000000..9fbbcc00 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClusterWideDataRemoveElementMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/common/ClusterWideDataRemoveElementMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClusterWideDataUpdateDictionaryMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClusterWideDataUpdateDictionaryMessage.h new file mode 100644 index 00000000..b0a9ddbf --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ClusterWideDataUpdateDictionaryMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/common/ClusterWideDataUpdateDictionaryMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CommandChannelMessages.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CommandChannelMessages.h new file mode 100644 index 00000000..bfb17a1e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CommandChannelMessages.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/CommandChannelMessages.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ConnectPlayerMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ConnectPlayerMessage.h new file mode 100644 index 00000000..46f593d8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ConnectPlayerMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/ConnectPlayerMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ConnectPlayerResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ConnectPlayerResponseMessage.h new file mode 100644 index 00000000..cff9a9cb --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ConnectPlayerResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/ConnectPlayerResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ConsentResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ConsentResponseMessage.h new file mode 100644 index 00000000..1fb8b4c6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ConsentResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ConsentResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ConsoleChannelMessages.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ConsoleChannelMessages.h new file mode 100644 index 00000000..ae14c448 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ConsoleChannelMessages.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ConsoleChannelMessages.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ControllerMessageFactory.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ControllerMessageFactory.h new file mode 100644 index 00000000..c08ae352 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ControllerMessageFactory.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ControllerMessageFactory.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ControllerMessageMacros.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ControllerMessageMacros.h new file mode 100644 index 00000000..3d6fb5c7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ControllerMessageMacros.h @@ -0,0 +1,2 @@ +#include "../../src/shared/core/ControllerMessageMacros.h" + diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateAuctionMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateAuctionMessage.h new file mode 100644 index 00000000..bc71029c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateAuctionMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/CreateAuctionMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateAuctionResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateAuctionResponseMessage.h new file mode 100644 index 00000000..691545e7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateAuctionResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/CreateAuctionResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateClientPathMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateClientPathMessage.h new file mode 100644 index 00000000..da5d76e3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateClientPathMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/CreateClientPathMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateImmediateAuctionMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateImmediateAuctionMessage.h new file mode 100644 index 00000000..1441759e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateImmediateAuctionMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/CreateImmediateAuctionMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateMissileMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateMissileMessage.h new file mode 100644 index 00000000..812ac344 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateMissileMessage.h @@ -0,0 +1,2 @@ +#include "../../src/shared/clientGameServer/CreateMissileMessage.h" + diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateNebulaLightningMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateNebulaLightningMessage.h new file mode 100644 index 00000000..9baa30d1 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateNebulaLightningMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/CreateNebulaLightningMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateProjectileMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateProjectileMessage.h new file mode 100644 index 00000000..978a5010 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateProjectileMessage.h @@ -0,0 +1,2 @@ +#include "../../src/shared/clientGameServer/CreateProjectileMessage.h" + diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateTicketMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateTicketMessage.h new file mode 100644 index 00000000..2bd2a13e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateTicketMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/CreateTicketMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateTicketResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateTicketResponseMessage.h new file mode 100644 index 00000000..73e465aa --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CreateTicketResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/CreateTicketResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceCategory.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceCategory.h new file mode 100644 index 00000000..8a255039 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceCategory.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/CustomerServiceCategory.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceCategoryArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceCategoryArchive.h new file mode 100644 index 00000000..f58f180c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceCategoryArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/CustomerServiceCategoryArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceComment.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceComment.h new file mode 100644 index 00000000..4902258c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceComment.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/CustomerServiceComment.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceCommentArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceCommentArchive.h new file mode 100644 index 00000000..83e240cd --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceCommentArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/CustomerServiceCommentArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceSearchResult.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceSearchResult.h new file mode 100644 index 00000000..f2f81868 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceSearchResult.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/CustomerServiceSearchResult.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceSearchResultArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceSearchResultArchive.h new file mode 100644 index 00000000..86e1c729 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceSearchResultArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/CustomerServiceSearchResultArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceTicket.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceTicket.h new file mode 100644 index 00000000..554685d0 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceTicket.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/CustomerServiceTicket.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceTicketArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceTicketArchive.h new file mode 100644 index 00000000..deeb1b8d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/CustomerServiceTicketArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/CustomerServiceTicketArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DeleteCharacterMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DeleteCharacterMessage.h new file mode 100644 index 00000000..6b180203 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DeleteCharacterMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/DeleteCharacterMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DeleteCharacterReplyMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DeleteCharacterReplyMessage.h new file mode 100644 index 00000000..5a4254a7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DeleteCharacterReplyMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/DeleteCharacterReplyMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DeltasMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DeltasMessage.h new file mode 100644 index 00000000..33eee49a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DeltasMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/common/DeltasMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DestroyClientPathMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DestroyClientPathMessage.h new file mode 100644 index 00000000..10dcf735 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DestroyClientPathMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/DestroyClientPathMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DestroyShipComponentMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DestroyShipComponentMessage.h new file mode 100644 index 00000000..7f4e5c44 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DestroyShipComponentMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/DestroyShipComponentMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DestroyShipMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DestroyShipMessage.h new file mode 100644 index 00000000..ada184df --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DestroyShipMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/DestroyShipMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DisconnectPlayerMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DisconnectPlayerMessage.h new file mode 100644 index 00000000..b0e8e822 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DisconnectPlayerMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/DisconnectPlayerMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DisconnectPlayerResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DisconnectPlayerResponseMessage.h new file mode 100644 index 00000000..195aa235 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DisconnectPlayerResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/DisconnectPlayerResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DroidCommandProgrammingMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DroidCommandProgrammingMessage.h new file mode 100644 index 00000000..e39d6a32 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/DroidCommandProgrammingMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/DroidCommandProgrammingMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/EditAppearanceMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/EditAppearanceMessage.h new file mode 100644 index 00000000..725db3f7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/EditAppearanceMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/EditAppearanceMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/EditStatsMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/EditStatsMessage.h new file mode 100644 index 00000000..e8b00c1f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/EditStatsMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/EditStatsMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/EnterStructurePlacementModeMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/EnterStructurePlacementModeMessage.h new file mode 100644 index 00000000..419f27f1 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/EnterStructurePlacementModeMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/EnterStructurePlacementModeMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/EnterTicketPurchaseModeMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/EnterTicketPurchaseModeMessage.h new file mode 100644 index 00000000..d5fd1f5e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/EnterTicketPurchaseModeMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/EnterTicketPurchaseModeMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/EnvironmentalHitData.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/EnvironmentalHitData.h new file mode 100644 index 00000000..d3e12ac9 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/EnvironmentalHitData.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/EnvironmentalHitData.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ErrorMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ErrorMessage.h new file mode 100644 index 00000000..60102cf7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ErrorMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/common/ErrorMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ExpertiseRequestMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ExpertiseRequestMessage.h new file mode 100644 index 00000000..7aae3b7a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ExpertiseRequestMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ExpertiseRequestMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/FactionRequestMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/FactionRequestMessage.h new file mode 100644 index 00000000..57ba687e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/FactionRequestMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/FactionRequestMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/FactionResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/FactionResponseMessage.h new file mode 100644 index 00000000..b0233584 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/FactionResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/FactionResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/FirstSharedNetworkMessages.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/FirstSharedNetworkMessages.h new file mode 100644 index 00000000..cb172f8f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/FirstSharedNetworkMessages.h @@ -0,0 +1 @@ +#include "../../src/shared/core/FirstSharedNetworkMessages.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/FrameEndMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/FrameEndMessage.h new file mode 100644 index 00000000..5eb86340 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/FrameEndMessage.h @@ -0,0 +1,2 @@ +#include "../../src/shared/common/FrameEndMessage.h" + diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GalaxyLoopTimesResponse.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GalaxyLoopTimesResponse.h new file mode 100644 index 00000000..721d7fa5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GalaxyLoopTimesResponse.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/GalaxyLoopTimesResponse.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GameNetworkMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GameNetworkMessage.h new file mode 100644 index 00000000..7d09f727 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GameNetworkMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/common/GameNetworkMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GameServerStatus.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GameServerStatus.h new file mode 100644 index 00000000..7ba6a610 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GameServerStatus.h @@ -0,0 +1 @@ +#include "../../src/shared/planetWatch/GameServerStatus.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GenericValueTypeMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GenericValueTypeMessage.h new file mode 100644 index 00000000..63c583df --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GenericValueTypeMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/common/GenericValueTypeMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetArticleMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetArticleMessage.h new file mode 100644 index 00000000..a40e0299 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetArticleMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/GetArticleMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetArticleResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetArticleResponseMessage.h new file mode 100644 index 00000000..a417f027 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetArticleResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/GetArticleResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetAuctionDetails.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetAuctionDetails.h new file mode 100644 index 00000000..423a8f2e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetAuctionDetails.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/GetAuctionDetails.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetAuctionDetailsResponse.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetAuctionDetailsResponse.h new file mode 100644 index 00000000..f954e86a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetAuctionDetailsResponse.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/GetAuctionDetailsResponse.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetCommentsMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetCommentsMessage.h new file mode 100644 index 00000000..fdda704f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetCommentsMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/GetCommentsMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetCommentsResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetCommentsResponseMessage.h new file mode 100644 index 00000000..53b37662 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetCommentsResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/GetCommentsResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetMapLocationsMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetMapLocationsMessage.h new file mode 100644 index 00000000..98e96c0f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetMapLocationsMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/GetMapLocationsMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetMapLocationsResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetMapLocationsResponseMessage.h new file mode 100644 index 00000000..ed1d2618 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetMapLocationsResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/GetMapLocationsResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetTicketsMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetTicketsMessage.h new file mode 100644 index 00000000..e6984928 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetTicketsMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/GetTicketsMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetTicketsResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetTicketsResponseMessage.h new file mode 100644 index 00000000..0e4080fa --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GetTicketsResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/GetTicketsResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GrantCommand.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GrantCommand.h new file mode 100644 index 00000000..e92f9f74 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GrantCommand.h @@ -0,0 +1 @@ +#include "../../src/shared/GrantCommand.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GrantSkill.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GrantSkill.h new file mode 100644 index 00000000..68582a87 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GrantSkill.h @@ -0,0 +1 @@ +#include "../../src/shared/GrantSkill.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GuildRequestMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GuildRequestMessage.h new file mode 100644 index 00000000..32a2cce3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GuildRequestMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/GuildRequestMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GuildResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GuildResponseMessage.h new file mode 100644 index 00000000..2e036e22 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/GuildResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/GuildResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/HeartBeat.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/HeartBeat.h new file mode 100644 index 00000000..48603666 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/HeartBeat.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/HeartBeat.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/HyperspaceMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/HyperspaceMessage.h new file mode 100644 index 00000000..373429f8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/HyperspaceMessage.h @@ -0,0 +1,2 @@ +#include "../../src/shared/clientGameServer/HyperspaceMessage.h" + diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ImageDesignChangeMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ImageDesignChangeMessage.h new file mode 100644 index 00000000..765cc842 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ImageDesignChangeMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ImageDesignChangeMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ImageDesignStartMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ImageDesignStartMessage.h new file mode 100644 index 00000000..c1d7b1f3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ImageDesignStartMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ImageDesignStartMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/IncubatorCommitMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/IncubatorCommitMessage.h new file mode 100644 index 00000000..ef04414d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/IncubatorCommitMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/IncubatorCommitMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/IncubatorStartMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/IncubatorStartMessage.h new file mode 100644 index 00000000..00f63b4d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/IncubatorStartMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/IncubatorStartMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/IsVendorOwnerMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/IsVendorOwnerMessage.h new file mode 100644 index 00000000..75f17400 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/IsVendorOwnerMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/IsVendorOwnerMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/IsVendorOwnerResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/IsVendorOwnerResponseMessage.h new file mode 100644 index 00000000..d5095607 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/IsVendorOwnerResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/IsVendorOwnerResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/LogMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/LogMessage.h new file mode 100644 index 00000000..e5e8bbe3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/LogMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/LogMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/LoginClusterStatus.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/LoginClusterStatus.h new file mode 100644 index 00000000..4d3077b2 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/LoginClusterStatus.h @@ -0,0 +1 @@ +#include "../../src/shared/clientLoginServer/LoginClusterStatus.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/LoginClusterStatusEx.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/LoginClusterStatusEx.h new file mode 100644 index 00000000..8941dce9 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/LoginClusterStatusEx.h @@ -0,0 +1 @@ +#include "../../src/shared/clientLoginServer/LoginClusterStatusEx.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/LoginEnumCluster.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/LoginEnumCluster.h new file mode 100644 index 00000000..472507d2 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/LoginEnumCluster.h @@ -0,0 +1 @@ +#include "../../src/shared/clientLoginServer/LoginEnumCluster.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/LogoutMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/LogoutMessage.h new file mode 100644 index 00000000..5137b296 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/LogoutMessage.h @@ -0,0 +1,2 @@ +#include "../../src/shared/clientGameServer/LogoutMessage.h" + diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MapLocation.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MapLocation.h new file mode 100644 index 00000000..a4c103cf --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MapLocation.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MapLocation.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MapLocationArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MapLocationArchive.h new file mode 100644 index 00000000..26b03605 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MapLocationArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MapLocationArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueChangeRoleIconChoice.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueChangeRoleIconChoice.h new file mode 100644 index 00000000..88eda51a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueChangeRoleIconChoice.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueChangeRoleIconChoice.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCombatCommand.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCombatCommand.h new file mode 100644 index 00000000..23679c54 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCombatCommand.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueCombatCommand.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCombatSpam.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCombatSpam.h new file mode 100644 index 00000000..9be9abe2 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCombatSpam.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueCombatSpam.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCombatSpamArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCombatSpamArchive.h new file mode 100644 index 00000000..a18f3ba1 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCombatSpamArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueCombatSpamArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCommandQueueEnqueue.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCommandQueueEnqueue.h new file mode 100644 index 00000000..6da0e4b8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCommandQueueEnqueue.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueCommandQueueEnqueue.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCommandQueueRemove.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCommandQueueRemove.h new file mode 100644 index 00000000..84feae41 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCommandQueueRemove.h @@ -0,0 +1,2 @@ +#include "../../src/shared/clientGameServer/MessageQueueCommandQueueRemove.h" + diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCommandTimer.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCommandTimer.h new file mode 100644 index 00000000..f8e12670 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCommandTimer.h @@ -0,0 +1 @@ +#include "../../src/shared/common/MessageQueueCommandTimer.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftCustomization.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftCustomization.h new file mode 100644 index 00000000..ee66785e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftCustomization.h @@ -0,0 +1,2 @@ +#include "../../src/shared/clientGameServer/MessageQueueCraftCustomization.h" + diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftEmptySlot.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftEmptySlot.h new file mode 100644 index 00000000..2e1cd070 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftEmptySlot.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueCraftEmptySlot.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftExperiment.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftExperiment.h new file mode 100644 index 00000000..cb07f0fa --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftExperiment.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueCraftExperiment.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftFillSlot.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftFillSlot.h new file mode 100644 index 00000000..d5886252 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftFillSlot.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueCraftFillSlot.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftIngredients.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftIngredients.h new file mode 100644 index 00000000..2a39427b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftIngredients.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueCraftIngredients.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftRequestSession.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftRequestSession.h new file mode 100644 index 00000000..ca29eac0 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftRequestSession.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueCraftRequestSession.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftSelectSchematic.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftSelectSchematic.h new file mode 100644 index 00000000..2f7702f4 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCraftSelectSchematic.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueCraftSelectSchematic.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCreateSaga.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCreateSaga.h new file mode 100644 index 00000000..bc739f21 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCreateSaga.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueCreateSaga.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCyberneticsChangeRequest.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCyberneticsChangeRequest.h new file mode 100644 index 00000000..8226d0a3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCyberneticsChangeRequest.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueCyberneticsChangeRequest.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCyberneticsOpen.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCyberneticsOpen.h new file mode 100644 index 00000000..0783a7d5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueCyberneticsOpen.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueCyberneticsOpen.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDataTransform.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDataTransform.h new file mode 100644 index 00000000..e2a40a43 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDataTransform.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueDataTransform.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDataTransformWithParent.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDataTransformWithParent.h new file mode 100644 index 00000000..8cf8f612 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDataTransformWithParent.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueDataTransformWithParent.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSchematics.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSchematics.h new file mode 100644 index 00000000..9e88f57a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSchematics.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueDraftSchematics.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSchematicsData.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSchematicsData.h new file mode 100644 index 00000000..840ea3b5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSchematicsData.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueDraftSchematicsData.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlots.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlots.h new file mode 100644 index 00000000..83de769d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlots.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueDraftSlots.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlotsData.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlotsData.h new file mode 100644 index 00000000..98732d82 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlotsData.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueDraftSlotsData.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlotsDataArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlotsDataArchive.h new file mode 100644 index 00000000..1279f43b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlotsDataArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueDraftSlotsDataArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlotsDataOption.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlotsDataOption.h new file mode 100644 index 00000000..230096e8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlotsDataOption.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueDraftSlotsDataOption.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlotsDataOptionArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlotsDataOptionArchive.h new file mode 100644 index 00000000..3e8f2e57 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlotsDataOptionArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueDraftSlotsDataOptionArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlotsQueryResponse.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlotsQueryResponse.h new file mode 100644 index 00000000..4ff38040 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueDraftSlotsQueryResponse.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueDraftSlotsQueryResponse.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGeneric.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGeneric.h new file mode 100644 index 00000000..d0bacb00 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGeneric.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueGeneric.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericIntResponse.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericIntResponse.h new file mode 100644 index 00000000..8b97da4c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericIntResponse.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueGenericIntResponse.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericIntResponseArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericIntResponseArchive.h new file mode 100644 index 00000000..298693a1 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericIntResponseArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueGenericIntResponseArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericResponse.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericResponse.h new file mode 100644 index 00000000..62074e16 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericResponse.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueGenericResponse.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericResponseArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericResponseArchive.h new file mode 100644 index 00000000..11f6aea0 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericResponseArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueGenericResponseArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericString.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericString.h new file mode 100644 index 00000000..adfd4373 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericString.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueGenericString.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericValueType.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericValueType.h new file mode 100644 index 00000000..11fdc8f7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueGenericValueType.h @@ -0,0 +1 @@ +#include "../../src/shared/common/MessageQueueGenericValueType.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueHarvesterResourceData.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueHarvesterResourceData.h new file mode 100644 index 00000000..72f1dc81 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueHarvesterResourceData.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueHarvesterResourceData.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionCreateRequest.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionCreateRequest.h new file mode 100644 index 00000000..22a83758 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionCreateRequest.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionCreateRequest.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionCreateRequestData.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionCreateRequestData.h new file mode 100644 index 00000000..887eb2ce --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionCreateRequestData.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionCreateRequestData.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionCreateRequestDataArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionCreateRequestDataArchive.h new file mode 100644 index 00000000..ca3c4024 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionCreateRequestDataArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionCreateRequestDataArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionDetailsRequest.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionDetailsRequest.h new file mode 100644 index 00000000..d77cd1d5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionDetailsRequest.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionDetailsRequest.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionDetailsResponse.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionDetailsResponse.h new file mode 100644 index 00000000..8973837f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionDetailsResponse.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionDetailsResponse.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionDetailsResponseData.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionDetailsResponseData.h new file mode 100644 index 00000000..14eeb277 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionDetailsResponseData.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionDetailsResponseData.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionDetailsResponseDataArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionDetailsResponseDataArchive.h new file mode 100644 index 00000000..a33a4eb5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionDetailsResponseDataArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionDetailsResponseDataArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionGenericRequest.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionGenericRequest.h new file mode 100644 index 00000000..df8814d9 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionGenericRequest.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionGenericRequest.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionGenericRequestArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionGenericRequestArchive.h new file mode 100644 index 00000000..2d586026 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionGenericRequestArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionGenericRequestArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionGenericResponse.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionGenericResponse.h new file mode 100644 index 00000000..7cc9c158 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionGenericResponse.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionGenericResponse.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionGenericResponseArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionGenericResponseArchive.h new file mode 100644 index 00000000..9105d102 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionGenericResponseArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionGenericResponseArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionListRequest.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionListRequest.h new file mode 100644 index 00000000..8943ed99 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionListRequest.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionListRequest.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionListResponse.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionListResponse.h new file mode 100644 index 00000000..84c552fd --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionListResponse.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionListResponse.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionListResponseArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionListResponseArchive.h new file mode 100644 index 00000000..d464497f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionListResponseArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionListResponseArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionListResponseData.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionListResponseData.h new file mode 100644 index 00000000..db38527d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionListResponseData.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionListResponseData.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionListResponseDataArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionListResponseDataArchive.h new file mode 100644 index 00000000..3cc46cf9 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueMissionListResponseDataArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueMissionListResponseDataArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueNetworkId.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueNetworkId.h new file mode 100644 index 00000000..9ae22066 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueNetworkId.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueNetworkId.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueNetworkIdAndTransform.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueNetworkIdAndTransform.h new file mode 100644 index 00000000..349507bd --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueNetworkIdAndTransform.h @@ -0,0 +1 @@ +#include "../../src/shared/common/MessageQueueNetworkIdAndTransform.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueNetworkIdPair.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueNetworkIdPair.h new file mode 100644 index 00000000..e5120ccc --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueNetworkIdPair.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueNetworkIdPair.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueNpcConversationMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueNpcConversationMessage.h new file mode 100644 index 00000000..4f145b49 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueNpcConversationMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueNpcConversationMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueObjectMenuRequest.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueObjectMenuRequest.h new file mode 100644 index 00000000..1e3b86a1 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueObjectMenuRequest.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueObjectMenuRequest.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueOpponentInfo.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueOpponentInfo.h new file mode 100644 index 00000000..044884b3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueOpponentInfo.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueOpponentInfo.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueuePosture.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueuePosture.h new file mode 100644 index 00000000..81799f73 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueuePosture.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueuePosture.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueuePushCreature.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueuePushCreature.h new file mode 100644 index 00000000..b7a3d3fb --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueuePushCreature.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueuePushCreature.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueQuestTaskCounterMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueQuestTaskCounterMessage.h new file mode 100644 index 00000000..6015903b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueQuestTaskCounterMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueQuestTaskCounterMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueQuestTaskLocationMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueQuestTaskLocationMessage.h new file mode 100644 index 00000000..7b837f41 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueQuestTaskLocationMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueQuestTaskLocationMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueQuestTaskTimerMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueQuestTaskTimerMessage.h new file mode 100644 index 00000000..0c0cbe2f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueQuestTaskTimerMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueQuestTaskTimerMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueResourceEmptyHopper.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueResourceEmptyHopper.h new file mode 100644 index 00000000..36b3b7d3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueResourceEmptyHopper.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueResourceEmptyHopper.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueResourceEmptyHopperArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueResourceEmptyHopperArchive.h new file mode 100644 index 00000000..79511704 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueResourceEmptyHopperArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueResourceEmptyHopperArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueResourceWeights.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueResourceWeights.h new file mode 100644 index 00000000..66b42fe7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueResourceWeights.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueResourceWeights.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSecureTrade.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSecureTrade.h new file mode 100644 index 00000000..3c6452cd --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSecureTrade.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueSecureTrade.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSelectCurrentWorkingSkill.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSelectCurrentWorkingSkill.h new file mode 100644 index 00000000..98f3bcae --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSelectCurrentWorkingSkill.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueSelectCurrentWorkingSkill.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSelectProfessionTemplate.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSelectProfessionTemplate.h new file mode 100644 index 00000000..ea477194 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSelectProfessionTemplate.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueSelectProfessionTemplate.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueShipHit.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueShipHit.h new file mode 100644 index 00000000..3f22321b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueShipHit.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueShipHit.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueShowCombatText.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueShowCombatText.h new file mode 100644 index 00000000..24750954 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueShowCombatText.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueShowCombatText.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueShowCombatTextArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueShowCombatTextArchive.h new file mode 100644 index 00000000..023663ef --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueShowCombatTextArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueShowCombatTextArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueShowFlyText.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueShowFlyText.h new file mode 100644 index 00000000..f2fa2d9a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueShowFlyText.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueShowFlyText.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueShowFlyTextArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueShowFlyTextArchive.h new file mode 100644 index 00000000..80d079dd --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueShowFlyTextArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueShowFlyTextArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSitOnObject.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSitOnObject.h new file mode 100644 index 00000000..44d8b756 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSitOnObject.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueSitOnObject.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSitOnObjectArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSitOnObjectArchive.h new file mode 100644 index 00000000..be7a9e8d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSitOnObjectArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueSitOnObjectArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSlowDownEffect.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSlowDownEffect.h new file mode 100644 index 00000000..8a69d1e6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSlowDownEffect.h @@ -0,0 +1,2 @@ +#include "../../src/shared/clientGameServer/MessageQueueSlowDownEffect.h" + diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSocial.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSocial.h new file mode 100644 index 00000000..15dba5fa --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSocial.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueSocial.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSocialArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSocialArchive.h new file mode 100644 index 00000000..4aec9e38 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSocialArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueSocialArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSpaceMiningSellResource.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSpaceMiningSellResource.h new file mode 100644 index 00000000..bafdf11c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSpaceMiningSellResource.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueSpaceMiningSellResource.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSpatialChat.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSpatialChat.h new file mode 100644 index 00000000..c2037340 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSpatialChat.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueSpatialChat.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSpatialChatArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSpatialChatArchive.h new file mode 100644 index 00000000..7c7c7fa7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueSpatialChatArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueSpatialChatArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueStartNpcConversation.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueStartNpcConversation.h new file mode 100644 index 00000000..768be407 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueStartNpcConversation.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueStartNpcConversation.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueStopNpcConversation.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueStopNpcConversation.h new file mode 100644 index 00000000..47ddac8d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueStopNpcConversation.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueStopNpcConversation.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueString.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueString.h new file mode 100644 index 00000000..3b16d7a2 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueString.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueString.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueStringList.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueStringList.h new file mode 100644 index 00000000..6f92bedf --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueStringList.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueStringList.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueTeleportAck.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueTeleportAck.h new file mode 100644 index 00000000..737158e7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueTeleportAck.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageQueueTeleportAck.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueUpdateShipOnCollision.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueUpdateShipOnCollision.h new file mode 100644 index 00000000..6dd28211 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageQueueUpdateShipOnCollision.h @@ -0,0 +1 @@ +#include "../../src/shared/common/MessageQueueUpdateShipOnCollision.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageRegionListCircleResponse.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageRegionListCircleResponse.h new file mode 100644 index 00000000..c87fe44e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageRegionListCircleResponse.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageRegionListCircleResponse.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageRegionListRectResponse.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageRegionListRectResponse.h new file mode 100644 index 00000000..d4f7feba --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageRegionListRectResponse.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageRegionListRectResponse.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageRegionListRequest.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageRegionListRequest.h new file mode 100644 index 00000000..0cf27608 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageRegionListRequest.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageRegionListRectRequest.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageRegionListResponse.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageRegionListResponse.h new file mode 100644 index 00000000..d1a8c086 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/MessageRegionListResponse.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/MessageRegionListResponse.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NameErrors.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NameErrors.h new file mode 100644 index 00000000..aa9f73f3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NameErrors.h @@ -0,0 +1 @@ +#include "../../src/shared/NameErrors.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NebulaLightningData.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NebulaLightningData.h new file mode 100644 index 00000000..cf8ca458 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NebulaLightningData.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/NebulaLightningData.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NebulaLightningHitData.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NebulaLightningHitData.h new file mode 100644 index 00000000..076da195 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NebulaLightningHitData.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/NebulaLightningHitData.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NetworkMessageFactory.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NetworkMessageFactory.h new file mode 100644 index 00000000..c40d8023 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NetworkMessageFactory.h @@ -0,0 +1 @@ +#include "../../src/shared/NetworkMessageFactory.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NetworkStringIds.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NetworkStringIds.h new file mode 100644 index 00000000..09cf8781 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NetworkStringIds.h @@ -0,0 +1 @@ +#include "../../src/shared/core/NetworkStringIds.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewTicketActivityMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewTicketActivityMessage.h new file mode 100644 index 00000000..e293e779 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewTicketActivityMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/NewTicketActivityMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewTicketActivityResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewTicketActivityResponseMessage.h new file mode 100644 index 00000000..fb2893a7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewTicketActivityResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/NewTicketActivityResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialEnableHudElement.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialEnableHudElement.h new file mode 100644 index 00000000..92af6060 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialEnableHudElement.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/NewbieTutorialEnableHudElement.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialEnableInterfaceElement.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialEnableInterfaceElement.h new file mode 100644 index 00000000..6f074229 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialEnableInterfaceElement.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/NewbieTutorialEnableInterfaceElement.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialHighlightUIElement.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialHighlightUIElement.h new file mode 100644 index 00000000..1b9bc04c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialHighlightUIElement.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/NewbieTutorialHighlightUIElement.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialRequest.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialRequest.h new file mode 100644 index 00000000..0e43673f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialRequest.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/NewbieTutorialRequest.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialResponse.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialResponse.h new file mode 100644 index 00000000..d97a2d23 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialResponse.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/NewbieTutorialResponse.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialSetToolbarElement.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialSetToolbarElement.h new file mode 100644 index 00000000..c8f8b5fc --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/NewbieTutorialSetToolbarElement.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/NewbieTutorialSetToolbarElement.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ObjectChannelMessages.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ObjectChannelMessages.h new file mode 100644 index 00000000..cebd947c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ObjectChannelMessages.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ObjectChannelMessages.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ObjectMenuRequestData.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ObjectMenuRequestData.h new file mode 100644 index 00000000..124deb16 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ObjectMenuRequestData.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ObjectMenuRequestData.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ObjectMenuRequestDataArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ObjectMenuRequestDataArchive.h new file mode 100644 index 00000000..b46fb3cc --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ObjectMenuRequestDataArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ObjectMenuRequestDataArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ObjectMenuSelectMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ObjectMenuSelectMessage.h new file mode 100644 index 00000000..5b783afc --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ObjectMenuSelectMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ObjectMenuSelectMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/OpenHolocronToPageMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/OpenHolocronToPageMessage.h new file mode 100644 index 00000000..c8393662 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/OpenHolocronToPageMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/OpenHolocronToPageMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ParametersMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ParametersMessage.h new file mode 100644 index 00000000..89fce53a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ParametersMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ParametersMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlanetNodeStatusMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlanetNodeStatusMessage.h new file mode 100644 index 00000000..c15c7570 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlanetNodeStatusMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/planetWatch/PlanetNodeStatusMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlanetObjectStatusMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlanetObjectStatusMessage.h new file mode 100644 index 00000000..30dce391 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlanetObjectStatusMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/planetWatch/PlanetObjectStatusMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlanetTravelPointListRequest.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlanetTravelPointListRequest.h new file mode 100644 index 00000000..0782d0b7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlanetTravelPointListRequest.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/PlanetTravelPointListRequest.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlanetTravelPointListResponse.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlanetTravelPointListResponse.h new file mode 100644 index 00000000..315e1ce1 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlanetTravelPointListResponse.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/PlanetTravelPointListResponse.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlayCutSceneMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlayCutSceneMessage.h new file mode 100644 index 00000000..01b086f7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlayCutSceneMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/PlayCutSceneMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlayMusicMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlayMusicMessage.h new file mode 100644 index 00000000..5a6d2add --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlayMusicMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/PlayMusicMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlayerMoneyRequest.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlayerMoneyRequest.h new file mode 100644 index 00000000..958a24ea --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlayerMoneyRequest.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/PlayerMoneyRequest.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlayerMoneyResponse.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlayerMoneyResponse.h new file mode 100644 index 00000000..4c41fa69 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PlayerMoneyResponse.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/PlayerMoneyResponse.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PopulateMissionBrowserMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PopulateMissionBrowserMessage.h new file mode 100644 index 00000000..ee093022 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/PopulateMissionBrowserMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/PopulateMissionBrowserMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RequestCategoriesMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RequestCategoriesMessage.h new file mode 100644 index 00000000..cb9aff26 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RequestCategoriesMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/RequestCategoriesMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RequestCategoriesResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RequestCategoriesResponseMessage.h new file mode 100644 index 00000000..1f00880e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RequestCategoriesResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/RequestCategoriesResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RequestGalaxyLoopTimes.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RequestGalaxyLoopTimes.h new file mode 100644 index 00000000..c1bee5ef --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RequestGalaxyLoopTimes.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/RequestGalaxyLoopTimes.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ResourceHarvesterActivatePageMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ResourceHarvesterActivatePageMessage.h new file mode 100644 index 00000000..dbbb68e4 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ResourceHarvesterActivatePageMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ResourceHarvesterActivatePageMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RetrieveAuctionItemMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RetrieveAuctionItemMessage.h new file mode 100644 index 00000000..cdb28e97 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RetrieveAuctionItemMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/RetrieveAuctionItemMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RetrieveAuctionItemResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RetrieveAuctionItemResponseMessage.h new file mode 100644 index 00000000..f19ebb34 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RetrieveAuctionItemResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/RetrieveAuctionItemResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RevokeCommand.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RevokeCommand.h new file mode 100644 index 00000000..91c0dd7c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RevokeCommand.h @@ -0,0 +1 @@ +#include "../../src/shared/RevokeCommand.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RevokeSkill.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RevokeSkill.h new file mode 100644 index 00000000..aa315758 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/RevokeSkill.h @@ -0,0 +1 @@ +#include "../../src/shared/RevokeSkill.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SceneChannelMessages.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SceneChannelMessages.h new file mode 100644 index 00000000..dfac33b0 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SceneChannelMessages.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/SceneChannelMessages.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SearchKnowledgeBaseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SearchKnowledgeBaseMessage.h new file mode 100644 index 00000000..3928e761 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SearchKnowledgeBaseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/SearchKnowledgeBaseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SearchKnowledgeBaseResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SearchKnowledgeBaseResponseMessage.h new file mode 100644 index 00000000..46807537 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SearchKnowledgeBaseResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/SearchKnowledgeBaseResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SecureTradeMessages.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SecureTradeMessages.h new file mode 100644 index 00000000..f524014a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SecureTradeMessages.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/SecureTradeMessages.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ServerInfo.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ServerInfo.h new file mode 100644 index 00000000..f3f02030 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ServerInfo.h @@ -0,0 +1 @@ +#include "../../src/shared/planetWatch/ServerInfo.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ServerInfoArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ServerInfoArchive.h new file mode 100644 index 00000000..fd49053c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ServerInfoArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/planetWatch/ServerInfoArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ServerTimeMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ServerTimeMessage.h new file mode 100644 index 00000000..9f7a6b96 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ServerTimeMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ServerTimeMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ServerUserInterfaceMessages.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ServerUserInterfaceMessages.h new file mode 100644 index 00000000..52037fb5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ServerUserInterfaceMessages.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ServerUserInterfaceMessages.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ServerWeatherMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ServerWeatherMessage.h new file mode 100644 index 00000000..34760c05 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ServerWeatherMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ServerWeatherMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SetTransformMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SetTransformMessage.h new file mode 100644 index 00000000..05846f9d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SetTransformMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/common/SetTransformMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SetupSharedNetworkMessages.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SetupSharedNetworkMessages.h new file mode 100644 index 00000000..498f3be6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SetupSharedNetworkMessages.h @@ -0,0 +1 @@ +#include "../../src/shared/core/SetupSharedNetworkMessages.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ShipDamageMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ShipDamageMessage.h new file mode 100644 index 00000000..7d6271c8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ShipDamageMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ShipDamageMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ShipDamageMessageArchive.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ShipDamageMessageArchive.h new file mode 100644 index 00000000..96091c5a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ShipDamageMessageArchive.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ShipDamageMessageArchive.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ShipUpdateTransformCollisionMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ShipUpdateTransformCollisionMessage.h new file mode 100644 index 00000000..a0b941e2 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ShipUpdateTransformCollisionMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/ShipUpdateTransformCollisionMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ShipUpdateTransformMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ShipUpdateTransformMessage.h new file mode 100644 index 00000000..aafebb2d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/ShipUpdateTransformMessage.h @@ -0,0 +1,2 @@ +#include "../../src/shared/clientGameServer/ShipUpdateTransformMessage.h" + diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SlowDownEffectMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SlowDownEffectMessage.h new file mode 100644 index 00000000..40634320 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SlowDownEffectMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/SlowDownEffectMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/StatMigrationTargetsMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/StatMigrationTargetsMessage.h new file mode 100644 index 00000000..12b8496c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/StatMigrationTargetsMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/StatMigrationTargetsMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/StomachRequestMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/StomachRequestMessage.h new file mode 100644 index 00000000..668c723c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/StomachRequestMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/StomachRequestMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SuiCreatePageMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SuiCreatePageMessage.h new file mode 100644 index 00000000..159cc894 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SuiCreatePageMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/SuiCreatePageMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SuiEventNotification.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SuiEventNotification.h new file mode 100644 index 00000000..9bda9ff7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SuiEventNotification.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/SuiEventNotification.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SuiUpdatePageMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SuiUpdatePageMessage.h new file mode 100644 index 00000000..bd81d851 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/SuiUpdatePageMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/SuiUpdatePageMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdateCellPermissionMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdateCellPermissionMessage.h new file mode 100644 index 00000000..c38fff3c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdateCellPermissionMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/UpdateCellPermissionMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdateContainmentMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdateContainmentMessage.h new file mode 100644 index 00000000..d306b699 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdateContainmentMessage.h @@ -0,0 +1,2 @@ +#include "../../src/shared/clientGameServer/UpdateContainmentMessage.h" + diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdateMissileMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdateMissileMessage.h new file mode 100644 index 00000000..0ddccfa5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdateMissileMessage.h @@ -0,0 +1,2 @@ +#include "../../src/shared/clientGameServer/UpdateMissileMessage.h" + diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdatePostureMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdatePostureMessage.h new file mode 100644 index 00000000..9152d5e3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdatePostureMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/UpdatePostureMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdatePvpStatusMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdatePvpStatusMessage.h new file mode 100644 index 00000000..0f06d559 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdatePvpStatusMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/UpdatePvpStatusMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdateTransformMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdateTransformMessage.h new file mode 100644 index 00000000..55f15f59 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdateTransformMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/UpdateTransformMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdateTransformWithParentMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdateTransformWithParentMessage.h new file mode 100644 index 00000000..aa516706 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/UpdateTransformWithParentMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/UpdateTransformWithParentMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/VerifyPlayerNameMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/VerifyPlayerNameMessage.h new file mode 100644 index 00000000..23106339 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/VerifyPlayerNameMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/VerifyPlayerNameMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/VerifyPlayerNameResponseMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/VerifyPlayerNameResponseMessage.h new file mode 100644 index 00000000..a6b69467 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/VerifyPlayerNameResponseMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/customerService/VerifyPlayerNameResponseMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/VoiceChatChannelInfo.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/VoiceChatChannelInfo.h new file mode 100644 index 00000000..6fb17006 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/VoiceChatChannelInfo.h @@ -0,0 +1 @@ +#include "../../src/shared/voicechat/VoiceChatChannelInfo.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/VoiceChatMiscMessages.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/VoiceChatMiscMessages.h new file mode 100644 index 00000000..f5c260ea --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/VoiceChatMiscMessages.h @@ -0,0 +1 @@ +#include "../../src/shared/voicechat/VoiceChatMiscMessages.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/VoiceChatOnGetAccount.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/VoiceChatOnGetAccount.h new file mode 100644 index 00000000..1e58a339 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/VoiceChatOnGetAccount.h @@ -0,0 +1 @@ +#include "../../src/shared/voicechat/VoiceChatOnGetAccount.h" diff --git a/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/WhoListMessage.h b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/WhoListMessage.h new file mode 100644 index 00000000..403de7fc --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/include/public/sharedNetworkMessages/WhoListMessage.h @@ -0,0 +1 @@ +#include "../../src/shared/clientGameServer/WhoListMessage.h" diff --git a/engine/shared/library/sharedNetworkMessages/src/CMakeLists.txt b/engine/shared/library/sharedNetworkMessages/src/CMakeLists.txt new file mode 100644 index 00000000..9edd7073 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/CMakeLists.txt @@ -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} +) diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/GrantCommand.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/GrantCommand.cpp new file mode 100644 index 00000000..07343409 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/GrantCommand.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/GrantCommand.h b/engine/shared/library/sharedNetworkMessages/src/shared/GrantCommand.h new file mode 100644 index 00000000..9a24d53b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/GrantCommand.h @@ -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 commandName; +}; + +//----------------------------------------------------------------------- + +inline const std::string & GrantCommand::getCommandName() const +{ + return commandName.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_GrantCommand_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/GrantSkill.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/GrantSkill.cpp new file mode 100644 index 00000000..bb9c09e6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/GrantSkill.cpp @@ -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 & 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() +{ +} + + +//----------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/GrantSkill.h b/engine/shared/library/sharedNetworkMessages/src/shared/GrantSkill.h new file mode 100644 index 00000000..d7e57f87 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/GrantSkill.h @@ -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 & commandsProvided); + GrantSkill(Archive::ReadIterator & source); + ~GrantSkill(); + + const std::string & getCategory () const; + const std::vector & getCommandsProvided () const; + const std::string & getDescription () const; + const std::string & getName () const; + const std::string & getDiscipline () const; + +private: + Archive::AutoVariable category; + Archive::AutoArray commandsProvided; + Archive::AutoVariable description; + Archive::AutoVariable name; + Archive::AutoVariable discipline; +}; + +//----------------------------------------------------------------------- + +inline const std::string & GrantSkill::getCategory() const +{ + return category.get(); +} + +//----------------------------------------------------------------------- + +inline const std::vector & 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 + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/LogMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/LogMessage.cpp new file mode 100644 index 00000000..d8f6d208 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/LogMessage.cpp @@ -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; +} + +// ====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/LogMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/LogMessage.h new file mode 100644 index 00000000..b3dbd0bb --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/LogMessage.h @@ -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 m_timestamp; + Archive::AutoVariable m_procId; + Archive::AutoVariable m_channel; + Archive::AutoVariable m_text; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/NameErrors.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/NameErrors.cpp new file mode 100644 index 00000000..7e293910 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/NameErrors.cpp @@ -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"); +}; + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/NameErrors.h b/engine/shared/library/sharedNetworkMessages/src/shared/NameErrors.h new file mode 100644 index 00000000..65fde6db --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/NameErrors.h @@ -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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/NetworkMessageFactory.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/NetworkMessageFactory.cpp new file mode 100644 index 00000000..e46f99bc --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/NetworkMessageFactory.cpp @@ -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 ids; + + // find the string in the static map of string/id's. + std::map::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::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::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::const_iterator f = messageMakers.find(messageType); + if(f != messageMakers.end()) + { + ri = source; + result = (*f).second(ri); + } + return result; +} + +//----------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/NetworkMessageFactory.h b/engine/shared/library/sharedNetworkMessages/src/shared/NetworkMessageFactory.h new file mode 100644 index 00000000..d64f5ae6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/NetworkMessageFactory.h @@ -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 +#include "sharedNetwork/Connection.h" +#include "sharedMessageDispatch/Transceiver.h" +#include "Singleton/Singleton.h" + +class GameNetworkMessage; +class GameConnectionCallback; +class TcpClient; + +template + 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 +{ +public: + ~NetworkMessageFactory(); + + void dispatchMessage(GameConnectionCallback * source, Archive::ReadIterator &); + + GameNetworkMessage * makeMessage(Archive::ReadIterator & bs); + +protected: + friend struct NetworkMessageMaker; + friend class Singleton; + NetworkMessageFactory(); + void registerMaker(unsigned long int, GameNetworkMessage *(*)(Archive::ReadIterator &), const DispatchFunctorBase *); + +private: + NetworkMessageFactory & operator = (const NetworkMessageFactory & rhs); + NetworkMessageFactory(const NetworkMessageFactory & source); + +private: + std::map messageMakers; + std::map 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 +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 + void listenForMessage(MessageDispatch::Callback & cb, ObjectType & object, void (ObjectType::*callback)(MessageType) ) + { + unsigned long messageId = GetMessageId(); + MessageDispatch::Transceiver * t = static_cast *>(getTransceiver(messageId)); + if(!t) + { + t = new MessageDispatch::Transceiver; + 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 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 + from the source GameConnectionCallback object or callbacks listening + anonymously will receive the message. +*/ + + +template +struct DispatchFunctor : public DispatchFunctorBase +{ + void dispatch(GameConnectionCallback * connection, GameNetworkMessage & base) const + { + MessageType & message = static_cast(base); + NetworkMessage m(*connection, message); + unsigned long typeId = GetMessageId(); + MessageDispatch::Transceiver &> * t = static_cast &> *>(connection->getTransceiver(typeId)); + if(!t) + { + t = new MessageDispatch::Transceiver &>; + 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() \ + { \ + static const unsigned long id = GetNewRuntimeMessageId(#x); \ + return id; \ + } \ + static const DispatchFunctor dispatch##x; \ + static const NetworkMessageMaker maker##x(MessageDispatch::MessageBase::makeMessageTypeFromString(#x), make##x, &dispatch##x); + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_NetworkMessageFactory_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/RevokeCommand.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/RevokeCommand.cpp new file mode 100644 index 00000000..08598082 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/RevokeCommand.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/RevokeCommand.h b/engine/shared/library/sharedNetworkMessages/src/shared/RevokeCommand.h new file mode 100644 index 00000000..1c35795c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/RevokeCommand.h @@ -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 commandName; + +}; + +//----------------------------------------------------------------------- + +inline const std::string & RevokeCommand::getCommandName() const +{ + return commandName.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_RevokeCommand_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/RevokeSkill.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/RevokeSkill.cpp new file mode 100644 index 00000000..f8c12a8a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/RevokeSkill.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/RevokeSkill.h b/engine/shared/library/sharedNetworkMessages/src/shared/RevokeSkill.h new file mode 100644 index 00000000..3fa08100 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/RevokeSkill.h @@ -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 skillName; +}; + +//----------------------------------------------------------------------- + +inline const std::string & RevokeSkill::getSkillName() const +{ + return skillName.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_RevokeSkill_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAddFriend.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAddFriend.cpp new file mode 100644 index 00000000..b45f9779 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAddFriend.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAddFriend.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAddFriend.h new file mode 100644 index 00000000..1c55c59e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAddFriend.h @@ -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 characterName; + Archive::AutoVariable sequence; +}; + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatAddFriend::getCharacterName () const +{ + return characterName.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatAddFriend::getSequence () const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatAddFriend_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAddModeratorToRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAddModeratorToRoom.cpp new file mode 100644 index 00000000..95fdaa25 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAddModeratorToRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAddModeratorToRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAddModeratorToRoom.h new file mode 100644 index 00000000..96a42ace --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAddModeratorToRoom.h @@ -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 avatarId; + Archive::AutoVariable roomName; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAvatarId.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAvatarId.cpp new file mode 100644 index 00000000..09f78c5d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAvatarId.cpp @@ -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 ); +} + +//====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAvatarId.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAvatarId.h new file mode 100644 index 00000000..5f704d26 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAvatarId.h @@ -0,0 +1,40 @@ +//====================================================================== +// +// ChatAvatarId.h +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#ifndef INCLUDED_ChatAvatarId_H +#define INCLUDED_ChatAvatarId_H + +#include +#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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAvatarIdArchive.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAvatarIdArchive.cpp new file mode 100644 index 00000000..19430160 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAvatarIdArchive.cpp @@ -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); + } +} + +//====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAvatarIdArchive.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAvatarIdArchive.h new file mode 100644 index 00000000..cdb1d7ff --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatAvatarIdArchive.h @@ -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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatBanAvatarFromRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatBanAvatarFromRoom.cpp new file mode 100644 index 00000000..8f0549f7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatBanAvatarFromRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatBanAvatarFromRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatBanAvatarFromRoom.h new file mode 100644 index 00000000..9a7cf6d5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatBanAvatarFromRoom.h @@ -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 avatarId; //avatar to ban + Archive::AutoVariable roomName; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatChangeFriendStatus.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatChangeFriendStatus.cpp new file mode 100644 index 00000000..7e3c0a24 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatChangeFriendStatus.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatChangeFriendStatus.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatChangeFriendStatus.h new file mode 100644 index 00000000..5b6a3b5e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatChangeFriendStatus.h @@ -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 characterName; + Archive::AutoVariable friendName; + Archive::AutoVariable sequence; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatChangeIgnoreStatus.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatChangeIgnoreStatus.cpp new file mode 100644 index 00000000..2b8758f8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatChangeIgnoreStatus.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatChangeIgnoreStatus.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatChangeIgnoreStatus.h new file mode 100644 index 00000000..1b831095 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatChangeIgnoreStatus.h @@ -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 characterName; + Archive::AutoVariable friendName; + Archive::AutoVariable sequence; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatCreateRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatCreateRoom.cpp new file mode 100644 index 00000000..db64c56e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatCreateRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatCreateRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatCreateRoom.h new file mode 100644 index 00000000..f45d677e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatCreateRoom.h @@ -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 isPublic; + Archive::AutoVariable isModerated; + Archive::AutoVariable ownerName; + Archive::AutoVariable roomName; + Archive::AutoVariable roomTitle; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDeleteAllPersistentMessages.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDeleteAllPersistentMessages.cpp new file mode 100644 index 00000000..54edf3b3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDeleteAllPersistentMessages.cpp @@ -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(); +} + +/////////////////////////////////////////////////////////////////////////////// diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDeleteAllPersistentMessages.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDeleteAllPersistentMessages.h new file mode 100644 index 00000000..117cccf0 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDeleteAllPersistentMessages.h @@ -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 m_sourceNetworkId; + Archive::AutoVariable m_targetNetworkId; + + // Disabled + + ChatDeleteAllPersistentMessages(); + ChatDeleteAllPersistentMessages & operator = (const ChatDeleteAllPersistentMessages & rhs); + ChatDeleteAllPersistentMessages(const ChatDeleteAllPersistentMessages & source); +}; + +/////////////////////////////////////////////////////////////////////////////// + +#endif // INCLUDED_ChatDeleteAllPersistentMessages_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDeletePersistentMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDeletePersistentMessage.cpp new file mode 100644 index 00000000..cc113396 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDeletePersistentMessage.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDeletePersistentMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDeletePersistentMessage.h new file mode 100644 index 00000000..4a540a3a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDeletePersistentMessage.h @@ -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 messageId; +}; + +//----------------------------------------------------------------------- + +inline const unsigned int ChatDeletePersistentMessage::getMessageId() const +{ + return messageId.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatDeletePersistentMessage_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDestroyRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDestroyRoom.cpp new file mode 100644 index 00000000..3aa10d3c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDestroyRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDestroyRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDestroyRoom.h new file mode 100644 index 00000000..85a37c0f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDestroyRoom.h @@ -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 roomId; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDestroyRoomByName.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDestroyRoomByName.cpp new file mode 100644 index 00000000..deb6d941 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDestroyRoomByName.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDestroyRoomByName.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDestroyRoomByName.h new file mode 100644 index 00000000..79596f7a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatDestroyRoomByName.h @@ -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 roomPath; +}; + +//----------------------------------------------------------------------- + +inline const std::string & ChatDestroyRoomByName::getRoomPath() const +{ + return roomPath.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatDestroyRoomByName_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatEnterRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatEnterRoom.cpp new file mode 100644 index 00000000..1973dc1e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatEnterRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatEnterRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatEnterRoom.h new file mode 100644 index 00000000..c363da9e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatEnterRoom.h @@ -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 roomName; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatEnterRoomById.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatEnterRoomById.cpp new file mode 100644 index 00000000..1b9367bc --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatEnterRoomById.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatEnterRoomById.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatEnterRoomById.h new file mode 100644 index 00000000..9d913c23 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatEnterRoomById.h @@ -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 roomId; + Archive::AutoVariable roomName; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatEnum.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatEnum.h new file mode 100644 index 00000000..df96665b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatEnum.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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatFriendsListUpdate.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatFriendsListUpdate.cpp new file mode 100644 index 00000000..e74bd7f9 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatFriendsListUpdate.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatFriendsListUpdate.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatFriendsListUpdate.h new file mode 100644 index 00000000..1473ff33 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatFriendsListUpdate.h @@ -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 characterName; + Archive::AutoVariable isOnline; +}; + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatFriendsListUpdate::getCharacterName() const +{ + return characterName.get(); +} + +//----------------------------------------------------------------------- + +inline const bool ChatFriendsListUpdate::getIsOnline() const +{ + return isOnline.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatFriendsListUpdate_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatGetFriendsList.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatGetFriendsList.cpp new file mode 100644 index 00000000..890da8a0 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatGetFriendsList.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatGetFriendsList.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatGetFriendsList.h new file mode 100644 index 00000000..97bbb99d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatGetFriendsList.h @@ -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 + +//----------------------------------------------------------------------- + +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 characterName; +}; + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatGetFriendsList::getCharacterName () const +{ + return characterName.get(); +} +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatGetFriendsList_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatGetIgnoreList.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatGetIgnoreList.cpp new file mode 100644 index 00000000..3d6742f1 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatGetIgnoreList.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatGetIgnoreList.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatGetIgnoreList.h new file mode 100644 index 00000000..56f23652 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatGetIgnoreList.h @@ -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 + +//----------------------------------------------------------------------- + +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 characterName; +}; + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatGetIgnoreList::getCharacterName () const +{ + return characterName.get(); +} +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatGetIgnoreList_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInstantMessageToCharacter.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInstantMessageToCharacter.cpp new file mode 100644 index 00000000..2bdc0b6b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInstantMessageToCharacter.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInstantMessageToCharacter.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInstantMessageToCharacter.h new file mode 100644 index 00000000..e4e5d088 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInstantMessageToCharacter.h @@ -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 characterName; + Archive::AutoVariable message; + Archive::AutoVariable outOfBand; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInstantMessageToClient.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInstantMessageToClient.cpp new file mode 100644 index 00000000..5d42cc86 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInstantMessageToClient.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInstantMessageToClient.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInstantMessageToClient.h new file mode 100644 index 00000000..aa9c514b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInstantMessageToClient.h @@ -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 fromName; + Archive::AutoVariable message; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteAvatarToRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteAvatarToRoom.cpp new file mode 100644 index 00000000..0fff85b5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteAvatarToRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteAvatarToRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteAvatarToRoom.h new file mode 100644 index 00000000..ef9b3d0a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteAvatarToRoom.h @@ -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 avatarId; + Archive::AutoVariable roomName; +}; + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatInviteAvatarToRoom::getAvatarId() const +{ + return avatarId.get(); +} + +//----------------------------------------------------------------------- + +inline const std::string & ChatInviteAvatarToRoom::getRoomName() const +{ + return roomName.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatInviteAvatarToRoom_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteGroupMembersToRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteGroupMembersToRoom.cpp new file mode 100644 index 00000000..959f0dab --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteGroupMembersToRoom.cpp @@ -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::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 & ChatInviteGroupMembersToRoom::getInvitedMembers() const +{ + return invitedMembers.get(); +} + +//----------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteGroupMembersToRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteGroupMembersToRoom.h new file mode 100644 index 00000000..3f204fda --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteGroupMembersToRoom.h @@ -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 + +//----------------------------------------------------------------------- + +class ChatInviteGroupMembersToRoom : public GameNetworkMessage +{ +public: + ChatInviteGroupMembersToRoom(const NetworkId & invitor, const ChatAvatarId & groupLeaderId, const std::string & roomName, const stdvector::fwd & members); + explicit ChatInviteGroupMembersToRoom(Archive::ReadIterator & source); + ~ChatInviteGroupMembersToRoom(); + + const NetworkId & getInvitorNetworkId() const; + const ChatAvatarId & getGroupLeaderId () const; + const std::string & getRoomName () const; + const stdvector::fwd & getInvitedMembers () const; + +private: + ChatInviteGroupMembersToRoom & operator = (const ChatInviteGroupMembersToRoom & rhs); + ChatInviteGroupMembersToRoom(const ChatInviteGroupMembersToRoom & source); + + Archive::AutoVariable invitorNetworkId; + Archive::AutoVariable groupLeaderId; + Archive::AutoVariable roomName; + Archive::AutoArray 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteGroupToRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteGroupToRoom.cpp new file mode 100644 index 00000000..32ec93dc --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteGroupToRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteGroupToRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteGroupToRoom.h new file mode 100644 index 00000000..78766f1e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatInviteGroupToRoom.h @@ -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 avatarId; + Archive::AutoVariable roomName; +}; + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatInviteGroupToRoom::getAvatarId() const +{ + return avatarId.get(); +} + +//----------------------------------------------------------------------- + +inline const std::string & ChatInviteGroupToRoom::getRoomName() const +{ + return roomName.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatInviteGroupToRoom_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatKickAvatarFromRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatKickAvatarFromRoom.cpp new file mode 100644 index 00000000..4f7cb735 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatKickAvatarFromRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatKickAvatarFromRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatKickAvatarFromRoom.h new file mode 100644 index 00000000..e02e3649 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatKickAvatarFromRoom.h @@ -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 m_avatarId; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatMessageFromGame.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatMessageFromGame.cpp new file mode 100644 index 00000000..f414bae0 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatMessageFromGame.cpp @@ -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(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(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(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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatMessageFromGame.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatMessageFromGame.h new file mode 100644 index 00000000..a4277184 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatMessageFromGame.h @@ -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 from; + Archive::AutoVariable message; + Archive::AutoVariable messageType; + Archive::AutoVariable oob; + Archive::AutoVariable room; + Archive::AutoVariable subject; + Archive::AutoVariable 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(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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnAddFriend.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnAddFriend.cpp new file mode 100644 index 00000000..f1df0d34 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnAddFriend.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnAddFriend.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnAddFriend.h new file mode 100644 index 00000000..0be86cac --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnAddFriend.h @@ -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 result; + Archive::AutoVariable 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 + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnAddModeratorToRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnAddModeratorToRoom.cpp new file mode 100644 index 00000000..1a8b275b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnAddModeratorToRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnAddModeratorToRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnAddModeratorToRoom.h new file mode 100644 index 00000000..4cec9044 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnAddModeratorToRoom.h @@ -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 avatarId; + Archive::AutoVariable granterId; + Archive::AutoVariable resultCode; + Archive::AutoVariable roomName; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnBanAvatarFromRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnBanAvatarFromRoom.cpp new file mode 100644 index 00000000..d1606acd --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnBanAvatarFromRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnBanAvatarFromRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnBanAvatarFromRoom.h new file mode 100644 index 00000000..b67e6e03 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnBanAvatarFromRoom.h @@ -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 + +//----------------------------------------------------------------------- + +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 roomName; + Archive::AutoVariable banner; + Archive::AutoVariable bannee; + Archive::AutoVariable result; + Archive::AutoVariable 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 + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnChangeFriendStatus.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnChangeFriendStatus.cpp new file mode 100644 index 00000000..b8ab1f9c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnChangeFriendStatus.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnChangeFriendStatus.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnChangeFriendStatus.h new file mode 100644 index 00000000..21983df5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnChangeFriendStatus.h @@ -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 character; + Archive::AutoVariable friendName; + Archive::AutoVariable sequence; + Archive::AutoVariable add; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnChangeIgnoreStatus.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnChangeIgnoreStatus.cpp new file mode 100644 index 00000000..1e77247d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnChangeIgnoreStatus.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnChangeIgnoreStatus.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnChangeIgnoreStatus.h new file mode 100644 index 00000000..9d4dbd14 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnChangeIgnoreStatus.h @@ -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 character; + Archive::AutoVariable ignoreName; + Archive::AutoVariable sequence; + Archive::AutoVariable ignore; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnConnectAvatar.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnConnectAvatar.cpp new file mode 100644 index 00000000..4630f536 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnConnectAvatar.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnConnectAvatar.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnConnectAvatar.h new file mode 100644 index 00000000..b5766574 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnConnectAvatar.h @@ -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 + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnCreateRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnCreateRoom.cpp new file mode 100644 index 00000000..76654cd1 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnCreateRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnCreateRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnCreateRoom.h new file mode 100644 index 00000000..e5b76944 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnCreateRoom.h @@ -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 resultCode; + Archive::AutoVariable roomData; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnDeleteAllPersistentMessages.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnDeleteAllPersistentMessages.cpp new file mode 100644 index 00000000..3e9aaad0 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnDeleteAllPersistentMessages.cpp @@ -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(); +} + +/////////////////////////////////////////////////////////////////////////////// diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnDeleteAllPersistentMessages.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnDeleteAllPersistentMessages.h new file mode 100644 index 00000000..c8b1feb3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnDeleteAllPersistentMessages.h @@ -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 m_targetName; + Archive::AutoVariable m_success; + + // Disabled + + ChatOnDeleteAllPersistentMessages(); + ChatOnDeleteAllPersistentMessages & operator = (const ChatOnDeleteAllPersistentMessages & rhs); + ChatOnDeleteAllPersistentMessages(const ChatOnDeleteAllPersistentMessages & source); +}; + +/////////////////////////////////////////////////////////////////////////////// + +#endif // INCLUDED_ChatOnDeleteAllPersistentMessages_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnDestroyRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnDestroyRoom.cpp new file mode 100644 index 00000000..ea047d39 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnDestroyRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnDestroyRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnDestroyRoom.h new file mode 100644 index 00000000..99425ef1 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnDestroyRoom.h @@ -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 destroyer; + Archive::AutoVariable resultCode; + Archive::AutoVariable roomId; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnEnteredRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnEnteredRoom.cpp new file mode 100644 index 00000000..2b719a27 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnEnteredRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnEnteredRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnEnteredRoom.h new file mode 100644 index 00000000..8014b872 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnEnteredRoom.h @@ -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 characterName; + Archive::AutoVariable result; + Archive::AutoVariable roomId; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnGetFriendsList.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnGetFriendsList.cpp new file mode 100644 index 00000000..a214855f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnGetFriendsList.cpp @@ -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 & 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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnGetFriendsList.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnGetFriendsList.h new file mode 100644 index 00000000..71c992b3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnGetFriendsList.h @@ -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 + +//----------------------------------------------------------------------- + +class ChatOnGetFriendsList : public GameNetworkMessage +{ +public: + ChatOnGetFriendsList(const NetworkId & character, const std::vector & friends); + ChatOnGetFriendsList(Archive::ReadIterator & source); + ~ChatOnGetFriendsList(); + + const NetworkId & getCharacter () const; + const std::vector & getFriends () const; + +private: + ChatOnGetFriendsList & operator = (const ChatOnGetFriendsList & rhs); + ChatOnGetFriendsList(const ChatOnGetFriendsList & source); + + Archive::AutoVariable character; + Archive::AutoArray friends; +}; + +//----------------------------------------------------------------------- + +inline const NetworkId & ChatOnGetFriendsList::getCharacter () const +{ + return character.get(); +} +//----------------------------------------------------------------------- + +inline const std::vector & ChatOnGetFriendsList::getFriends () const +{ + return friends.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatOnGetFriendsList_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnGetIgnoreList.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnGetIgnoreList.cpp new file mode 100644 index 00000000..f7c99cf4 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnGetIgnoreList.cpp @@ -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 & 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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnGetIgnoreList.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnGetIgnoreList.h new file mode 100644 index 00000000..7f940f3c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnGetIgnoreList.h @@ -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 + +//----------------------------------------------------------------------- + +class ChatOnGetIgnoreList : public GameNetworkMessage +{ +public: + ChatOnGetIgnoreList(const NetworkId & character, const std::vector & ignoreList); + ChatOnGetIgnoreList(Archive::ReadIterator & source); + ~ChatOnGetIgnoreList(); + + const NetworkId & getCharacter () const; + const std::vector & getIgnoreList () const; + +private: + ChatOnGetIgnoreList & operator = (const ChatOnGetIgnoreList & rhs); + ChatOnGetIgnoreList(const ChatOnGetIgnoreList & source); + + Archive::AutoVariable character; + Archive::AutoArray ignores; +}; + +//----------------------------------------------------------------------- + +inline const NetworkId & ChatOnGetIgnoreList::getCharacter () const +{ + return character.get(); +} +//----------------------------------------------------------------------- + +inline const std::vector & ChatOnGetIgnoreList::getIgnoreList () const +{ + return ignores.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatOnGetIgnoreList_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnInviteGroupToRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnInviteGroupToRoom.cpp new file mode 100644 index 00000000..5ee96cb6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnInviteGroupToRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnInviteGroupToRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnInviteGroupToRoom.h new file mode 100644 index 00000000..cb8e4930 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnInviteGroupToRoom.h @@ -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 + +//----------------------------------------------------------------------- + +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 roomName; + Archive::AutoVariable invitor; + Archive::AutoVariable invitee; + Archive::AutoVariable 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 + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnInviteToRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnInviteToRoom.cpp new file mode 100644 index 00000000..72dd8936 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnInviteToRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnInviteToRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnInviteToRoom.h new file mode 100644 index 00000000..f81dda9a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnInviteToRoom.h @@ -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 + +//----------------------------------------------------------------------- + +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 roomName; + Archive::AutoVariable invitor; + Archive::AutoVariable invitee; + Archive::AutoVariable 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 + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnKickAvatarFromRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnKickAvatarFromRoom.cpp new file mode 100644 index 00000000..72fc3694 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnKickAvatarFromRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnKickAvatarFromRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnKickAvatarFromRoom.h new file mode 100644 index 00000000..96043304 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnKickAvatarFromRoom.h @@ -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 avatarId; + Archive::AutoVariable removerId; + Archive::AutoVariable resultCode; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnLeaveRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnLeaveRoom.cpp new file mode 100644 index 00000000..b3318115 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnLeaveRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnLeaveRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnLeaveRoom.h new file mode 100644 index 00000000..34d230a7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnLeaveRoom.h @@ -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 characterName; + Archive::AutoVariable resultCode; + Archive::AutoVariable roomId; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnReceiveRoomInvitation.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnReceiveRoomInvitation.cpp new file mode 100644 index 00000000..c3cefc56 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnReceiveRoomInvitation.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnReceiveRoomInvitation.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnReceiveRoomInvitation.h new file mode 100644 index 00000000..53bd643e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnReceiveRoomInvitation.h @@ -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 invitorAvatar; + Archive::AutoVariable roomName; +}; + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatOnReceiveRoomInvitation::getInvitorAvatar() const +{ + return invitorAvatar.get(); +} + +//----------------------------------------------------------------------- + +inline const std::string & ChatOnReceiveRoomInvitation::getRoomName() const +{ + return roomName.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatOnReceiveRoomInvitation_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnRemoveModeratorFromRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnRemoveModeratorFromRoom.cpp new file mode 100644 index 00000000..4702377c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnRemoveModeratorFromRoom.cpp @@ -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() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnRemoveModeratorFromRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnRemoveModeratorFromRoom.h new file mode 100644 index 00000000..408c09b7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnRemoveModeratorFromRoom.h @@ -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 avatarId; + Archive::AutoVariable removerId; + Archive::AutoVariable resultCode; + Archive::AutoVariable roomName; + Archive::AutoVariable 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 diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnRequestLog.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnRequestLog.cpp new file mode 100644 index 00000000..5f9f5b1d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnRequestLog.cpp @@ -0,0 +1,63 @@ +// ChatOnRequestLog.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "ChatOnRequestLog.h" + +//----------------------------------------------------------------------- + +ChatOnRequestLog::ChatOnRequestLog(const unsigned int s, const std::vector & entries) : +GameNetworkMessage("ChatOnRequestLog"), +logEntries(), +sequence(s) +{ + logEntries.set(entries); + addVariable(logEntries); + addVariable(sequence); +} + +//----------------------------------------------------------------------- + +ChatOnRequestLog::ChatOnRequestLog(Archive::ReadIterator & source) : +GameNetworkMessage("ChatOnRequestLog"), +logEntries(), +sequence() +{ + addVariable(logEntries); + addVariable(sequence); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatOnRequestLog::~ChatOnRequestLog() +{ +} + +//---------------------------------------------------------------------- + +namespace Archive +{ + void get (ReadIterator & source, ChatLogEntry & target) + { + get (source, target.m_from); + get (source, target.m_to); + get (source, target.m_channel); + get (source, target.m_message); + get (source, target.m_time); + } + + void put (ByteStream & target, const ChatLogEntry & source) + { + put (target, source.m_from); + put (target, source.m_to); + put (target, source.m_channel); + put (target, source.m_message); + put (target, source.m_time); + } +} + +//====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnRequestLog.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnRequestLog.h new file mode 100644 index 00000000..776ac485 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnRequestLog.h @@ -0,0 +1,86 @@ +// ChatOnRequestLog.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatOnRequestLog_H +#define _INCLUDED_ChatOnRequestLog_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "unicodeArchive/UnicodeArchive.h" +#include "UnicodeUtils.h" + +//----------------------------------------------------------------------- + + +struct ChatLogEntry +{ + ChatLogEntry() + : m_from() + , m_to() + , m_channel() + , m_message() + , m_time(0) + { + } + + ChatLogEntry(Unicode::String const &from, Unicode::String const &to, Unicode::String const &channel, Unicode::String const &message, time_t time) + : m_from(from) + , m_to(to) + , m_channel(channel) + , m_message(message) + , m_time(time) + { + } + + Unicode::String m_from; + Unicode::String m_to; + Unicode::String m_channel; + Unicode::String m_message; + time_t m_time; +}; + +namespace Archive +{ + void get (ReadIterator & source, ChatLogEntry & target); + void put (ByteStream & target, const ChatLogEntry & source); +} + +//----------------------------------------------------------------------- + +class ChatOnRequestLog : public GameNetworkMessage +{ +public: + ChatOnRequestLog(unsigned int sequence, const std::vector &entries); + ChatOnRequestLog(Archive::ReadIterator &); + ~ChatOnRequestLog(); + + const std::vector & getLogEntries () const; + const unsigned int getSequence () const; + +private: + ChatOnRequestLog & operator = (const ChatOnRequestLog & rhs); + ChatOnRequestLog(const ChatOnRequestLog & source); + + Archive::AutoArray logEntries; + Archive::AutoVariable sequence; +}; + +//----------------------------------------------------------------------- + +inline const std::vector & ChatOnRequestLog::getLogEntries() const +{ + return logEntries.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatOnRequestLog::getSequence() const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatOnRequestLog_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendInstantMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendInstantMessage.cpp new file mode 100644 index 00000000..a9a187cd --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendInstantMessage.cpp @@ -0,0 +1,40 @@ +// ChatOnSendInstantMessage.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatOnSendInstantMessage.h" + +//----------------------------------------------------------------------- + +ChatOnSendInstantMessage::ChatOnSendInstantMessage(const unsigned int s, const unsigned int r) : +GameNetworkMessage("ChatOnSendInstantMessage"), +result(r), +sequence(s) +{ + addVariable(result); + addVariable(sequence); +} + +//----------------------------------------------------------------------- + +ChatOnSendInstantMessage::ChatOnSendInstantMessage(Archive::ReadIterator & source) : +GameNetworkMessage("ChatOnSendInstantMessage"), +result(), +sequence() +{ + addVariable(result); + addVariable(sequence); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatOnSendInstantMessage::~ChatOnSendInstantMessage() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendInstantMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendInstantMessage.h new file mode 100644 index 00000000..f000604b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendInstantMessage.h @@ -0,0 +1,49 @@ +// ChatOnSendInstantMessage.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatOnSendInstantMessage_H +#define _INCLUDED_ChatOnSendInstantMessage_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class ChatOnSendInstantMessage : public GameNetworkMessage +{ +public: + ChatOnSendInstantMessage(const unsigned int sequence, const unsigned int result); + ChatOnSendInstantMessage(Archive::ReadIterator & source); + ~ChatOnSendInstantMessage(); + + const unsigned int getResult () const; + const unsigned int getSequence () const; + +private: + ChatOnSendInstantMessage & operator = (const ChatOnSendInstantMessage & rhs); + ChatOnSendInstantMessage(const ChatOnSendInstantMessage & source); + + Archive::AutoVariable result; + Archive::AutoVariable sequence; +}; + +//----------------------------------------------------------------------- + +inline const unsigned int ChatOnSendInstantMessage::getResult() const +{ + return result.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatOnSendInstantMessage::getSequence() const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatOnSendInstantMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendPersistentMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendPersistentMessage.cpp new file mode 100644 index 00000000..e60332d3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendPersistentMessage.cpp @@ -0,0 +1,40 @@ +// ChatOnSendPersistentMessage.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatOnSendPersistentMessage.h" + +//----------------------------------------------------------------------- + +ChatOnSendPersistentMessage::ChatOnSendPersistentMessage(const unsigned int s, const unsigned int r) : +GameNetworkMessage("ChatOnSendPersistentMessage"), +result(r), +sequence(s) +{ + addVariable(result); + addVariable(sequence); +} + +//----------------------------------------------------------------------- + +ChatOnSendPersistentMessage::ChatOnSendPersistentMessage(Archive::ReadIterator & source) : +GameNetworkMessage("ChatOnSendPersistentMessage"), +result(), +sequence() +{ + addVariable(result); + addVariable(sequence); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatOnSendPersistentMessage::~ChatOnSendPersistentMessage() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendPersistentMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendPersistentMessage.h new file mode 100644 index 00000000..bf238f0e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendPersistentMessage.h @@ -0,0 +1,49 @@ +// ChatOnSendPersistentMessage.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatOnSendPersistentMessage_H +#define _INCLUDED_ChatOnSendPersistentMessage_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class ChatOnSendPersistentMessage : public GameNetworkMessage +{ +public: + ChatOnSendPersistentMessage(const unsigned int sequence, const unsigned int result); + ChatOnSendPersistentMessage(Archive::ReadIterator & source); + ~ChatOnSendPersistentMessage(); + + const unsigned int getResult () const; + const unsigned int getSequence () const; + +private: + ChatOnSendPersistentMessage & operator = (const ChatOnSendPersistentMessage & rhs); + ChatOnSendPersistentMessage(const ChatOnSendPersistentMessage & source); + + Archive::AutoVariable result; + Archive::AutoVariable sequence; +}; + +//----------------------------------------------------------------------- + +inline const unsigned int ChatOnSendPersistentMessage::getResult() const +{ + return result.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatOnSendPersistentMessage::getSequence() const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatOnSendPersistentMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendRoomInvitation.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendRoomInvitation.cpp new file mode 100644 index 00000000..78a862ed --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendRoomInvitation.cpp @@ -0,0 +1,40 @@ +// ChatOnSendRoomInvitation.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatOnSendRoomInvitation.h" + +//----------------------------------------------------------------------- + +ChatOnSendRoomInvitation::ChatOnSendRoomInvitation(const unsigned int s, const unsigned int r) : +GameNetworkMessage("ChatOnSendRoomInvitation"), +result(r), +sequence(s) +{ + addVariable(result); + addVariable(sequence); +} + +//----------------------------------------------------------------------- + +ChatOnSendRoomInvitation::ChatOnSendRoomInvitation(Archive::ReadIterator & source) : +GameNetworkMessage("ChatOnSendRoomInvitation"), +result(), +sequence() +{ + addVariable(result); + addVariable(sequence); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatOnSendRoomInvitation::~ChatOnSendRoomInvitation() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendRoomInvitation.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendRoomInvitation.h new file mode 100644 index 00000000..6db7bc7d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendRoomInvitation.h @@ -0,0 +1,48 @@ +// ChatOnSendRoomInvitation.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatOnSendRoomInvitation_H +#define _INCLUDED_ChatOnSendRoomInvitation_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class ChatOnSendRoomInvitation : public GameNetworkMessage +{ +public: + ChatOnSendRoomInvitation(const unsigned int sequence, const unsigned int result); + explicit ChatOnSendRoomInvitation(Archive::ReadIterator & source); + ~ChatOnSendRoomInvitation(); + + const unsigned int getResult () const; + const unsigned int getSequence () const; + +private: + ChatOnSendRoomInvitation & operator = (const ChatOnSendRoomInvitation & rhs); + ChatOnSendRoomInvitation(const ChatOnSendRoomInvitation & source); + + Archive::AutoVariable result; + Archive::AutoVariable sequence; +}; + +//----------------------------------------------------------------------- + +inline const unsigned int ChatOnSendRoomInvitation::getResult() const +{ + return result.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatOnSendRoomInvitation::getSequence() const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatOnSendRoomInvitation_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendRoomMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendRoomMessage.cpp new file mode 100644 index 00000000..0dbbf90b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendRoomMessage.cpp @@ -0,0 +1,40 @@ +// ChatOnSendRoomMessage.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatOnSendRoomMessage.h" + +//----------------------------------------------------------------------- + +ChatOnSendRoomMessage::ChatOnSendRoomMessage(const unsigned int s, const unsigned int r) : +GameNetworkMessage("ChatOnSendRoomMessage"), +result(r), +sequence(s) +{ + addVariable(result); + addVariable(sequence); +} + +//----------------------------------------------------------------------- + +ChatOnSendRoomMessage::ChatOnSendRoomMessage(Archive::ReadIterator & source) : +GameNetworkMessage("ChatOnSendRoomMessage"), +result(), +sequence() +{ + addVariable(result); + addVariable(sequence); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatOnSendRoomMessage::~ChatOnSendRoomMessage() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendRoomMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendRoomMessage.h new file mode 100644 index 00000000..5d1310d8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnSendRoomMessage.h @@ -0,0 +1,48 @@ +// ChatOnSendRoomMessage.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatOnSendRoomMessage_H +#define _INCLUDED_ChatOnSendRoomMessage_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class ChatOnSendRoomMessage : public GameNetworkMessage +{ +public: + ChatOnSendRoomMessage(const unsigned int sequence, const unsigned int result); + explicit ChatOnSendRoomMessage(Archive::ReadIterator & source); + ~ChatOnSendRoomMessage(); + + const unsigned int getResult () const; + const unsigned int getSequence () const; + +private: + ChatOnSendRoomMessage & operator = (const ChatOnSendRoomMessage & rhs); + ChatOnSendRoomMessage(const ChatOnSendRoomMessage & source); + + Archive::AutoVariable result; + Archive::AutoVariable sequence; +}; + +//----------------------------------------------------------------------- + +inline const unsigned int ChatOnSendRoomMessage::getResult() const +{ + return result.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatOnSendRoomMessage::getSequence() const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatOnSendRoomMessage_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnUnbanAvatarFromRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnUnbanAvatarFromRoom.cpp new file mode 100644 index 00000000..fa97d25b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnUnbanAvatarFromRoom.cpp @@ -0,0 +1,52 @@ +// ChatOnUnbanAvatarFromRoom.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatOnUnbanAvatarFromRoom.h" +#include "sharedNetworkMessages/ChatAvatarIdArchive.h" + +//----------------------------------------------------------------------- + +ChatOnUnbanAvatarFromRoom::ChatOnUnbanAvatarFromRoom(const unsigned int s, const unsigned int r, const std::string &room, const ChatAvatarId &bannerId, const ChatAvatarId &banneeId) : +GameNetworkMessage("ChatOnUnbanAvatarFromRoom"), +roomName(room), +banner(bannerId), +bannee(banneeId), +result(r), +sequence(s) +{ + addVariable(roomName); + addVariable(banner); + addVariable(bannee); + addVariable(result); + addVariable(sequence); +} + +//----------------------------------------------------------------------- + +ChatOnUnbanAvatarFromRoom::ChatOnUnbanAvatarFromRoom(Archive::ReadIterator & source) : +GameNetworkMessage("ChatOnUnbanAvatarFromRoom"), +roomName(), +banner(), +bannee(), +result(), +sequence() +{ + addVariable(roomName); + addVariable(banner); + addVariable(bannee); + addVariable(result); + addVariable(sequence); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatOnUnbanAvatarFromRoom::~ChatOnUnbanAvatarFromRoom() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnUnbanAvatarFromRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnUnbanAvatarFromRoom.h new file mode 100644 index 00000000..f13f4a0c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnUnbanAvatarFromRoom.h @@ -0,0 +1,80 @@ +// ChatOnUnbanAvatarFromRoom.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatOnUnbanAvatarFromRoom_H +#define _INCLUDED_ChatOnUnbanAvatarFromRoom_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/ChatAvatarId.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" + +#include + +//----------------------------------------------------------------------- + +class ChatOnUnbanAvatarFromRoom : public GameNetworkMessage +{ +public: + ChatOnUnbanAvatarFromRoom(const unsigned int sequence, const unsigned int result, const std::string &roomName, const ChatAvatarId &banner, const ChatAvatarId &bannee ); + ChatOnUnbanAvatarFromRoom(Archive::ReadIterator & source); + ~ChatOnUnbanAvatarFromRoom(); + + const std::string & getRoomName () const; + const ChatAvatarId & getUnbanner () const; + const ChatAvatarId & getUnbannee () const; + const unsigned int getResult () const; + const unsigned int getSequence () const; + +private: + ChatOnUnbanAvatarFromRoom & operator = (const ChatOnUnbanAvatarFromRoom & rhs); + ChatOnUnbanAvatarFromRoom(const ChatOnUnbanAvatarFromRoom & source); + + Archive::AutoVariable roomName; + Archive::AutoVariable banner; + Archive::AutoVariable bannee; + Archive::AutoVariable result; + Archive::AutoVariable sequence; + +}; + +//----------------------------------------------------------------------- + +inline const std::string & ChatOnUnbanAvatarFromRoom::getRoomName() const +{ + return roomName.get(); +} + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatOnUnbanAvatarFromRoom::getUnbanner() const +{ + return banner.get(); +} + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatOnUnbanAvatarFromRoom::getUnbannee() const +{ + return bannee.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatOnUnbanAvatarFromRoom::getResult() const +{ + return result.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatOnUnbanAvatarFromRoom::getSequence() const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatOnUnbanAvatarFromRoom_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnUninviteFromRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnUninviteFromRoom.cpp new file mode 100644 index 00000000..afab1a8a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnUninviteFromRoom.cpp @@ -0,0 +1,53 @@ +// ChatOnUninviteFromRoom.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatOnUninviteFromRoom.h" +#include "sharedNetworkMessages/ChatAvatarIdArchive.h" + +//----------------------------------------------------------------------- + +ChatOnUninviteFromRoom::ChatOnUninviteFromRoom(const unsigned int s, const unsigned int r, const std::string &room, const ChatAvatarId &invitorId, const ChatAvatarId &inviteeId) : +GameNetworkMessage("ChatOnUninviteFromRoom"), +roomName(room), +invitor(invitorId), +invitee(inviteeId), +result(r), +sequence(s) +{ + addVariable(roomName); + addVariable(invitor); + addVariable(invitee); + addVariable(result); + addVariable(sequence); +} + +//----------------------------------------------------------------------- + +ChatOnUninviteFromRoom::ChatOnUninviteFromRoom(Archive::ReadIterator & source) : +GameNetworkMessage("ChatOnUninviteFromRoom"), +roomName(), +invitor(), +invitee(), +result(), +sequence() +{ + addVariable(roomName); + addVariable(invitor); + addVariable(invitee); + addVariable(result); + addVariable(sequence); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatOnUninviteFromRoom::~ChatOnUninviteFromRoom() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnUninviteFromRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnUninviteFromRoom.h new file mode 100644 index 00000000..d39b71dd --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatOnUninviteFromRoom.h @@ -0,0 +1,80 @@ +// ChatOnUninviteFromRoom.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatOnUninviteFromRoom_H +#define _INCLUDED_ChatOnUninviteFromRoom_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/ChatAvatarId.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" + +#include + +//----------------------------------------------------------------------- + +class ChatOnUninviteFromRoom : public GameNetworkMessage +{ +public: + ChatOnUninviteFromRoom(const unsigned int sequence, const unsigned int result, const std::string &roomName, const ChatAvatarId &invitor, const ChatAvatarId &invitee ); + ChatOnUninviteFromRoom(Archive::ReadIterator & source); + ~ChatOnUninviteFromRoom(); + + const std::string & getRoomName () const; + const ChatAvatarId & getInvitor () const; + const ChatAvatarId & getInvitee () const; + const unsigned int getResult () const; + const unsigned int getSequence () const; + +private: + ChatOnUninviteFromRoom & operator = (const ChatOnUninviteFromRoom & rhs); + ChatOnUninviteFromRoom(const ChatOnUninviteFromRoom & source); + + Archive::AutoVariable roomName; + Archive::AutoVariable invitor; + Archive::AutoVariable invitee; + Archive::AutoVariable result; + Archive::AutoVariable sequence; + +}; + +//----------------------------------------------------------------------- + +inline const std::string & ChatOnUninviteFromRoom::getRoomName() const +{ + return roomName.get(); +} + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatOnUninviteFromRoom::getInvitor() const +{ + return invitor.get(); +} + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatOnUninviteFromRoom::getInvitee() const +{ + return invitee.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatOnUninviteFromRoom::getResult() const +{ + return result.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatOnUninviteFromRoom::getSequence() const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatOnUninviteFromRoom_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClient.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClient.cpp new file mode 100644 index 00000000..fda8ef61 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClient.cpp @@ -0,0 +1,85 @@ +// ChatPersistentMessageToClient.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatPersistentMessageToClient.h" +#include "sharedNetworkMessages/ChatPersistentMessageToClientDataArchive.h" + +//----------------------------------------------------------------------- + +ChatPersistentMessageToClient::ChatPersistentMessageToClient(const unsigned int i, signed char stat, const std::string & g, const std::string & s, const std::string & c, const Unicode::String & subj, const unsigned int t) : +GameNetworkMessage("ChatPersistentMessageToClient"), +data () +{ + Data d; + + d.fromCharacterName = c; + d.fromGameCode = g; + d.fromServerCode = s; + d.id = i; + d.isHeader = true; + d.subject = subj; + d.status = stat; + d.timeStamp = t; + + data.set (d); + + addVariable (data); +} + +//----------------------------------------------------------------------- + +ChatPersistentMessageToClient::ChatPersistentMessageToClient(const unsigned int i, signed char stat, const std::string & g, const std::string & s, const std::string & c, const Unicode::String & subj, const Unicode::String & m, const Unicode::String & o, const unsigned int t) : +GameNetworkMessage("ChatPersistentMessageToClient"), +data () +{ + Data d; + + d.fromCharacterName = c; + d.fromGameCode = g; + d.fromServerCode = s; + d.id = i; + d.isHeader = false; + d.subject = subj; + d.message = m; + d.outOfBand = o; + d.status = stat; + d.timeStamp = t; + + data.set (d); + + addVariable (data); +} + +//----------------------------------------------------------------------- + +ChatPersistentMessageToClient::ChatPersistentMessageToClient(Archive::ReadIterator & source) : +GameNetworkMessage("ChatPersistentMessageToClient"), +data () +{ + addVariable (data); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatPersistentMessageToClient::~ChatPersistentMessageToClient() +{ +} + +//----------------------------------------------------------------------- + +ChatPersistentMessageToClient & ChatPersistentMessageToClient::operator = (const ChatPersistentMessageToClient & rhs) +{ + if(this != &rhs) + { + *this = rhs; + } + return *this; +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClient.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClient.h new file mode 100644 index 00000000..2031869d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClient.h @@ -0,0 +1,44 @@ +// ChatPersistentMessageToClient.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatPersistentMessageToClient_H +#define _INCLUDED_ChatPersistentMessageToClient_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedNetworkMessages/ChatPersistentMessageToClientDataArchive.h" +#include "sharedNetworkMessages/ChatPersistentMessageToClientData.h" + +//----------------------------------------------------------------------- + +class ChatPersistentMessageToClient : public GameNetworkMessage +{ +public: + typedef ChatPersistentMessageToClientData Data; + + ChatPersistentMessageToClient(const unsigned int id, signed char status, const std::string & fromGameCode, const std::string & fromServerCode, const std::string & fromCharacterName, const Unicode::String & subject, const unsigned int timeStamp); + ChatPersistentMessageToClient(const unsigned int id, signed char status, const std::string & fromGameCode, const std::string & fromServerCode, const std::string & fromCharacterName, const Unicode::String & subject, const Unicode::String & message, const Unicode::String & oob, const unsigned int timeStamp); + explicit ChatPersistentMessageToClient(Archive::ReadIterator &); + ~ChatPersistentMessageToClient(); + + const Data & getData () const; + +private: + ChatPersistentMessageToClient & operator = (const ChatPersistentMessageToClient & rhs); + ChatPersistentMessageToClient(const ChatPersistentMessageToClient & source); + + Archive::AutoVariable data; +}; + +//---------------------------------------------------------------------- + +inline const ChatPersistentMessageToClient::Data & ChatPersistentMessageToClient::getData () const +{ + return data.get (); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatPersistentMessageToClient_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClientData.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClientData.cpp new file mode 100644 index 00000000..3bd0be7e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClientData.cpp @@ -0,0 +1,28 @@ +//====================================================================== +// +// ChatPersistentMessageToClientData.cpp +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatPersistentMessageToClientData.h" + +//====================================================================== + +ChatPersistentMessageToClientData::ChatPersistentMessageToClientData () : +fromCharacterName (), +fromGameCode (), +fromServerCode (), +id (0), +isHeader (true), +message (), +subject (), +outOfBand (), +status (0), +timeStamp (0) +{ + +} + +//====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClientData.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClientData.h new file mode 100644 index 00000000..8c98430f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClientData.h @@ -0,0 +1,31 @@ +//====================================================================== +// +// ChatPersistentMessageToClientData.h +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#ifndef INCLUDED_ChatPersistentMessageToClientData_H +#define INCLUDED_ChatPersistentMessageToClientData_H + +//====================================================================== + +struct ChatPersistentMessageToClientData +{ + std::string fromCharacterName; + std::string fromGameCode; + std::string fromServerCode; + unsigned int id; + bool isHeader; + Unicode::String message; + Unicode::String subject; + Unicode::String outOfBand; + signed char status; + unsigned int timeStamp; + + ChatPersistentMessageToClientData (); +}; + +//====================================================================== + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClientDataArchive.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClientDataArchive.cpp new file mode 100644 index 00000000..68486116 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClientDataArchive.cpp @@ -0,0 +1,45 @@ +//====================================================================== +// +// ChatPersistentMessageToClientDataArchive.cpp +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatPersistentMessageToClientDataArchive.h" +#include "sharedNetworkMessages/ChatPersistentMessageToClientData.h" + +//---------------------------------------------------------------------- + +namespace Archive +{ + void get (ReadIterator & source, ChatPersistentMessageToClientData & target) + { + get (source, target.fromCharacterName); + get (source, target.fromGameCode); + get (source, target.fromServerCode); + get (source, target.id); + get (source, target.isHeader); + get (source, target.message); + get (source, target.subject); + get (source, target.outOfBand); + get (source, target.status); + get (source, target.timeStamp); + } + + void put (ByteStream & target, const ChatPersistentMessageToClientData & source) + { + put (target, source.fromCharacterName); + put (target, source.fromGameCode); + put (target, source.fromServerCode); + put (target, source.id); + put (target, source.isHeader); + put (target, source.message); + put (target, source.subject); + put (target, source.outOfBand); + put (target, source.status); + put (target, source.timeStamp); + } +} + +//====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClientDataArchive.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClientDataArchive.h new file mode 100644 index 00000000..5e421431 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToClientDataArchive.h @@ -0,0 +1,27 @@ +//====================================================================== +// +// ChatPersistentMessageToClientDataArchive.h +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#ifndef INCLUDED_ChatPersistentMessageToClientDataArchive_H +#define INCLUDED_ChatPersistentMessageToClientDataArchive_H + +//====================================================================== + +#include "Archive/ByteStream.h" + +struct ChatPersistentMessageToClientData; + +//---------------------------------------------------------------------- + +namespace Archive +{ + void get (ReadIterator & source, ChatPersistentMessageToClientData & target); + void put (ByteStream & target, const ChatPersistentMessageToClientData & source); +} + +//====================================================================== + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToServer.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToServer.cpp new file mode 100644 index 00000000..282c23cb --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToServer.cpp @@ -0,0 +1,52 @@ +// ChatPersistentMessageToServer.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "ChatPersistentMessageToServer.h" + +//----------------------------------------------------------------------- + + +ChatPersistentMessageToServer::ChatPersistentMessageToServer(const unsigned int s, const ChatAvatarId & c, const Unicode::String & subj, const Unicode::String & m, const Unicode::String & o) : +GameNetworkMessage("ChatPersistentMessageToServer"), +message(m.substr(0, ChatPersistentMessageToServerNamespace::MAX_MESSAGE_SIZE)), +outOfBand(o), +sequence(s), +subject(subj), +toCharacterName(c) +{ + addVariable(message); + addVariable(outOfBand); + addVariable(sequence); + addVariable(subject); + addVariable(toCharacterName); +} + +//----------------------------------------------------------------------- + +ChatPersistentMessageToServer::ChatPersistentMessageToServer(Archive::ReadIterator & source) : +GameNetworkMessage("ChatPersistentMessageToServer"), +message(), +outOfBand(), +subject(), +toCharacterName() +{ + addVariable(message); + addVariable(outOfBand); + addVariable(sequence); + addVariable(subject); + addVariable(toCharacterName); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatPersistentMessageToServer::~ChatPersistentMessageToServer() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToServer.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToServer.h new file mode 100644 index 00000000..da85eb93 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPersistentMessageToServer.h @@ -0,0 +1,82 @@ +// ChatPersistentMessageToServer.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatPersistentMessageToServer_H +#define _INCLUDED_ChatPersistentMessageToServer_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedNetworkMessages/ChatAvatarId.h" +#include "sharedNetworkMessages/ChatAvatarIdArchive.h" + +//----------------------------------------------------------------------- + + +namespace ChatPersistentMessageToServerNamespace { + const unsigned int MAX_MESSAGE_SIZE = 4000; +} + +class ChatPersistentMessageToServer : public GameNetworkMessage +{ +public: + ChatPersistentMessageToServer(const unsigned int sequence, const ChatAvatarId & toCharacter, const Unicode::String & subject, const Unicode::String & message, const Unicode::String & outOfBand); + ChatPersistentMessageToServer(Archive::ReadIterator &); + ~ChatPersistentMessageToServer(); + + const Unicode::String & getMessage () const; + const Unicode::String & getOutOfBand () const; + const unsigned int getSequence () const; + const Unicode::String & getSubject () const; + const ChatAvatarId & getToCharacterName () const; + +private: + ChatPersistentMessageToServer & operator = (const ChatPersistentMessageToServer & rhs); + ChatPersistentMessageToServer(const ChatPersistentMessageToServer & source); + + Archive::AutoVariable message; + Archive::AutoVariable outOfBand; + Archive::AutoVariable sequence; + Archive::AutoVariable subject; + Archive::AutoVariable toCharacterName; +}; + +//----------------------------------------------------------------------- + +inline const Unicode::String & ChatPersistentMessageToServer::getMessage() const +{ + return message.get(); +} + +//----------------------------------------------------------------------- + +inline const Unicode::String & ChatPersistentMessageToServer::getOutOfBand() const +{ + return outOfBand.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatPersistentMessageToServer::getSequence() const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +inline const Unicode::String & ChatPersistentMessageToServer::getSubject() const +{ + return subject.get(); +} + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatPersistentMessageToServer::getToCharacterName() const +{ + return toCharacterName.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatPersistentMessageToServer_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPutAvatarInRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPutAvatarInRoom.cpp new file mode 100644 index 00000000..f1587c49 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPutAvatarInRoom.cpp @@ -0,0 +1,61 @@ +// ChatPutAvatarInRoom.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatPutAvatarInRoom.h" + +//----------------------------------------------------------------------- + +ChatPutAvatarInRoom::ChatPutAvatarInRoom(const std::string & a, const std::string & r, bool forceCreate, bool createPrivate) : +GameNetworkMessage("ChatPutAvatarInRoom"), +m_avatarName(a), +m_roomName(r), +m_forceCreate(forceCreate), +m_createPrivate(createPrivate) +{ + addVariable(m_avatarName); + addVariable(m_roomName); + addVariable(m_forceCreate); + addVariable(m_createPrivate); +} + +//----------------------------------------------------------------------- + +ChatPutAvatarInRoom::ChatPutAvatarInRoom(Archive::ReadIterator & source) : +GameNetworkMessage("ChatPutAvatarInRoom"), +m_avatarName(), +m_roomName(), +m_forceCreate(false), +m_createPrivate(false) +{ + addVariable(m_avatarName); + addVariable(m_roomName); + addVariable(m_forceCreate); + addVariable(m_createPrivate); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatPutAvatarInRoom::~ChatPutAvatarInRoom() +{ +} + +//----------------------------------------------------------------------- + +bool ChatPutAvatarInRoom::getForceCreate() const +{ + return m_forceCreate.get(); +} + +//----------------------------------------------------------------------- + +bool ChatPutAvatarInRoom::getCreatePrivate() const +{ + return m_createPrivate.get(); +} + +//----------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPutAvatarInRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPutAvatarInRoom.h new file mode 100644 index 00000000..cb3f4394 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatPutAvatarInRoom.h @@ -0,0 +1,52 @@ +// ChatPutAvatarInRoom.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatPutAvatarInRoom_H +#define _INCLUDED_ChatPutAvatarInRoom_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class ChatPutAvatarInRoom : public GameNetworkMessage +{ +public: + ChatPutAvatarInRoom(const std::string & avatarName, const std::string & roomName, bool forceCreate, bool createPrivate); + explicit ChatPutAvatarInRoom(Archive::ReadIterator & source); + ~ChatPutAvatarInRoom(); + + const std::string & getAvatarName () const; + const std::string & getRoomName () const; + bool getForceCreate () const; + bool getCreatePrivate() const; + +private: + ChatPutAvatarInRoom & operator = (const ChatPutAvatarInRoom & rhs); + ChatPutAvatarInRoom(const ChatPutAvatarInRoom & source); + + Archive::AutoVariable m_avatarName; + Archive::AutoVariable m_roomName; + Archive::AutoVariable m_forceCreate; + Archive::AutoVariable m_createPrivate; +}; + +//----------------------------------------------------------------------- + +inline const std::string & ChatPutAvatarInRoom::getAvatarName() const +{ + return m_avatarName.get(); +} + +//----------------------------------------------------------------------- + +inline const std::string & ChatPutAvatarInRoom::getRoomName() const +{ + return m_roomName.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatPutAvatarInRoom_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatQueryRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatQueryRoom.cpp new file mode 100644 index 00000000..9418e983 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatQueryRoom.cpp @@ -0,0 +1,40 @@ +// ChatQueryRoom.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "ChatQueryRoom.h" + +//----------------------------------------------------------------------- + +ChatQueryRoom::ChatQueryRoom(const unsigned int s, const std::string & n) : +GameNetworkMessage("ChatQueryRoom"), +roomName(n), +sequence(s) +{ + addVariable(sequence); + addVariable(roomName); +} + +//----------------------------------------------------------------------- + +ChatQueryRoom::ChatQueryRoom(Archive::ReadIterator & source) : +GameNetworkMessage("ChatQueryRoom"), +roomName(), +sequence() +{ + addVariable(sequence); + addVariable(roomName); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatQueryRoom::~ChatQueryRoom() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatQueryRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatQueryRoom.h new file mode 100644 index 00000000..259383b8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatQueryRoom.h @@ -0,0 +1,48 @@ +// ChatQueryRoom.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatQueryRoom_H +#define _INCLUDED_ChatQueryRoom_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class ChatQueryRoom : public GameNetworkMessage +{ +public: + ChatQueryRoom(unsigned int sequence, const std::string & roomName); + ChatQueryRoom(Archive::ReadIterator &); + ~ChatQueryRoom(); + + const std::string & getRoomName () const; + const unsigned int getSequence () const; + +private: + ChatQueryRoom & operator = (const ChatQueryRoom & rhs); + ChatQueryRoom(const ChatQueryRoom & source); + + Archive::AutoVariable roomName; + Archive::AutoVariable sequence; +}; + +//----------------------------------------------------------------------- + +inline const std::string & ChatQueryRoom::getRoomName() const +{ + return roomName.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatQueryRoom::getSequence() const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatQueryRoom_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatQueryRoomResults.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatQueryRoomResults.cpp new file mode 100644 index 00000000..46e3938a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatQueryRoomResults.cpp @@ -0,0 +1,67 @@ +// ChatQueryRoomResults.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "ChatQueryRoomResults.h" + +//----------------------------------------------------------------------- + +ChatQueryRoomResults::ChatQueryRoomResults(const unsigned int s, const ChatRoomData & n, const std::vector & a, const std::vector & m, const std::vector & i, const std::vector & b) : +GameNetworkMessage("ChatQueryRoomResults"), +avatars(), +invitees(), +moderators(), +banned(), +roomData(n), +sequence(s) +{ + avatars.set(a); + invitees.set(i); + moderators.set(m); + banned.set(b); + addVariable(avatars); + addVariable(invitees); + addVariable(moderators); + addVariable(banned); + addVariable(sequence); + addVariable(roomData); +} + +//----------------------------------------------------------------------- + +ChatQueryRoomResults::ChatQueryRoomResults(Archive::ReadIterator & source) : +GameNetworkMessage("ChatQueryRoomResults"), +avatars(), +invitees(), +moderators(), +banned(), +roomData(), +sequence() +{ + addVariable(avatars); + addVariable(invitees); + addVariable(moderators); + addVariable(banned); + addVariable(sequence); + addVariable(roomData); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatQueryRoomResults::~ChatQueryRoomResults() +{ +} + +//---------------------------------------------------------------------- + +const std::vector & ChatQueryRoomResults::getBanned () const +{ + return banned.get(); +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatQueryRoomResults.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatQueryRoomResults.h new file mode 100644 index 00000000..f5d37004 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatQueryRoomResults.h @@ -0,0 +1,81 @@ +// ChatQueryRoomResults.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatQueryRoomResults_H +#define _INCLUDED_ChatQueryRoomResults_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedNetworkMessages/ChatAvatarId.h" +#include "sharedNetworkMessages/ChatAvatarIdArchive.h" +#include "sharedNetworkMessages/ChatRoomData.h" +#include "sharedNetworkMessages/ChatRoomDataArchive.h" + +//----------------------------------------------------------------------- + +class ChatQueryRoomResults : public GameNetworkMessage +{ +public: + ChatQueryRoomResults(unsigned int sequence, const ChatRoomData & roomData, const std::vector & avatars, const std::vector & moderators, const std::vector & invitees, const std::vector & banned); + ChatQueryRoomResults(Archive::ReadIterator &); + ~ChatQueryRoomResults(); + + const std::vector & getAvatars () const; + const std::vector & getInvitees () const; + const std::vector & getModerators () const; + const std::vector & getBanned () const; + const ChatRoomData & getRoomData () const; + const unsigned int getSequence () const; + +private: + ChatQueryRoomResults & operator = (const ChatQueryRoomResults & rhs); + ChatQueryRoomResults(const ChatQueryRoomResults & source); + + Archive::AutoArray avatars; + Archive::AutoArray invitees; + Archive::AutoArray moderators; + Archive::AutoArray banned; + Archive::AutoVariable roomData; + Archive::AutoVariable sequence; +}; + +//----------------------------------------------------------------------- + +inline const std::vector & ChatQueryRoomResults::getAvatars() const +{ + return avatars.get(); +} + +//----------------------------------------------------------------------- + +inline const std::vector & ChatQueryRoomResults::getInvitees() const +{ + return invitees.get(); +} + +//----------------------------------------------------------------------- + +inline const std::vector & ChatQueryRoomResults::getModerators() const +{ + return moderators.get(); +} + +//----------------------------------------------------------------------- + +inline const ChatRoomData & ChatQueryRoomResults::getRoomData() const +{ + return roomData.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatQueryRoomResults::getSequence() const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatQueryRoomResults_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveAvatarFromRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveAvatarFromRoom.cpp new file mode 100644 index 00000000..b72391b5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveAvatarFromRoom.cpp @@ -0,0 +1,42 @@ +// ChatRemoveAvatarFromRoom.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatAvatarId.h" +#include "sharedNetworkMessages/ChatAvatarIdArchive.h" +#include "sharedNetworkMessages/ChatRemoveAvatarFromRoom.h" + +//----------------------------------------------------------------------- + +ChatRemoveAvatarFromRoom::ChatRemoveAvatarFromRoom(const ChatAvatarId & a, const std::string & r) : +GameNetworkMessage("ChatRemoveAvatarFromRoom"), +avatarId(a), +roomName(r) +{ + addVariable(avatarId); + addVariable(roomName); +} + +//----------------------------------------------------------------------- + +ChatRemoveAvatarFromRoom::ChatRemoveAvatarFromRoom(Archive::ReadIterator & source) : +GameNetworkMessage("ChatRemoveAvatarFromRoom"), +avatarId(), +roomName() +{ + addVariable(avatarId); + addVariable(roomName); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatRemoveAvatarFromRoom::~ChatRemoveAvatarFromRoom() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveAvatarFromRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveAvatarFromRoom.h new file mode 100644 index 00000000..2134c572 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveAvatarFromRoom.h @@ -0,0 +1,48 @@ +// ChatRemoveAvatarFromRoom.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatRemoveAvatarFromRoom_H +#define _INCLUDED_ChatRemoveAvatarFromRoom_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class ChatRemoveAvatarFromRoom : public GameNetworkMessage +{ +public: + ChatRemoveAvatarFromRoom(const ChatAvatarId & avatarId, const std::string & roomName); + explicit ChatRemoveAvatarFromRoom(Archive::ReadIterator & source); + ~ChatRemoveAvatarFromRoom(); + + const ChatAvatarId & getAvatarId () const; + const std::string & getRoomName () const; + +private: + ChatRemoveAvatarFromRoom & operator = (const ChatRemoveAvatarFromRoom & rhs); + ChatRemoveAvatarFromRoom(const ChatRemoveAvatarFromRoom & source); + + Archive::AutoVariable avatarId; + Archive::AutoVariable roomName; +}; + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatRemoveAvatarFromRoom::getAvatarId() const +{ + return avatarId.get(); +} + +//----------------------------------------------------------------------- + +inline const std::string & ChatRemoveAvatarFromRoom::getRoomName() const +{ + return roomName.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatRemoveAvatarFromRoom_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveFriend.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveFriend.cpp new file mode 100644 index 00000000..7875fc0f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveFriend.cpp @@ -0,0 +1,36 @@ +// ChatRemoveFriend.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "ChatRemoveFriend.h" + +//----------------------------------------------------------------------- + +ChatRemoveFriend::ChatRemoveFriend(const ChatAvatarId & c) : +GameNetworkMessage("ChatRemoveFriend"), +characterName(c) +{ + addVariable(characterName); +} + +//----------------------------------------------------------------------- + +ChatRemoveFriend::ChatRemoveFriend(Archive::ReadIterator & source) : +GameNetworkMessage("ChatRemoveFriend"), +characterName() +{ + addVariable(characterName); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatRemoveFriend::~ChatRemoveFriend() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveFriend.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveFriend.h new file mode 100644 index 00000000..f4c62ad7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveFriend.h @@ -0,0 +1,41 @@ +// ChatRemoveFriend.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatRemoveFriend_H +#define _INCLUDED_ChatRemoveFriend_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedNetworkMessages/ChatAvatarId.h" +#include "sharedNetworkMessages/ChatAvatarIdArchive.h" + +//----------------------------------------------------------------------- + +class ChatRemoveFriend : public GameNetworkMessage +{ +public: + ChatRemoveFriend(const ChatAvatarId & characterName); + ChatRemoveFriend(Archive::ReadIterator & source); + ~ChatRemoveFriend(); + + const ChatAvatarId & getCharacterName () const; + +private: + ChatRemoveFriend & operator = (const ChatRemoveFriend & rhs); + ChatRemoveFriend(const ChatRemoveFriend & source); + + Archive::AutoVariable characterName; +}; + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatRemoveFriend::getCharacterName () const +{ + return characterName.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatRemoveFriend_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveModeratorFromRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveModeratorFromRoom.cpp new file mode 100644 index 00000000..1dc25700 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveModeratorFromRoom.cpp @@ -0,0 +1,45 @@ +// ChatRemoveModeratorFromRoom.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatAvatarIdArchive.h" +#include "sharedNetworkMessages/ChatRemoveModeratorFromRoom.h" + +//----------------------------------------------------------------------- + +ChatRemoveModeratorFromRoom::ChatRemoveModeratorFromRoom(const unsigned int s, const ChatAvatarId & a, const std::string & r) : +GameNetworkMessage("ChatRemoveModeratorFromRoom"), +avatarId(a), +roomName(r), +sequenceId(s) +{ + addVariable(avatarId); + addVariable(roomName); + addVariable(sequenceId); +} + +//----------------------------------------------------------------------- + +ChatRemoveModeratorFromRoom::ChatRemoveModeratorFromRoom(Archive::ReadIterator & source) : +GameNetworkMessage("ChatRemoveModeratorFromRoom"), +avatarId(), +roomName(), +sequenceId(0) +{ + addVariable(avatarId); + addVariable(roomName); + addVariable(sequenceId); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatRemoveModeratorFromRoom::~ChatRemoveModeratorFromRoom() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveModeratorFromRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveModeratorFromRoom.h new file mode 100644 index 00000000..74863932 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRemoveModeratorFromRoom.h @@ -0,0 +1,58 @@ +// ChatRemoveModeratorFromRoom.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatRemoveModeratorFromRoom_H +#define _INCLUDED_ChatRemoveModeratorFromRoom_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedNetworkMessages/ChatAvatarId.h" + +//----------------------------------------------------------------------- + +class ChatRemoveModeratorFromRoom : public GameNetworkMessage +{ +public: + ChatRemoveModeratorFromRoom(const unsigned int sequenceId, const ChatAvatarId & avatarId, const std::string & roomName); + ChatRemoveModeratorFromRoom(Archive::ReadIterator & source); + ~ChatRemoveModeratorFromRoom(); + + const ChatAvatarId & getAvatarId () const; + const std::string & getRoomName () const; + const unsigned int getSequenceId () const; + +private: + ChatRemoveModeratorFromRoom & operator = (const ChatRemoveModeratorFromRoom & rhs); + ChatRemoveModeratorFromRoom(const ChatRemoveModeratorFromRoom & source); + + Archive::AutoVariable avatarId; + Archive::AutoVariable roomName; + Archive::AutoVariable sequenceId; +}; + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatRemoveModeratorFromRoom::getAvatarId() const +{ + return avatarId.get(); +} + +//----------------------------------------------------------------------- + +inline const std::string & ChatRemoveModeratorFromRoom::getRoomName() const +{ + return roomName.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatRemoveModeratorFromRoom::getSequenceId() const +{ + return sequenceId.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatRemoveModeratorFromRoom_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestLog.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestLog.cpp new file mode 100644 index 00000000..6d66430e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestLog.cpp @@ -0,0 +1,40 @@ +// ChatRequestLog.cpp +// Copyright 2000-02, Sony Online Createtainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "ChatRequestLog.h" + +//----------------------------------------------------------------------- + +ChatRequestLog::ChatRequestLog(const unsigned int s, Unicode::String const &player) : +GameNetworkMessage("ChatRequestLog"), +m_player(player), +sequence(s) +{ + addVariable(m_player); + addVariable(sequence); +} + +//----------------------------------------------------------------------- + +ChatRequestLog::ChatRequestLog(Archive::ReadIterator & source) : +GameNetworkMessage("ChatRequestLog"), +m_player(), +sequence() +{ + addVariable(m_player); + addVariable(sequence); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatRequestLog::~ChatRequestLog() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestLog.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestLog.h new file mode 100644 index 00000000..376d4dc8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestLog.h @@ -0,0 +1,48 @@ +// ChatRequestLog.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatRequestLog_H +#define _INCLUDED_ChatRequestLog_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class ChatRequestLog : public GameNetworkMessage +{ +public: + ChatRequestLog(const unsigned int sequence, Unicode::String const &player); + ChatRequestLog(Archive::ReadIterator &); + ~ChatRequestLog(); + + Unicode::String const &getPlayer() const; + const unsigned int getSequence () const; + +private: + ChatRequestLog & operator = (const ChatRequestLog & rhs); + ChatRequestLog(const ChatRequestLog & source); + + Archive::AutoVariable m_player; + Archive::AutoVariable sequence; +}; + +//----------------------------------------------------------------------- + +inline Unicode::String const &ChatRequestLog::getPlayer() const +{ + return m_player.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatRequestLog::getSequence() const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatRequestLog_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestPersistentMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestPersistentMessage.cpp new file mode 100644 index 00000000..72e3b254 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestPersistentMessage.cpp @@ -0,0 +1,39 @@ +// ChatRequestPersistentMessage.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "ChatRequestPersistentMessage.h" + +//----------------------------------------------------------------------- + +ChatRequestPersistentMessage::ChatRequestPersistentMessage(const unsigned int s, const unsigned int i) : +GameNetworkMessage("ChatRequestPersistentMessage"), +messageId(i), +sequence(s) +{ + addVariable(sequence); + addVariable(messageId); +} + +//----------------------------------------------------------------------- + +ChatRequestPersistentMessage::ChatRequestPersistentMessage(Archive::ReadIterator & source) : +GameNetworkMessage("ChatRequestPersistentMessage"), +messageId() +{ + addVariable(sequence); + addVariable(messageId); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatRequestPersistentMessage::~ChatRequestPersistentMessage() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestPersistentMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestPersistentMessage.h new file mode 100644 index 00000000..d9b65058 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestPersistentMessage.h @@ -0,0 +1,47 @@ +// ChatRequestPersistentMessage.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatRequestPersistentMessage_H +#define _INCLUDED_ChatRequestPersistentMessage_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +//----------------------------------------------------------------------- + +class ChatRequestPersistentMessage : public GameNetworkMessage +{ +public: + ChatRequestPersistentMessage(const unsigned int sequence, const unsigned int messageId); + explicit ChatRequestPersistentMessage(Archive::ReadIterator &); + ~ChatRequestPersistentMessage(); + + const unsigned int getMessageId () const; + const unsigned int getSequence () const; + +private: + ChatRequestPersistentMessage & operator = (const ChatRequestPersistentMessage & rhs); + ChatRequestPersistentMessage(const ChatRequestPersistentMessage & source); + + Archive::AutoVariable messageId; + Archive::AutoVariable sequence; +}; + +//----------------------------------------------------------------------- + +inline const unsigned int ChatRequestPersistentMessage::getMessageId() const +{ + return messageId.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatRequestPersistentMessage::getSequence() const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatRequestPersistentMessage_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestRoomList.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestRoomList.cpp new file mode 100644 index 00000000..3a569c8e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestRoomList.cpp @@ -0,0 +1,32 @@ +// ChatRequestRoomList.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "ChatRequestRoomList.h" + +//----------------------------------------------------------------------- + +ChatRequestRoomList::ChatRequestRoomList() : +GameNetworkMessage("ChatRequestRoomList") +{ +} + +//----------------------------------------------------------------------- + +ChatRequestRoomList::ChatRequestRoomList(Archive::ReadIterator & source) : +GameNetworkMessage("ChatRequestRoomList") +{ + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatRequestRoomList::~ChatRequestRoomList() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestRoomList.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestRoomList.h new file mode 100644 index 00000000..ed209d6c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRequestRoomList.h @@ -0,0 +1,28 @@ +// ChatRequestRoomList.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatRequestRoomList_H +#define _INCLUDED_ChatRequestRoomList_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class ChatRequestRoomList : public GameNetworkMessage +{ +public: + ChatRequestRoomList(); + ChatRequestRoomList(Archive::ReadIterator &); + ~ChatRequestRoomList(); + +private: + ChatRequestRoomList & operator = (const ChatRequestRoomList & rhs); + ChatRequestRoomList(const ChatRequestRoomList & source); +}; + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatRequestRoomList_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomData.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomData.cpp new file mode 100644 index 00000000..c69ed256 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomData.cpp @@ -0,0 +1,27 @@ +//====================================================================== +// +// ChatRoomData.cpp +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatRoomData.h" + +//----------------------------------------------------------------------- + +//====================================================================== + +ChatRoomData::ChatRoomData () : +id (0), +roomType (0), +path (), +owner (), +creator (), +title (), +moderators (), +moderated (0) +{ +} + +//====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomData.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomData.h new file mode 100644 index 00000000..5122efff --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomData.h @@ -0,0 +1,74 @@ +//====================================================================== +// +// ChatRoomData.h +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#ifndef INCLUDED_ChatRoomData_H +#define INCLUDED_ChatRoomData_H + +//====================================================================== + +#include "sharedNetworkMessages/ChatAvatarId.h" +#include "unicodeArchive/UnicodeArchive.h" + +#include + +//----------------------------------------------------------------------- + +namespace ChatRoomTypes +{ + static const std::string ROOM_SYSTEM = "system"; + static const std::string ROOM_UNIVERSE = "Universe"; + static const std::string ROOM_GALAXY = "Galaxy"; + static const std::string ROOM_PLANET = "Planet"; + static const std::string ROOM_CHAT = "Chat"; + static const std::string ROOM_GROUP = "GroupChat"; + static const std::string ROOM_GUILD = "GuildChat"; + static const std::string ROOM_CITY = "CityChat"; + static const std::string ROOM_IMPERIAL = "Imperial"; + static const std::string ROOM_IMPERIAL_WAR_ROOM = "ImperialWarRoom"; + static const std::string ROOM_REBEL = "Rebel"; + static const std::string ROOM_REBEL_WAR_ROOM = "RebelWarRoom"; + static const std::string ROOM_BOUNTY_HUNTER = "BountyHunter"; + static const std::string ROOM_COMMANDO = "Commando"; + static const std::string ROOM_ENTERTAINER = "Entertainer"; + static const std::string ROOM_FORCE_SENSITIVE = "ForceSensitive"; + static const std::string ROOM_MEDIC = "Medic"; + static const std::string ROOM_OFFICER = "Officer"; + static const std::string ROOM_PILOT = "Pilot"; + static const std::string ROOM_POLITICIAN = "Politician"; + static const std::string ROOM_SMUGGLER = "Smuggler"; + static const std::string ROOM_SPY = "Spy"; + static const std::string ROOM_TRADER = "Trader"; + static const std::string ROOM_BEAST_MASTERY = "BeastMastery"; + static const std::string ROOM_WARDEN = "Warden"; +}//namespace ChatRoomTypes + +enum +{ + CHAT_ROOM_PUBLIC, + CHAT_ROOM_PRIVATE +}; + +//---------------------------------------------------------------------- + +struct ChatRoomData +{ + uint32 id; + unsigned int roomType; + std::string path; + ChatAvatarId owner; + ChatAvatarId creator; + Unicode::String title; + std::vector moderators; + std::vector invitees; + unsigned char moderated; + + ChatRoomData (); +}; + +//====================================================================== + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomDataArchive.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomDataArchive.cpp new file mode 100644 index 00000000..d72ad5ed --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomDataArchive.cpp @@ -0,0 +1,74 @@ +//====================================================================== +// +// ChatRoomDataArchive.cpp +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatRoomDataArchive.h" + +#include "sharedNetworkMessages/ChatAvatarIdArchive.h" +#include "sharedNetworkMessages/ChatRoomData.h" +#include "unicodeArchive/UnicodeArchive.h" + +//---------------------------------------------------------------------- + +namespace Archive +{ + void get (ReadIterator & source, ChatRoomData & target) + { + get (source, target.id); + get (source, target.roomType); + get (source, target.moderated); + get (source, target.path); + get (source, target.owner); + get (source, target.creator); + get (source, target.title); + int moderatorCount; + get (source, moderatorCount); + int i; + target.moderators.clear(); + for(i = 0; i < moderatorCount; ++i) + { + ChatAvatarId id; + get(source, id); + target.moderators.push_back(id); + } + int inviteCount; + get(source, inviteCount); + for(i = 0; i < inviteCount; ++i) + { + ChatAvatarId id; + get(source, id); + target.invitees.push_back(id); + } + } + + void put (ByteStream & target, const ChatRoomData & source) + { + put (target, source.id); + put (target, source.roomType); + put (target, source.moderated); + put (target, source.path); + put (target, source.owner); + put (target, source.creator); + put (target, source.title); + int c = static_cast(source.moderators.size()); + put (target, c); + std::vector::const_iterator i; + for(i = source.moderators.begin(); i != source.moderators.end(); ++i) + { + put(target, (*i)); + } + + c = static_cast(source.invitees.size()); + put(target, c); + for(i = source.invitees.begin(); i != source.invitees.end(); ++i) + { + put(target, (*i)); + } + } +} + +//====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomDataArchive.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomDataArchive.h new file mode 100644 index 00000000..18b5d05c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomDataArchive.h @@ -0,0 +1,27 @@ +//====================================================================== +// +// ChatRoomDataArchive.h +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#ifndef INCLUDED_ChatRoomDataArchive_H +#define INCLUDED_ChatRoomDataArchive_H + +//====================================================================== + +#include "Archive/ByteStream.h" + +struct ChatRoomData; + +//---------------------------------------------------------------------- + +namespace Archive +{ + void get (ReadIterator & source, ChatRoomData & target); + void put (ByteStream & target, const ChatRoomData & source); +} + +//====================================================================== + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomList.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomList.cpp new file mode 100644 index 00000000..d09827a6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomList.cpp @@ -0,0 +1,36 @@ +// ChatRoomList.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "ChatRoomList.h" + +//----------------------------------------------------------------------- + +ChatRoomList::ChatRoomList(const std::vector & r) : +GameNetworkMessage("ChatRoomList"), +roomData() +{ + roomData.set(r); + addVariable(roomData); +} + +//----------------------------------------------------------------------- + +ChatRoomList::ChatRoomList(Archive::ReadIterator & source) : +GameNetworkMessage("ChatRoomList"), +roomData() +{ + addVariable(roomData); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatRoomList::~ChatRoomList() +{ +} + +//----------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomList.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomList.h new file mode 100644 index 00000000..2ebe7288 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomList.h @@ -0,0 +1,42 @@ +// ChatRoomList.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatRoomList_H +#define _INCLUDED_ChatRoomList_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedNetworkMessages/ChatRoomData.h" +#include "sharedNetworkMessages/ChatRoomDataArchive.h" +#include + +//----------------------------------------------------------------------- + +class ChatRoomList : public GameNetworkMessage +{ +public: + explicit ChatRoomList(const std::vector & roomData); + explicit ChatRoomList(Archive::ReadIterator &); + ~ChatRoomList(); + + const std::vector & getRoomData () const; + +private: + ChatRoomList & operator = (const ChatRoomList & rhs); + ChatRoomList(const ChatRoomList & source); + + Archive::AutoArray roomData; +}; + +//----------------------------------------------------------------------- + +inline const std::vector & ChatRoomList::getRoomData() const +{ + return roomData.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatRoomList_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomMessage.cpp new file mode 100644 index 00000000..ad5b90c4 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomMessage.cpp @@ -0,0 +1,47 @@ +// ChatRoomMessage.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "ChatRoomMessage.h" + +//----------------------------------------------------------------------- + +ChatRoomMessage::ChatRoomMessage(const unsigned int r, const ChatAvatarId & f, const Unicode::String & m, const Unicode::String & o) : +GameNetworkMessage("ChatRoomMessage"), +fromName(f), +fromRoom(r), +message(m), +outOfBand(o) +{ + addVariable(fromName); + addVariable(fromRoom); + addVariable(message); + addVariable(outOfBand); +} + +//----------------------------------------------------------------------- + +ChatRoomMessage::ChatRoomMessage(Archive::ReadIterator & source) : +GameNetworkMessage("ChatRoomMessage"), +fromName(), +message(), +outOfBand() +{ + addVariable(fromName); + addVariable(fromRoom); + addVariable(message); + addVariable(outOfBand); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatRoomMessage::~ChatRoomMessage() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomMessage.h new file mode 100644 index 00000000..0809c286 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatRoomMessage.h @@ -0,0 +1,68 @@ +// ChatRoomMessage.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatRoomMessage_H +#define _INCLUDED_ChatRoomMessage_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedNetworkMessages/ChatAvatarId.h" +#include "sharedNetworkMessages/ChatAvatarIdArchive.h" + +//----------------------------------------------------------------------- + +class ChatRoomMessage : public GameNetworkMessage +{ +public: + ChatRoomMessage(const unsigned int fromRoom, const ChatAvatarId & fromName, const Unicode::String & message, const Unicode::String & outOfBand); + explicit ChatRoomMessage(Archive::ReadIterator & source); + ~ChatRoomMessage(); + + const ChatAvatarId & getFromName () const; + const unsigned int getFromRoom () const; + const Unicode::String & getMessage () const; + const Unicode::String & getOutOfBand () const; + +private: + ChatRoomMessage & operator = (const ChatRoomMessage & rhs); + ChatRoomMessage(const ChatRoomMessage & source); + + Archive::AutoVariable fromName; + Archive::AutoVariable fromRoom; + Archive::AutoVariable message; + Archive::AutoVariable outOfBand; +}; + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatRoomMessage::getFromName() const +{ + return fromName.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatRoomMessage::getFromRoom() const +{ + return fromRoom.get(); +} + +//----------------------------------------------------------------------- + +inline const Unicode::String & ChatRoomMessage::getMessage() const +{ + return message.get(); +} + +//----------------------------------------------------------------------- + +inline const Unicode::String & ChatRoomMessage::getOutOfBand() const +{ + return outOfBand.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatRoomMessage_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatSendToRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatSendToRoom.cpp new file mode 100644 index 00000000..43496dac --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatSendToRoom.cpp @@ -0,0 +1,46 @@ +// ChatSendToRoom.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "ChatSendToRoom.h" + +//----------------------------------------------------------------------- + +ChatSendToRoom::ChatSendToRoom(const unsigned int s, const unsigned int r, const Unicode::String & m, const Unicode::String & o) : +GameNetworkMessage("ChatSendToRoom"), +message(m), +outOfBand(o), +roomId(r), +sequence(s) +{ + addVariable(message); + addVariable(outOfBand); + addVariable(roomId); + addVariable(sequence); +} + +//----------------------------------------------------------------------- + +ChatSendToRoom::ChatSendToRoom(Archive::ReadIterator & source) : +GameNetworkMessage("ChatSendToRoom"), +message(), +outOfBand(), +roomId() +{ + addVariable(message); + addVariable(outOfBand); + addVariable(roomId); + addVariable(sequence); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatSendToRoom::~ChatSendToRoom() +{ +} + +//----------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatSendToRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatSendToRoom.h new file mode 100644 index 00000000..56729c6f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatSendToRoom.h @@ -0,0 +1,66 @@ +// ChatSendToRoom.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatSendToRoom_H +#define _INCLUDED_ChatSendToRoom_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class ChatSendToRoom : public GameNetworkMessage +{ +public: + ChatSendToRoom(const unsigned int sequence, const unsigned int roomId, const Unicode::String & message, const Unicode::String & outOfBand); + ChatSendToRoom(Archive::ReadIterator & source); + ~ChatSendToRoom(); + + const Unicode::String & getMessage () const; + const Unicode::String & getOutOfBand () const; + const unsigned int getRoomId () const; + const unsigned int getSequence () const; + +private: + ChatSendToRoom & operator = (const ChatSendToRoom & rhs); + ChatSendToRoom(const ChatSendToRoom & source); + + Archive::AutoVariable message; + Archive::AutoVariable outOfBand; + Archive::AutoVariable roomId; + Archive::AutoVariable sequence; +}; + +//----------------------------------------------------------------------- + +inline const Unicode::String & ChatSendToRoom::getMessage() const +{ + return message.get(); +} + +//----------------------------------------------------------------------- + +inline const Unicode::String & ChatSendToRoom::getOutOfBand() const +{ + return outOfBand.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatSendToRoom::getRoomId() const +{ + return roomId.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatSendToRoom::getSequence() const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatSendToRoom_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatServerStatus.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatServerStatus.cpp new file mode 100644 index 00000000..942b88d6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatServerStatus.cpp @@ -0,0 +1,35 @@ +// ChatServerStatus.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatServerStatus.h" + +//----------------------------------------------------------------------- + +ChatServerStatus::ChatServerStatus(const bool s) : +GameNetworkMessage("ChatServerStatus"), +status(s) +{ + addVariable(status); +} + +//----------------------------------------------------------------------- + +ChatServerStatus::ChatServerStatus(Archive::ReadIterator & source) : +GameNetworkMessage("ChatServerStatus"), +status() +{ + addVariable(status); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatServerStatus::~ChatServerStatus() +{ +} + +//----------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatServerStatus.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatServerStatus.h new file mode 100644 index 00000000..a0d6a41a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatServerStatus.h @@ -0,0 +1,39 @@ +// ChatServerStatus.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatServerStatus_H +#define _INCLUDED_ChatServerStatus_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class ChatServerStatus : public GameNetworkMessage +{ +public: + explicit ChatServerStatus(const bool status); + explicit ChatServerStatus(Archive::ReadIterator & source); + ~ChatServerStatus(); + + const bool getStatus () const; + +private: + ChatServerStatus & operator = (const ChatServerStatus & rhs); + ChatServerStatus(const ChatServerStatus & source); + + Archive::AutoVariable status; +}; + +//----------------------------------------------------------------------- + +inline const bool ChatServerStatus::getStatus() const +{ + return status.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatServerStatus_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatSystemMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatSystemMessage.cpp new file mode 100644 index 00000000..ee2fa230 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatSystemMessage.cpp @@ -0,0 +1,45 @@ +// ChatSystemMessage.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatSystemMessage.h" +#include "unicodeArchive/UnicodeArchive.h" + +//----------------------------------------------------------------------- + +ChatSystemMessage::ChatSystemMessage(const unsigned char f, const Unicode::String & m, const Unicode::String & o) : +GameNetworkMessage("ChatSystemMessage"), +flags(f), +message(m), +outOfBand(o) +{ + addVariable(flags); + addVariable(message); + addVariable(outOfBand); +} + +//----------------------------------------------------------------------- + +ChatSystemMessage::ChatSystemMessage(Archive::ReadIterator & source) : +GameNetworkMessage("ChatSystemMessage"), +flags(), +message(), +outOfBand() +{ + addVariable(flags); + addVariable(message); + addVariable(outOfBand); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatSystemMessage::~ChatSystemMessage() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatSystemMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatSystemMessage.h new file mode 100644 index 00000000..fd39dcbe --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatSystemMessage.h @@ -0,0 +1,67 @@ +// ChatSystemMessage.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatSystemMessage_H +#define _INCLUDED_ChatSystemMessage_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "unicodeArchive/UnicodeArchive.h" + +//----------------------------------------------------------------------- + +class ChatSystemMessage : public GameNetworkMessage +{ +public: + enum Flags + { + PERSONAL = 0x00, + BROADCAST = 0x01, + F_chatBoxOnly = 0x02, + F_quest = 0x04 + }; + + ChatSystemMessage(const unsigned char flags, const Unicode::String & message, const Unicode::String & outOfBand); + ChatSystemMessage(Archive::ReadIterator & source); + ~ChatSystemMessage(); + + const unsigned char getFlags () const; + const Unicode::String & getMessage () const; + const Unicode::String & getOutOfBand () const; +private: + ChatSystemMessage & operator = (const ChatSystemMessage & rhs); + ChatSystemMessage(const ChatSystemMessage & source); + + Archive::AutoVariable flags; + Archive::AutoVariable message; + Archive::AutoVariable outOfBand; + +}; + +//----------------------------------------------------------------------- + +inline const unsigned char ChatSystemMessage::getFlags() const +{ + return flags.get(); +} + +//----------------------------------------------------------------------- + +inline const Unicode::String & ChatSystemMessage::getMessage() const +{ + return message.get(); +} + + +//----------------------------------------------------------------------- + +inline const Unicode::String & ChatSystemMessage::getOutOfBand() const +{ + return outOfBand.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatSystemMessage_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatUnbanAvatarFromRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatUnbanAvatarFromRoom.cpp new file mode 100644 index 00000000..6e5f09f9 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatUnbanAvatarFromRoom.cpp @@ -0,0 +1,43 @@ +// ChatUnbanAvatarFromRoom.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatUnbanAvatarFromRoom.h" +#include "sharedNetworkMessages/ChatAvatarIdArchive.h" + +//----------------------------------------------------------------------- + +ChatUnbanAvatarFromRoom::ChatUnbanAvatarFromRoom(const unsigned int s, const ChatAvatarId & a, const std::string & r) : +GameNetworkMessage("ChatUnbanAvatarFromRoom"), +avatarId(a), +roomName(r), +sequence(s) +{ + addVariable(avatarId); + addVariable(roomName); + addVariable(sequence); +} + +//----------------------------------------------------------------------- + +ChatUnbanAvatarFromRoom::ChatUnbanAvatarFromRoom(Archive::ReadIterator & source) : +GameNetworkMessage("ChatUnbanAvatarFromRoom"), +avatarId(), +roomName() +{ + addVariable(avatarId); + addVariable(roomName); + addVariable(sequence); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatUnbanAvatarFromRoom::~ChatUnbanAvatarFromRoom() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatUnbanAvatarFromRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatUnbanAvatarFromRoom.h new file mode 100644 index 00000000..1679dd31 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatUnbanAvatarFromRoom.h @@ -0,0 +1,57 @@ +// ChatUnbanAvatarFromRoom.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. + +#ifndef _INCLUDED_ChatUnbanAvatarFromRoom_H +#define _INCLUDED_ChatUnbanAvatarFromRoom_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedNetworkMessages/ChatAvatarId.h" + +//----------------------------------------------------------------------- + +class ChatUnbanAvatarFromRoom : public GameNetworkMessage +{ +public: + ChatUnbanAvatarFromRoom(const unsigned int sequence, const ChatAvatarId & avatarId, const std::string & roomName); + ChatUnbanAvatarFromRoom(Archive::ReadIterator & source); + ~ChatUnbanAvatarFromRoom(); + + const ChatAvatarId & getAvatarId () const; + const std::string & getRoomName () const; + const unsigned int getSequence () const; + +private: + ChatUnbanAvatarFromRoom & operator = (const ChatUnbanAvatarFromRoom & rhs); + ChatUnbanAvatarFromRoom(const ChatUnbanAvatarFromRoom & source); + + Archive::AutoVariable avatarId; //avatar to ban + Archive::AutoVariable roomName; + Archive::AutoVariable sequence; +}; + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatUnbanAvatarFromRoom::getAvatarId() const +{ + return avatarId.get(); +} + +//----------------------------------------------------------------------- + +inline const std::string & ChatUnbanAvatarFromRoom::getRoomName() const +{ + return roomName.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatUnbanAvatarFromRoom::getSequence() const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatUnbanAvatarFromRoom_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatUninviteFromRoom.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatUninviteFromRoom.cpp new file mode 100644 index 00000000..50a26506 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatUninviteFromRoom.cpp @@ -0,0 +1,45 @@ +// ChatUninviteFromRoom.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ChatAvatarIdArchive.h" +#include "sharedNetworkMessages/ChatUninviteFromRoom.h" + +//----------------------------------------------------------------------- + +ChatUninviteFromRoom::ChatUninviteFromRoom(const unsigned int s, const ChatAvatarId & a, const std::string & r) : +GameNetworkMessage("ChatUninviteFromRoom"), +avatar(a), +roomName(r), +sequence(s) +{ + addVariable(avatar); + addVariable(roomName); + addVariable(sequence); +} + +//----------------------------------------------------------------------- + +ChatUninviteFromRoom::ChatUninviteFromRoom(Archive::ReadIterator & source) : +GameNetworkMessage("ChatUninviteFromRoom"), +avatar(), +roomName(), +sequence() +{ + addVariable(avatar); + addVariable(roomName); + addVariable(sequence); + unpack(source); +} + +//----------------------------------------------------------------------- + +ChatUninviteFromRoom::~ChatUninviteFromRoom() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatUninviteFromRoom.h b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatUninviteFromRoom.h new file mode 100644 index 00000000..4d51bd55 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/chat/ChatUninviteFromRoom.h @@ -0,0 +1,58 @@ +// ChatUninviteFromRoom.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_ChatUninviteFromRoom_H +#define _INCLUDED_ChatUninviteFromRoom_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedNetworkMessages/ChatAvatarId.h" + +//----------------------------------------------------------------------- + +class ChatUninviteFromRoom : public GameNetworkMessage +{ +public: + ChatUninviteFromRoom(const unsigned int sequence, const ChatAvatarId & avatar, const std::string & roomName); + explicit ChatUninviteFromRoom(Archive::ReadIterator & source); + ~ChatUninviteFromRoom(); + + const ChatAvatarId & getAvatar () const; + const std::string & getRoomName () const; + const unsigned int getSequence () const; + +private: + ChatUninviteFromRoom & operator = (const ChatUninviteFromRoom & rhs); + ChatUninviteFromRoom(const ChatUninviteFromRoom & source); + + Archive::AutoVariable avatar; + Archive::AutoVariable roomName; + Archive::AutoVariable sequence; +}; + +//----------------------------------------------------------------------- + +inline const ChatAvatarId & ChatUninviteFromRoom::getAvatar() const +{ + return avatar.get(); +} + +//----------------------------------------------------------------------- + +inline const std::string & ChatUninviteFromRoom::getRoomName() const +{ + return roomName.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned int ChatUninviteFromRoom::getSequence() const +{ + return sequence.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ChatUninviteFromRoom_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AIDebuggingMessages.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AIDebuggingMessages.cpp new file mode 100644 index 00000000..44801932 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AIDebuggingMessages.cpp @@ -0,0 +1,292 @@ +// ====================================================================== +// +// AIDebuggingMessages.cpp +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/AIDebuggingMessages.h" + +//----------------------------------------------------------------------- + +const char* const RequestWatchObjectPath::MESSAGE_TYPE = "RequestWatchObjectPath::MESSAGE_TYPE"; +const char* const RequestWatchPathMap::MESSAGE_TYPE = "RequestWatchPathMap::MESSAGE_TYPE"; +const char* const RequestUnstick::MESSAGE_TYPE = "RequestUnstick::MESSAGE_TYPE"; +const char* const AINodeInfo::MESSAGE_TYPE = "AINodeInfo::MESSAGE_TYPE"; +const char* const AIPathInfo::MESSAGE_TYPE = "AIPathInfo::MESSAGE_TYPE"; + +//======================================================================= + +RequestWatchObjectPath::RequestWatchObjectPath() +: GameNetworkMessage (MESSAGE_TYPE), + m_objectId(), + m_client(), + m_enable() +{ + addVariable(m_objectId); + addVariable(m_client); + addVariable(m_enable); +} + +//----------------------------------------------------------------------- + +RequestWatchObjectPath::RequestWatchObjectPath(Archive::ReadIterator& source) +: GameNetworkMessage (MESSAGE_TYPE), + m_objectId(), + m_client(), + m_enable() +{ + addVariable(m_objectId); + addVariable(m_client); + addVariable(m_enable); + unpack(source); +} + +//----------------------------------------------------------------------- + +RequestWatchObjectPath::~RequestWatchObjectPath() +{ +} + +//======================================================================= + +RequestWatchPathMap::RequestWatchPathMap() +: GameNetworkMessage (MESSAGE_TYPE), + m_client(), + m_enable() +{ + addVariable(m_client); + addVariable(m_enable); +} + +//----------------------------------------------------------------------- + +RequestWatchPathMap::RequestWatchPathMap(Archive::ReadIterator& source) +: GameNetworkMessage (MESSAGE_TYPE), + m_client(), + m_enable() +{ + addVariable(m_client); + addVariable(m_enable); + unpack(source); +} + +//----------------------------------------------------------------------- + +RequestWatchPathMap::~RequestWatchPathMap() +{ +} + +//======================================================================= + +RequestUnstick::RequestUnstick() +: GameNetworkMessage (MESSAGE_TYPE), + m_client() +{ + addVariable(m_client); +} + +//----------------------------------------------------------------------- + +RequestUnstick::RequestUnstick(Archive::ReadIterator& source) +: GameNetworkMessage (MESSAGE_TYPE), + m_client() +{ + addVariable(m_client); + unpack(source); +} + +//----------------------------------------------------------------------- + +RequestUnstick::~RequestUnstick() +{ +} + +//======================================================================= + +AINodeInfo::AINodeInfo() +: GameNetworkMessage (MESSAGE_TYPE), + m_nodeId(), + m_locationX(), + m_locationY(), + m_locationZ(), + m_parent(), + m_children(), + m_siblings(), + m_type(), + m_level() +{ + addVariable(m_nodeId); + addVariable(m_locationX); + addVariable(m_locationY); + addVariable(m_locationZ); + addVariable(m_parent); + addVariable(m_children); + addVariable(m_siblings); + addVariable(m_type); + addVariable(m_level); +} + +//----------------------------------------------------------------------- + +AINodeInfo::AINodeInfo(Archive::ReadIterator& source) +: GameNetworkMessage (MESSAGE_TYPE), + m_nodeId(), + m_locationX(), + m_locationY(), + m_locationZ(), + m_parent(), + m_children(), + m_siblings(), + m_type(), + m_level() +{ + addVariable(m_nodeId); + addVariable(m_locationX); + addVariable(m_locationY); + addVariable(m_locationZ); + addVariable(m_parent); + addVariable(m_children); + addVariable(m_siblings); + addVariable(m_type); + addVariable(m_level); + unpack(source); +} + +//----------------------------------------------------------------------- + +const std::vector& AINodeInfo::getChildren() const +{ + return m_children.get(); +} + +//----------------------------------------------------------------------- + +void AINodeInfo::setChildren(const std::vector& c) +{ + m_children.set(c); +} + +//----------------------------------------------------------------------- + +const std::vector& AINodeInfo::getSiblings() const +{ + return m_siblings.get(); +} + +//----------------------------------------------------------------------- + +void AINodeInfo::setSiblings(const std::vector& s) +{ + m_siblings.set(s); +} + +//---------------------------------------------------------------------- + +AINodeInfo::~AINodeInfo() +{ +} + +//======================================================================= + +AIPathInfo::AIPathInfo() +: GameNetworkMessage (MESSAGE_TYPE), + m_objectId(), + m_nodes() +{ + addVariable(m_objectId); + addVariable(m_nodes); +} + +//----------------------------------------------------------------------- + +AIPathInfo::AIPathInfo(Archive::ReadIterator& source) +: GameNetworkMessage (MESSAGE_TYPE), + m_objectId(), + m_nodes() +{ + addVariable(m_objectId); + addVariable(m_nodes); + unpack(source); +} + +//----------------------------------------------------------------------- + +std::vector const &AIPathInfo::getNodes() const +{ + return m_nodes.get(); +} + +//----------------------------------------------------------------------- + +void AIPathInfo::setNodes(std::vector const &n) +{ + m_nodes.set(n); +} + +//---------------------------------------------------------------------- + +AIPathInfo::~AIPathInfo() +{ +} + + +//---------------------------------------------------------------------- + +namespace Archive +{ + void put(ByteStream & target, AIPathInfo_NodeInfo const &n) + { + put(target, n.node); + unsigned char state = static_cast(n.state); + put(target, state); + } + void get(ReadIterator & source, AIPathInfo_NodeInfo &n) + { + get(source, n.node); + unsigned char state; + get(source, state); + n.state = static_cast(state); + } +}; + +//----------------------------------------------------------------------- + +DebugTransformMessage::DebugTransformMessage(const Transform& transform, const NetworkId& cellId) : +GameNetworkMessage("DebugTransformMessage"), +m_transform(transform), +m_cellId(cellId) +{ + addVariable(m_transform); + addVariable(m_cellId); +} + +//----------------------------------------------------------------------- + +DebugTransformMessage::DebugTransformMessage(Archive::ReadIterator & source) : +GameNetworkMessage("DebugTransformMessage"), +m_transform(), +m_cellId(NetworkId::cms_invalid) +{ + addVariable(m_transform); + addVariable(m_cellId); + unpack(source); +} + +//----------------------------------------------------------------------- + +DebugTransformMessage::~DebugTransformMessage () +{ +} + +//----------------------------------------------------------------------- + +void DebugTransformMessage::pack(Archive::ByteStream & target) const +{ + AutoByteStream::pack(target); +} + +//======================================================================= diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AIDebuggingMessages.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AIDebuggingMessages.h new file mode 100644 index 00000000..d4a5deb6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AIDebuggingMessages.h @@ -0,0 +1,417 @@ +// ====================================================================== +// +// AIDebuggingMessages.h +// copyright(c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_AIDebuggingMessages_H +#define INCLUDED_AIDebuggingMessages_H + +//----------------------------------------------------------------------- + +#include "sharedMath/Vector.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedMath/Transform.h" +#include "sharedMathArchive/TransformArchive.h" + +// ====================================================================== + +/** + * This message is sent by the client to request the information about a object's path + * This message will result in 1 AIObjectPathInfo message being sent down to the client. + * This message will optionally result in 1 AIPathInfo messages being sent down to the client. + * This message will optionally result in 1 or multiple AINodeInfo messages being sent down + * to the client (via the PathInfo message). + */ +class RequestWatchObjectPath : public GameNetworkMessage +{ +public: + static const char* const MESSAGE_TYPE; + +public: + RequestWatchObjectPath(); + explicit RequestWatchObjectPath(Archive::ReadIterator& source); + virtual ~RequestWatchObjectPath(); + + NetworkId getObjectId() const; + void setObjectId(const NetworkId& pathId); + NetworkId getClientId() const; + void setClientId(const NetworkId &i_client); + bool getEnable() const; + void setEnable(const bool enable); + +private: + Archive::AutoVariable m_objectId; + Archive::AutoVariable m_client; + Archive::AutoVariable m_enable; + +private: + RequestWatchObjectPath(const RequestWatchObjectPath&); + RequestWatchObjectPath& operator=(const RequestWatchObjectPath& rhs); +}; + +//----------------------------------------------------------------------- + +inline NetworkId RequestWatchObjectPath::getObjectId() const +{ + return m_objectId.get(); +} + +//----------------------------------------------------------------------- + +inline void RequestWatchObjectPath::setObjectId(const NetworkId& objectId) +{ + m_objectId.set(objectId); +} + +//----------------------------------------------------------------------- + +inline NetworkId RequestWatchObjectPath::getClientId() const +{ + return m_client.get(); +} + +//----------------------------------------------------------------------- + +inline void RequestWatchObjectPath::setClientId(const NetworkId& objectId) +{ + m_client.set(objectId); +} + +//----------------------------------------------------------------------- + +inline bool RequestWatchObjectPath::getEnable() const +{ + return m_enable.get(); +} + +//----------------------------------------------------------------------- + +inline void RequestWatchObjectPath::setEnable(const bool enable) +{ + m_enable.set(enable); +} + +// ====================================================================== + +/** + * This message is sent by the client to request the information about a object's path + * This message will result in 1 AIObjectPathInfo message being sent down to the client. + * This message will optionally result in 1 AIPathInfo messages being sent down to the client. + * This message will optionally result in 1 or multiple AINodeInfo messages being sent down + * to the client (via the PathInfo message). + */ +class RequestWatchPathMap : public GameNetworkMessage +{ +public: + static const char* const MESSAGE_TYPE; + +public: + RequestWatchPathMap(); + explicit RequestWatchPathMap(Archive::ReadIterator& source); + virtual ~RequestWatchPathMap(); + + NetworkId getClientId() const; + void setClientId(const NetworkId &i_client); + bool getEnable() const; + void setEnable(const bool enable); + +private: + Archive::AutoVariable m_client; + Archive::AutoVariable m_enable; + +private: + RequestWatchPathMap(const RequestWatchPathMap&); + RequestWatchPathMap& operator=(const RequestWatchPathMap& rhs); +}; + +//----------------------------------------------------------------------- + +inline NetworkId RequestWatchPathMap::getClientId() const +{ + return m_client.get(); +} + +//----------------------------------------------------------------------- + +inline void RequestWatchPathMap::setClientId(const NetworkId& objectId) +{ + m_client.set(objectId); +} + +//----------------------------------------------------------------------- + +inline bool RequestWatchPathMap::getEnable() const +{ + return m_enable.get(); +} + +//----------------------------------------------------------------------- + +inline void RequestWatchPathMap::setEnable(const bool enable) +{ + m_enable.set(enable); +} + +// ====================================================================== + +class RequestUnstick : public GameNetworkMessage +{ +public: + static const char* const MESSAGE_TYPE; + +public: + RequestUnstick(); + explicit RequestUnstick(Archive::ReadIterator& source); + virtual ~RequestUnstick(); + + NetworkId getClientId() const; + void setClientId(const NetworkId &i_client); + +private: + Archive::AutoVariable m_client; + +private: + RequestUnstick(const RequestUnstick&); + RequestUnstick& operator=(const RequestUnstick& rhs); +}; + +//----------------------------------------------------------------------- + +inline NetworkId RequestUnstick::getClientId() const +{ + return m_client.get(); +} + +//----------------------------------------------------------------------- + +inline void RequestUnstick::setClientId(const NetworkId& objectId) +{ + m_client.set(objectId); +} + +//======================================================================== +/** + * This message is sent from the gameserver to the client, and represents the data about a given nodeId. + */ +class AINodeInfo : public GameNetworkMessage +{ +public: + static const char* const MESSAGE_TYPE; + +public: + AINodeInfo(); + explicit AINodeInfo(Archive::ReadIterator& source); + virtual ~AINodeInfo(); + + int getNodeId() const; + void setNodeId(int nodeId); + Vector getLocation() const; + void setLocation(const Vector& v); + int getParent() const; + void setParent(int p); + const stdvector::fwd& getChildren() const; + void setChildren(const stdvector::fwd& c); + const stdvector::fwd& getSiblings() const; + void setSiblings(const stdvector::fwd& c); + int getType() const; + void setType(int t); + int getLevel() const; + void setLevel(int l); + + +private: + Archive::AutoVariable m_nodeId; + Archive::AutoVariable m_locationX; + Archive::AutoVariable m_locationY; + Archive::AutoVariable m_locationZ; + Archive::AutoVariable m_parent; + Archive::AutoArray m_children; + Archive::AutoArray m_siblings; + Archive::AutoVariable m_type; + Archive::AutoVariable m_level; + +private: + AINodeInfo(const AINodeInfo&); + AINodeInfo& operator=(const AINodeInfo& rhs); +}; + +//----------------------------------------------------------------------- + +inline int AINodeInfo::getNodeId() const +{ + return m_nodeId.get(); +} + +//----------------------------------------------------------------------- + +inline void AINodeInfo::setNodeId(int n) +{ + m_nodeId.set(n); +} + +//----------------------------------------------------------------------- + +inline Vector AINodeInfo::getLocation() const +{ + return Vector(m_locationX.get(), m_locationY.get(), m_locationZ.get()); +} + +//----------------------------------------------------------------------- + +inline void AINodeInfo::setLocation(const Vector& loc) +{ + m_locationX.set(loc.x); + m_locationY.set(loc.y); + m_locationZ.set(loc.z); +} + +//----------------------------------------------------------------------- + +inline int AINodeInfo::getParent() const +{ + return m_parent.get(); +} + +//----------------------------------------------------------------------- + +inline void AINodeInfo::setParent(int p) +{ + m_parent.set(p); +} + +//----------------------------------------------------------------------- + +inline int AINodeInfo::getType() const +{ + return m_type.get(); +} + +//----------------------------------------------------------------------- + +inline void AINodeInfo::setType(int t) +{ + m_type.set(t); +} + +//----------------------------------------------------------------------- + +inline int AINodeInfo::getLevel() const +{ + return m_level.get(); +} + +//----------------------------------------------------------------------- + +inline void AINodeInfo::setLevel(int l) +{ + m_level.set(l); +} + +// ====================================================================== + +struct AIPathInfo_NodeInfo +{ + int node; + enum eState + { + kReported=1, + kCanMove=2, + kTarget=4, + kPassed=8, + kFacingTarget=16, + kInCone=32, + kFinalTarget=64 + }; + eState state; + bool operator==(AIPathInfo_NodeInfo const &other) const + { + return node == other.node && state == other.state; + } +}; + +/** + * This message is sent from the gameserver to the client, and represents the data about a given object's path + */ +class AIPathInfo : public GameNetworkMessage +{ +public: + static const char* const MESSAGE_TYPE; + +public: + AIPathInfo(); + explicit AIPathInfo(Archive::ReadIterator &source); + virtual ~AIPathInfo(); + + NetworkId const &getObjectId() const; + void setObjectId(NetworkId const & pathId); + + stdvector::fwd const &getNodes() const; + void setNodes(stdvector::fwd const &n); + +private: + Archive::AutoVariable m_objectId; + Archive::AutoArray m_nodes; + +private: + AIPathInfo(AIPathInfo const &); + AIPathInfo &operator=(AIPathInfo const &); +}; + +//----------------------------------------------------------------------- + +inline NetworkId const &AIPathInfo::getObjectId() const +{ + return m_objectId.get(); +} + +//----------------------------------------------------------------------- + +inline void AIPathInfo::setObjectId(NetworkId const &objectId) +{ + m_objectId.set(objectId); +} + +// ====================================================================== + +namespace Archive +{ + void put(ByteStream & target, AIPathInfo_NodeInfo const &n); + void get(ReadIterator & source, AIPathInfo_NodeInfo &n); +}; + +// ====================================================================== + +class DebugTransformMessage : public GameNetworkMessage +{ +public: //ctor/dtor + DebugTransformMessage (const Transform& transform, const NetworkId& cellId); + explicit DebugTransformMessage (Archive::ReadIterator & source); + ~DebugTransformMessage (); + +public: // methods + const Transform & getTransform () const; + const NetworkId & getCellId () const; + + void pack (Archive::ByteStream & target) const; + +private: + Archive::AutoVariable m_transform; + Archive::AutoVariable m_cellId; +}; + +//----------------------------------------------------------------------- +inline const Transform & DebugTransformMessage::getTransform() const +{ + return m_transform.get(); +} +//----------------------------------------------------------------------- +inline const NetworkId & DebugTransformMessage::getCellId() const +{ + return m_cellId.get(); +} +//----------------------------------------------------------------------- + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AcceptAuctionMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AcceptAuctionMessage.cpp new file mode 100644 index 00000000..58658ced --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AcceptAuctionMessage.cpp @@ -0,0 +1,35 @@ +// ====================================================================== +// +// AcceptAuctionMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/AcceptAuctionMessage.h" + +// ====================================================================== + +AcceptAuctionMessage::AcceptAuctionMessage(NetworkId itemId) : + GameNetworkMessage("AcceptAuctionMessage"), + m_itemId(itemId) +{ + AutoByteStream::addVariable(m_itemId); +} + +// ====================================================================== + +AcceptAuctionMessage::AcceptAuctionMessage(Archive::ReadIterator &source) : + GameNetworkMessage("AcceptAuctionMessage"), + m_itemId() +{ + AutoByteStream::addVariable(m_itemId); + unpack(source); +} + +// ====================================================================== + +AcceptAuctionMessage::~AcceptAuctionMessage() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AcceptAuctionMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AcceptAuctionMessage.h new file mode 100644 index 00000000..624381d3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AcceptAuctionMessage.h @@ -0,0 +1,50 @@ +// ====================================================================== +// +// AcceptAuctionMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _AcceptAuctionMessage_H +#define _AcceptAuctionMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" + +//----------------------------------------------------------------------- + +class AcceptAuctionMessage : public GameNetworkMessage +{ +public: + + AcceptAuctionMessage(NetworkId itemId); + explicit AcceptAuctionMessage(Archive::ReadIterator &source); + + ~AcceptAuctionMessage(); + +public: // methods + + NetworkId getItemId() const; + +public: // types + +private: + Archive::AutoVariable m_itemId; //the item to be auctioned +}; + +// ---------------------------------------------------------------------- + +inline NetworkId AcceptAuctionMessage::getItemId() const +{ + return m_itemId.get(); +} + +// ---------------------------------------------------------------------- + +#endif // _AcceptAuctionMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AcceptAuctionResponseMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AcceptAuctionResponseMessage.cpp new file mode 100644 index 00000000..f562d510 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AcceptAuctionResponseMessage.cpp @@ -0,0 +1,43 @@ +// ====================================================================== +// +// AcceptAuctionResponseMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/AcceptAuctionResponseMessage.h" + +// ====================================================================== + +const char * const AcceptAuctionResponseMessage::MessageType = "AcceptAuctionResponseMessage"; + +//---------------------------------------------------------------------- + +AcceptAuctionResponseMessage::AcceptAuctionResponseMessage(NetworkId itemId, AuctionResult result) : + GameNetworkMessage(MessageType), + m_itemId(itemId), + m_result(result) +{ + AutoByteStream::addVariable(m_itemId); + AutoByteStream::addVariable(m_result); +} + +// ====================================================================== + +AcceptAuctionResponseMessage::AcceptAuctionResponseMessage(Archive::ReadIterator &source) : + GameNetworkMessage(MessageType), + m_itemId(), + m_result() +{ + AutoByteStream::addVariable(m_itemId); + AutoByteStream::addVariable(m_result); + unpack(source); +} + +// ====================================================================== + +AcceptAuctionResponseMessage::~AcceptAuctionResponseMessage() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AcceptAuctionResponseMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AcceptAuctionResponseMessage.h new file mode 100644 index 00000000..525af5c2 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AcceptAuctionResponseMessage.h @@ -0,0 +1,63 @@ +// ====================================================================== +// +// AcceptAuctionResponseMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _AcceptAuctionResponseMessage_H +#define _AcceptAuctionResponseMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/AuctionErrorCodes.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" + +//----------------------------------------------------------------------- + +class AcceptAuctionResponseMessage : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + AcceptAuctionResponseMessage(NetworkId itemId, AuctionResult result); + explicit AcceptAuctionResponseMessage(Archive::ReadIterator &source); + + ~AcceptAuctionResponseMessage(); + +public: // methods + + NetworkId getItemId() const; + AuctionResult getResult() const; + +public: // types + +private: + Archive::AutoVariable m_itemId; //the item to be auctioned + Archive::AutoVariable m_result; //the auction container +}; + +// ---------------------------------------------------------------------- + +inline NetworkId AcceptAuctionResponseMessage::getItemId() const +{ + return m_itemId.get(); +} + +// ---------------------------------------------------------------------- + +inline AuctionResult AcceptAuctionResponseMessage::getResult() const +{ + return static_cast(m_result.get()); +} + + +// ---------------------------------------------------------------------- + +#endif // _AcceptAuctionResponseMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AddMapLocationMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AddMapLocationMessage.cpp new file mode 100644 index 00000000..aee0455a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AddMapLocationMessage.cpp @@ -0,0 +1,68 @@ +// ====================================================================== +// +// AddMapLocationMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/AddMapLocationMessage.h" + +// ====================================================================== + +AddMapLocationMessage::AddMapLocationMessage( + const std::string &planetName, + const NetworkId &locationId, + const Unicode::String &locationName, + const Vector2d &location, + uint8 category, + uint8 subCategory +) : + GameNetworkMessage("AddMapLocationMessage"), + m_planetName (planetName), + m_locationId (locationId), + m_locationName (locationName), + m_locationX (location.x), + m_locationY (location.y), + m_category (category), + m_subCategory (subCategory) +{ + AutoByteStream::addVariable(m_planetName); + AutoByteStream::addVariable(m_locationId); + AutoByteStream::addVariable(m_locationName); + AutoByteStream::addVariable(m_locationX); + AutoByteStream::addVariable(m_locationY); + AutoByteStream::addVariable(m_category); + AutoByteStream::addVariable(m_subCategory); +} + +// ====================================================================== + +AddMapLocationMessage::AddMapLocationMessage(Archive::ReadIterator &source) : + GameNetworkMessage ("AddMapLocationMessage"), + m_planetName (), + m_locationId (), + m_locationName (), + m_locationX (0.0f), + m_locationY (0.0f), + m_category (), + m_subCategory () +{ + AutoByteStream::addVariable(m_planetName); + AutoByteStream::addVariable(m_locationId); + AutoByteStream::addVariable(m_locationName); + AutoByteStream::addVariable(m_locationX); + AutoByteStream::addVariable(m_locationY); + AutoByteStream::addVariable(m_category); + AutoByteStream::addVariable(m_subCategory); + unpack(source); +} + +// ====================================================================== + +AddMapLocationMessage::~AddMapLocationMessage() +{ +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AddMapLocationMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AddMapLocationMessage.h new file mode 100644 index 00000000..daf646ec --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AddMapLocationMessage.h @@ -0,0 +1,105 @@ +// ====================================================================== +// +// AddMapLocationMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _AddMapLocationMessage_H +#define _AddMapLocationMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" +#include "sharedMath/Vector2d.h" + +//----------------------------------------------------------------------- + +class AddMapLocationMessage : public GameNetworkMessage +{ +public: + + AddMapLocationMessage(const std::string &planetName, const NetworkId &locationId, const Unicode::String &locationName, const Vector2d &location, uint8 category, uint8 subCategory ); + explicit AddMapLocationMessage(Archive::ReadIterator &source); + + ~AddMapLocationMessage(); + +public: // methods + + const std::string & getPlanetName () const; + const NetworkId & getLocationId () const; + const Unicode::String & getLocationName () const; + float getLocationX () const; + float getLocationY () const; + uint8 getCategory () const; + uint8 getSubCategory () const; + +public: // types + +private: + Archive::AutoVariable m_planetName; + Archive::AutoVariable m_locationId; + Archive::AutoVariable m_locationName; + Archive::AutoVariable m_locationX; + Archive::AutoVariable m_locationY; + Archive::AutoVariable m_category; + Archive::AutoVariable m_subCategory; +}; + +// ---------------------------------------------------------------------- + +inline const std::string &AddMapLocationMessage::getPlanetName() const +{ + return m_planetName.get(); +} + +// ---------------------------------------------------------------------- + +inline const NetworkId &AddMapLocationMessage::getLocationId() const +{ + return m_locationId.get(); +} + +// ---------------------------------------------------------------------- + +inline float AddMapLocationMessage::getLocationX() const +{ + return m_locationX.get(); +} + +// ---------------------------------------------------------------------- + +inline float AddMapLocationMessage::getLocationY() const +{ + return m_locationY.get(); +} + +// ---------------------------------------------------------------------- + +inline const Unicode::String & AddMapLocationMessage::getLocationName() const +{ + return m_locationName.get(); +} + +// ---------------------------------------------------------------------- + +inline uint8 AddMapLocationMessage::getCategory() const +{ + return m_category.get(); +} + +// ---------------------------------------------------------------------- + +inline uint8 AddMapLocationMessage::getSubCategory() const +{ + return m_subCategory.get(); +} + +// ---------------------------------------------------------------------- + +#endif // _AddMapLocationMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AddMapLocationResponseMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AddMapLocationResponseMessage.cpp new file mode 100644 index 00000000..ddadf225 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AddMapLocationResponseMessage.cpp @@ -0,0 +1,39 @@ +// ====================================================================== +// +// AddMapLocationResponseMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/AddMapLocationResponseMessage.h" + +// ====================================================================== + +const char * const AddMapLocationResponseMessage::MessageType = "AddMapLocationResponseMessage"; + +//---------------------------------------------------------------------- + +AddMapLocationResponseMessage::AddMapLocationResponseMessage(const NetworkId &locationId) : + GameNetworkMessage(MessageType), + m_locationId(locationId) +{ + AutoByteStream::addVariable(m_locationId); +} + +// ====================================================================== + +AddMapLocationResponseMessage::AddMapLocationResponseMessage(Archive::ReadIterator &source) : + GameNetworkMessage(MessageType), + m_locationId() +{ + AutoByteStream::addVariable(m_locationId); + unpack(source); +} + +// ====================================================================== + +AddMapLocationResponseMessage::~AddMapLocationResponseMessage() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AddMapLocationResponseMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AddMapLocationResponseMessage.h new file mode 100644 index 00000000..bb7237b2 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AddMapLocationResponseMessage.h @@ -0,0 +1,52 @@ +// ====================================================================== +// +// AddMapLocationResponseMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _AddMapLocationResponseMessage_H +#define _AddMapLocationResponseMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" + +//----------------------------------------------------------------------- + +class AddMapLocationResponseMessage : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + AddMapLocationResponseMessage(const NetworkId &locationId); + explicit AddMapLocationResponseMessage(Archive::ReadIterator &source); + + ~AddMapLocationResponseMessage(); + +public: // methods + + const NetworkId & getLocationId() const; + +public: // types + +private: + Archive::AutoVariable m_locationId; +}; + +// ---------------------------------------------------------------------- + +inline const NetworkId & AddMapLocationResponseMessage::getLocationId() const +{ + return m_locationId.get(); +} + +// ---------------------------------------------------------------------- + +#endif // _AddMapLocationResponseMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AttributeListMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AttributeListMessage.cpp new file mode 100644 index 00000000..0ee760bc --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AttributeListMessage.cpp @@ -0,0 +1,73 @@ +// ====================================================================== +// +// AttributeListMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/AttributeListMessage.h" + +// ====================================================================== + +const char * const AttributeListMessage::MessageType = "AttributeListMessage"; + +//---------------------------------------------------------------------- + +AttributeListMessage::AttributeListMessage(NetworkId const & networkId, AttributeVector const & data, int const revision) : +GameNetworkMessage(MessageType), +m_networkId(networkId), +m_staticItemName(), +m_data(), +m_revision(revision) +{ + m_data.set(data); + + addVariable(m_networkId); + addVariable(m_staticItemName); + addVariable(m_data); + addVariable(m_revision); +} + +//---------------------------------------------------------------------- + +AttributeListMessage::AttributeListMessage(std::string const & staticItemName, AttributeVector const & data, int const revision) : +GameNetworkMessage(MessageType), +m_networkId(), +m_staticItemName(staticItemName), +m_data(), +m_revision(revision) +{ + m_data.set(data); + + addVariable(m_networkId); + addVariable(m_staticItemName); + addVariable(m_data); + addVariable(m_revision); +} + +//---------------------------------------------------------------------- + +AttributeListMessage::AttributeListMessage(Archive::ReadIterator &source) : +GameNetworkMessage(MessageType), +m_networkId(), +m_staticItemName(), +m_data(), +m_revision() +{ + addVariable(m_networkId); + addVariable(m_staticItemName); + addVariable(m_data); + addVariable(m_revision); + + unpack(source); +} + +//---------------------------------------------------------------------- + +AttributeListMessage::~AttributeListMessage() +{ +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AttributeListMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AttributeListMessage.h new file mode 100644 index 00000000..aad15008 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AttributeListMessage.h @@ -0,0 +1,80 @@ +// ====================================================================== +// +// AttributeListMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _AttributeListMessage_H +#define _AttributeListMessage_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkIdArchive.h" +#include "unicodeArchive/UnicodeArchive.h" + +//----------------------------------------------------------------------- + +class AttributeListMessage : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + typedef std::pair AttributePair; + typedef stdvector::fwd AttributeVector; + + AttributeListMessage(NetworkId const & id, AttributeVector const & data, int const revision); + AttributeListMessage(std::string const & staticItemName, AttributeVector const & data, int const revision); + explicit AttributeListMessage(Archive::ReadIterator &source); + + ~AttributeListMessage(); + +public: + + AttributeVector const & getData() const; + NetworkId const & getNetworkId () const; + std::string const & getStaticItemName () const; + int getRevision() const; + +private: + Archive::AutoVariable m_networkId; + Archive::AutoVariable m_staticItemName; + Archive::AutoArray m_data; + Archive::AutoVariable m_revision; +}; + +// ---------------------------------------------------------------------- + +inline const AttributeListMessage::AttributeVector & AttributeListMessage::getData() const +{ + return m_data.get(); +} + +//---------------------------------------------------------------------- + +inline const NetworkId & AttributeListMessage::getNetworkId () const +{ + return m_networkId.get (); +} + +//---------------------------------------------------------------------- + +inline std::string const & AttributeListMessage::getStaticItemName () const +{ + return m_staticItemName.get (); +} + +//---------------------------------------------------------------------- + +inline int AttributeListMessage::getRevision() const +{ + return m_revision.get(); +} + +// ---------------------------------------------------------------------- + +#endif // _AttributeListMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionData.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionData.h new file mode 100644 index 00000000..58021cc6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionData.h @@ -0,0 +1,179 @@ +// ====================================================================== +// +// AuctionData.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _AuctionData_H +#define _AuctionData_H + +#include +#include +#include + +#include "sharedFoundation/NetworkId.h" + +// These ***MUST*** be kept in sync in src/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionData.h and src/engine/server/library/serverNetworkMessages/src/shared/gameCommoditiesServer/AuctionBase.h +#ifndef AUCTION_PREMIUM_AUCTION +#define AUCTION_PREMIUM_AUCTION (1 << 10) +#endif + +#ifndef AUCTION_ACTIVE +#define AUCTION_ACTIVE (1 << 11) +#endif + +#ifndef AUCTION_VENDOR_TRANSFER +#define AUCTION_VENDOR_TRANSFER (1 << 12) +#endif + +#ifndef AUCTION_MAGIC_ITEM +#define AUCTION_MAGIC_ITEM (1 << 13) +#endif + +#ifndef AUCTION_OFFERED_ITEM +#define AUCTION_OFFERED_ITEM (1 << 14) +#endif + +//----------------------------------------------------------------------- + +namespace Auction +{ + //---------------------------------------------------------------------- + + struct PalettizedItemDataHeader + { + NetworkId itemId; + uint8 itemNameKey; + int32 highBid; + int32 timer; + int32 buyNowPrice; + uint16 locationKey; + NetworkId ownerId; + uint16 ownerNameKey; + NetworkId highBidderId; + uint16 highBidderNameKey; + int32 maxProxyBid; + int32 myBid; + long itemType; + int resourceContainerClassCrc; + int32 flags; + int32 entranceCharge; + + PalettizedItemDataHeader () : + itemId (), + itemNameKey (0), + highBid (0), + timer (0), + buyNowPrice (0), + locationKey (0), + ownerId (), + ownerNameKey (0), + highBidderId (), + highBidderNameKey (0), + maxProxyBid (0), + myBid (0), + itemType (0), + resourceContainerClassCrc(0), + flags (0), + entranceCharge (0) + { + } + }; + + struct ItemDataHeader + { + NetworkId itemId; + Unicode::String itemName; + int32 minBid; + int32 highBid; + int32 timer; + int32 buyNowPrice; + std::string location; + NetworkId ownerId; + std::string ownerName; + NetworkId highBidderId; + std::string highBidderName; + int32 maxProxyBid; + int32 myBid; + long itemType; + int resourceContainerClassCrc; + int32 flags; + int32 entranceCharge; + + ItemDataHeader () : + itemId (), + itemName (), + minBid (0), + highBid (0), + timer (0), + buyNowPrice (0), + location (), + ownerId (), + ownerName (), + highBidderId (), + highBidderName (), + maxProxyBid (0), + myBid (0), + itemType (0), + resourceContainerClassCrc(0), + flags (0), + entranceCharge (0) + { + } + + bool isPremium () const; + bool isActive () const; + bool isMagicItem () const; + }; + + //---------------------------------------------------------------------- + + struct ItemDataDetails + { + NetworkId itemId; + Unicode::String userDescription; + std::vector > propertyList; + std::string templateName; + std::string appearanceString; + + ItemDataDetails () : + itemId (), + userDescription (), + propertyList (), + templateName (), + appearanceString () + { + } + }; + + //---------------------------------------------------------------------- + + inline bool ItemDataHeader::isPremium () const + { + return (flags & AUCTION_PREMIUM_AUCTION) != 0; + } + + //---------------------------------------------------------------------- + + inline bool ItemDataHeader::isActive () const + { + return (flags & AUCTION_ACTIVE) != 0; + } + + //---------------------------------------------------------------------- + + inline bool ItemDataHeader::isMagicItem () const + { + return (flags & AUCTION_MAGIC_ITEM) != 0; + } + + //---------------------------------------------------------------------- +} + +//---------------------------------------------------------------------- + + +#endif // _AuctionData_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionErrorCodes.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionErrorCodes.h new file mode 100644 index 00000000..c7e16dca --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionErrorCodes.h @@ -0,0 +1,52 @@ +// ====================================================================== +// +// AuctionErrorCodes.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _AuctionErrorCodes_H +#define _AuctionErrorCodes_H + +//----------------------------------------------------------------------- + +enum AuctionResult +{ + ar_OK, + ar_INVALID_AUCTIONER, + ar_INVALID_ITEM_ID, + ar_INVALID_CONTAINER_ID, + ar_INVALID_MINIMUM_BID, + ar_INVALID_AUCTION_LENGTH, + ar_ITEM_ALREADY_AUCTIONED, + ar_ITEM_NOT_IN_CONTAINER, + ar_NOT_ITEM_OWNER, + ar_NOT_ENOUGH_MONEY, + ar_INVALID_BID, + ar_BID_REJECTED, + ar_INVENTORY_FULL, + ar_TOO_MANY_AUCTIONS, + ar_BID_TOO_HIGH, + ar_AUCTION_ALREADY_COMPLETED, + ar_VENDOR_DEACTIVATED, + ar_ITEM_NOLONGER_EXISTS, + ar_INVALID_ITEM_REIMBURSAL, + ar_IN_TRADE, + ar_IN_CRATE, + ar_NOT_ALLOWED, + ar_NOT_EMPTY, + ar_BID_OUTBID, + ar_TOO_MANY_VENDORS, + ar_TOO_MANY_VENDOR_ITEMS, + ar_IS_BIOLINKED, + ar_ITEM_EQUIPPED, + ar_ITEM_RESTRICTED, + ar_PRICE_TOO_HIGH +}; + + +// ---------------------------------------------------------------------- + +#endif // _AuctionErrorCodes_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryHeadersMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryHeadersMessage.cpp new file mode 100644 index 00000000..ff7de9f3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryHeadersMessage.cpp @@ -0,0 +1,181 @@ +// ====================================================================== +// +// AuctionQueryHeadersMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/AuctionQueryHeadersMessage.h" + +// ====================================================================== + +namespace Archive +{ + void get(ReadIterator & source, AuctionQueryHeadersMessage::SearchCondition & target) + { + get(source, target.attributeNameCrc); + get(source, target.requiredAttribute); + + int8 temp; + get(source, temp); + target.comparison = static_cast(temp); + + if (target.comparison == AuctionQueryHeadersMessage::SCC_int) + { + get(source, target.intMin); + get(source, target.intMax); + } + else if (target.comparison == AuctionQueryHeadersMessage::SCC_float) + { + get(source, target.floatMin); + get(source, target.floatMax); + } + else if ((target.comparison == AuctionQueryHeadersMessage::SCC_string_equal) || + (target.comparison == AuctionQueryHeadersMessage::SCC_string_not_equal) || + (target.comparison == AuctionQueryHeadersMessage::SCC_string_contain) || + (target.comparison == AuctionQueryHeadersMessage::SCC_string_not_contain)) + { + get(source, target.stringValue); + } + else // error + { + target.comparison = AuctionQueryHeadersMessage::SCC_int; + } + } + + void put(ByteStream & target, const AuctionQueryHeadersMessage::SearchCondition & source) + { + put(target, source.attributeNameCrc); + put(target, source.requiredAttribute); + put(target, static_cast(source.comparison)); + + if (source.comparison == AuctionQueryHeadersMessage::SCC_int) + { + put(target, source.intMin); + put(target, source.intMax); + } + else if (source.comparison == AuctionQueryHeadersMessage::SCC_float) + { + put(target, source.floatMin); + put(target, source.floatMax); + } + else if ((source.comparison == AuctionQueryHeadersMessage::SCC_string_equal) || + (source.comparison == AuctionQueryHeadersMessage::SCC_string_not_equal) || + (source.comparison == AuctionQueryHeadersMessage::SCC_string_contain) || + (source.comparison == AuctionQueryHeadersMessage::SCC_string_not_contain)) + { + put(target, source.stringValue); + } + } +} + +// ====================================================================== + +AuctionQueryHeadersMessage::AuctionQueryHeadersMessage( + AuctionLocationSearch locationSearchType, + const NetworkId & container, + int requestId, + AuctionSearchType searchType, + int itemType, + bool itemTypeExactMatch, + int itemTemplateId, + const Unicode::String & textFilterAll, + const Unicode::String & textFilterAny, + int priceFilterMin, + int priceFilterMax, + bool priceFilterIncludesFee, + const std::list & advancedSearch, + AdvancedSearchMatchAllAny advancedSearchMatchAllAny, + bool myVendorsOnly, + uint16 queryOffset +): + GameNetworkMessage("AuctionQueryHeadersMessage"), + m_locationSearchType(static_cast(locationSearchType)), + m_requestId(requestId), + m_searchType(static_cast(searchType)), + m_itemType(itemType), + m_itemTypeExactMatch(itemTypeExactMatch), + m_itemTemplateId(itemTemplateId), + m_textFilterAll(textFilterAll), + m_textFilterAny(textFilterAny), + m_priceFilterMin(priceFilterMin), + m_priceFilterMax(priceFilterMax), + m_priceFilterIncludesFee(priceFilterIncludesFee), + m_advancedSearch(), + m_advancedSearchMatchAllAny(static_cast(advancedSearchMatchAllAny)), + m_container(container), + m_myVendorsOnly(myVendorsOnly), + m_queryOffset(queryOffset) +{ + m_advancedSearch.set(advancedSearch); + + AutoByteStream::addVariable(m_locationSearchType); + AutoByteStream::addVariable(m_requestId); + AutoByteStream::addVariable(m_searchType); + AutoByteStream::addVariable(m_itemType); + AutoByteStream::addVariable(m_itemTypeExactMatch); + AutoByteStream::addVariable(m_itemTemplateId); + AutoByteStream::addVariable(m_textFilterAll); + AutoByteStream::addVariable(m_textFilterAny); + AutoByteStream::addVariable(m_priceFilterMin); + AutoByteStream::addVariable(m_priceFilterMax); + AutoByteStream::addVariable(m_priceFilterIncludesFee); + AutoByteStream::addVariable(m_advancedSearch); + AutoByteStream::addVariable(m_advancedSearchMatchAllAny); + AutoByteStream::addVariable(m_container); + AutoByteStream::addVariable(m_myVendorsOnly); + AutoByteStream::addVariable(m_queryOffset); +} + +// ====================================================================== + +AuctionQueryHeadersMessage::AuctionQueryHeadersMessage(Archive::ReadIterator &source) : + GameNetworkMessage("AuctionQueryHeadersMessage"), + m_locationSearchType(), + m_requestId(), + m_searchType(), + m_itemType(), + m_itemTypeExactMatch(), + m_itemTemplateId(), + m_textFilterAll(), + m_textFilterAny(), + m_priceFilterMin(), + m_priceFilterMax(), + m_priceFilterIncludesFee(), + m_advancedSearch(), + m_advancedSearchMatchAllAny(static_cast(ASMAA_match_all)), + m_container(), + m_myVendorsOnly(), + m_queryOffset(0) +{ + AutoByteStream::addVariable(m_locationSearchType); + AutoByteStream::addVariable(m_requestId); + AutoByteStream::addVariable(m_searchType); + AutoByteStream::addVariable(m_itemType); + AutoByteStream::addVariable(m_itemTypeExactMatch); + AutoByteStream::addVariable(m_itemTemplateId); + AutoByteStream::addVariable(m_textFilterAll); + AutoByteStream::addVariable(m_textFilterAny); + AutoByteStream::addVariable(m_priceFilterMin); + AutoByteStream::addVariable(m_priceFilterMax); + AutoByteStream::addVariable(m_priceFilterIncludesFee); + AutoByteStream::addVariable(m_advancedSearch); + AutoByteStream::addVariable(m_advancedSearchMatchAllAny); + AutoByteStream::addVariable(m_container); + AutoByteStream::addVariable(m_myVendorsOnly); + AutoByteStream::addVariable(m_queryOffset); + + unpack(source); + + // error handling (against hacked client) + if ((m_advancedSearchMatchAllAny.get() < 0) || (m_advancedSearchMatchAllAny.get() >= static_cast(ASMAA_LAST))) + m_advancedSearchMatchAllAny.set(static_cast(ASMAA_match_all)); +} + +// ====================================================================== + +AuctionQueryHeadersMessage::~AuctionQueryHeadersMessage() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryHeadersMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryHeadersMessage.h new file mode 100644 index 00000000..830bdaa5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryHeadersMessage.h @@ -0,0 +1,339 @@ +// ====================================================================== +// +// AuctionQueryHeadersMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _AuctionQueryHeadersMessage_H +#define _AuctionQueryHeadersMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/NetworkIdArchive.h" +#include "sharedFoundation/Tag.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "unicodeArchive/UnicodeArchive.h" + +//----------------------------------------------------------------------- + +class AuctionQueryHeadersMessage : public GameNetworkMessage +{ +public: // types + /* auction query types */ + enum AuctionSearchType + { + AST_ByCategory, + AST_ByLocation, + AST_ByAll, + AST_ByPlayerSales, + AST_ByPlayerBids, + AST_ByPlayerStockroom, + AST_ByVendorOffers, + AST_ByVendorSelling, + AST_ByVendorStockroom, + AST_ByPlayerOffersToVendor + }; + + enum AuctionLocationSearch + { + ALS_Galaxy, + ALS_Planet, + ALS_Region, + ALS_Market + }; + + enum SearchConditionComparison + { + // DO NOT CHANGE THE ORDERING OR THE NUMBERING + // ADD NEW ENUM VALUE BEFORE SCC_LAST + SCC_int = 0, + SCC_float, + SCC_string_equal, + SCC_string_not_equal, + SCC_string_contain, + SCC_string_not_contain, + SCC_LAST + }; + + // order of enum value MUST match the order defined in the combo box for dsComboMatchAllAny defined in ui_auction.inc + enum AdvancedSearchMatchAllAny + { + // DO NOT CHANGE THE ORDERING OR THE NUMBERING + // ADD NEW ENUM VALUE BEFORE ASMAA_LAST + ASMAA_match_all = 0, + ASMAA_match_any, + ASMAA_not_match_all, + ASMAA_not_match_any, + ASMAA_LAST + }; + + class SearchCondition + { + public: + SearchCondition() : + attributeNameCrc(), requiredAttribute(false), comparison(SCC_int), intMin(0), intMax(0), floatMin(0.0f), floatMax(0.0f), stringValue() {}; + + SearchCondition(SearchCondition const & rhs) : + attributeNameCrc(rhs.attributeNameCrc), requiredAttribute(rhs.requiredAttribute), comparison(rhs.comparison), intMin(rhs.intMin), intMax(rhs.intMax), floatMin(rhs.floatMin), floatMax(rhs.floatMax), stringValue(rhs.stringValue) {}; + + explicit SearchCondition(uint32 const pAttributeNameCrc, bool const pRequiredAttribute, int const pIntMin, int const pIntMax) : + attributeNameCrc(pAttributeNameCrc), requiredAttribute(pRequiredAttribute), comparison(SCC_int), intMin(pIntMin), intMax(pIntMax), floatMin(0.0f), floatMax(0.0f), stringValue() {}; + + explicit SearchCondition(uint32 const pAttributeNameCrc, bool const pRequiredAttribute, double const pFloatMin, double const pFloatMax) : + attributeNameCrc(pAttributeNameCrc), requiredAttribute(pRequiredAttribute), comparison(SCC_float), intMin(0), intMax(0), floatMin(pFloatMin), floatMax(pFloatMax), stringValue() {}; + + explicit SearchCondition(uint32 const pAttributeNameCrc, bool const pRequiredAttribute, SearchConditionComparison const pComparison, std::string const & pStringValue) : + attributeNameCrc(pAttributeNameCrc), requiredAttribute(pRequiredAttribute), comparison(pComparison), intMin(0), intMax(0), floatMin(0.0f), floatMax(0.0f), stringValue(pStringValue) {}; + + SearchCondition &operator =(SearchCondition const & rhs) + { + if (this != (&rhs)) + { + attributeNameCrc = rhs.attributeNameCrc; + requiredAttribute = rhs.requiredAttribute; + comparison = rhs.comparison; + intMin = rhs.intMin; + intMax = rhs.intMax; + floatMin = rhs.floatMin; + floatMax = rhs.floatMax; + stringValue = rhs.stringValue; + } + + return *this; + } + + bool operator== (SearchCondition const & rhs) const + { + if (this == &rhs) + { + return true; + } + + if ((attributeNameCrc != rhs.attributeNameCrc) || + (requiredAttribute != rhs.requiredAttribute) || + (comparison != rhs.comparison)) + { + return false; + } + + if (comparison == SCC_int) + { + return ((intMin == rhs.intMin) && (intMax == rhs.intMax)); + } + else if (comparison == SCC_float) + { + return ((floatMin == rhs.floatMin) && (floatMax == rhs.floatMax)); + } + + return (stringValue == rhs.stringValue); + } + + bool operator!= (SearchCondition const & rhs) const + { + return !operator==(rhs); + } + + uint32 attributeNameCrc; + bool requiredAttribute; + SearchConditionComparison comparison; + + int intMin; + int intMax; + + double floatMin; + double floatMax; + + std::string stringValue; + }; + +public: + + AuctionQueryHeadersMessage( + AuctionLocationSearch locationSearchType, + const NetworkId & container, + int requestId, + AuctionSearchType searchType, + int itemType, + bool itemTypeExactMatch, + int itemTemplateId, + const Unicode::String & textFilterAll, + const Unicode::String & textFilterAny, + int priceFilterMin, + int priceFilterMax, + bool priceFilterIncludesFee, + const std::list & advancedSearch, + AdvancedSearchMatchAllAny advancedSearchMatchAllAny, + bool myVendorsOnly = false, + uint16 queryOffset = 0); + explicit AuctionQueryHeadersMessage(Archive::ReadIterator &source); + + ~AuctionQueryHeadersMessage(); + +public: // methods + + int getLocationSearchType() const; + int getRequestId() const; + int getSearchType() const; + int getItemType() const; + bool getItemTypeExactMatch() const; + int getItemTemplateId() const; + const Unicode::String & getTextFilterAll() const; + const Unicode::String & getTextFilterAny() const; + int getPriceFilterMin() const; + int getPriceFilterMax() const; + bool getPriceFilterIncludesFee() const; + const std::list & getAdvancedSearch() const; + AdvancedSearchMatchAllAny getAdvancedSearchMatchAllAny() const; + const NetworkId & getContainer() const; + bool getMyVendorsOnly() const; + uint16 getQueryOffset() const; + +private: + Archive::AutoVariable m_locationSearchType; //string to search by + Archive::AutoVariable m_requestId; //sequence number + Archive::AutoVariable m_searchType; //item category + Archive::AutoVariable m_itemType; //item category + Archive::AutoVariable m_itemTypeExactMatch; + Archive::AutoVariable m_itemTemplateId; //if non-zero, specifies the template id of a particular item + Archive::AutoVariable m_textFilterAll; //text filter for name + Archive::AutoVariable m_textFilterAny; + Archive::AutoVariable m_priceFilterMin; + Archive::AutoVariable m_priceFilterMax; + Archive::AutoVariable m_priceFilterIncludesFee; + Archive::AutoList m_advancedSearch; + Archive::AutoVariable m_advancedSearchMatchAllAny; + Archive::AutoVariable m_container; + Archive::AutoVariable m_myVendorsOnly; + Archive::AutoVariable m_queryOffset; +}; + +// ---------------------------------------------------------------------- + +inline int AuctionQueryHeadersMessage::getLocationSearchType() const +{ + return m_locationSearchType.get(); +} + +// ---------------------------------------------------------------------- + +inline int AuctionQueryHeadersMessage::getRequestId() const +{ + return m_requestId.get(); +} + +// ---------------------------------------------------------------------- + +inline int AuctionQueryHeadersMessage::getSearchType() const +{ + return m_searchType.get(); +} + +// ---------------------------------------------------------------------- + +inline int AuctionQueryHeadersMessage::getItemType() const +{ + return m_itemType.get(); +} + +// ---------------------------------------------------------------------- + +inline bool AuctionQueryHeadersMessage::getItemTypeExactMatch() const +{ + return m_itemTypeExactMatch.get(); +} + +// ---------------------------------------------------------------------- + +inline int AuctionQueryHeadersMessage::getItemTemplateId() const +{ + return m_itemTemplateId.get(); +} + +// ---------------------------------------------------------------------- + +inline const Unicode::String & AuctionQueryHeadersMessage::getTextFilterAll() const +{ + return m_textFilterAll.get(); +} + +// ---------------------------------------------------------------------- + +inline const Unicode::String & AuctionQueryHeadersMessage::getTextFilterAny() const +{ + return m_textFilterAny.get(); +} + +// ---------------------------------------------------------------------- + +inline int AuctionQueryHeadersMessage::getPriceFilterMin() const +{ + return m_priceFilterMin.get(); +} + +// ---------------------------------------------------------------------- + +inline int AuctionQueryHeadersMessage::getPriceFilterMax() const +{ + return m_priceFilterMax.get(); +} + +// ---------------------------------------------------------------------- + +inline bool AuctionQueryHeadersMessage::getPriceFilterIncludesFee() const +{ + return m_priceFilterIncludesFee.get(); +} + +// ---------------------------------------------------------------------- + +inline const std::list & AuctionQueryHeadersMessage::getAdvancedSearch() const +{ + return m_advancedSearch.get(); +} + +// ---------------------------------------------------------------------- + +inline AuctionQueryHeadersMessage::AdvancedSearchMatchAllAny AuctionQueryHeadersMessage::getAdvancedSearchMatchAllAny() const +{ + return static_cast(m_advancedSearchMatchAllAny.get()); +} + +// ---------------------------------------------------------------------- + +inline const NetworkId & AuctionQueryHeadersMessage::getContainer() const +{ + return m_container.get(); +} + +// ---------------------------------------------------------------------- + +inline bool AuctionQueryHeadersMessage::getMyVendorsOnly() const +{ + return m_myVendorsOnly.get(); +} + +// ---------------------------------------------------------------------- + +inline uint16 AuctionQueryHeadersMessage::getQueryOffset() const +{ + return m_queryOffset.get(); +} + +// ====================================================================== + +namespace Archive +{ + class ReadIterator; + class ByteStream; + + void get(ReadIterator & source, AuctionQueryHeadersMessage::SearchCondition & target); + void put(ByteStream & target, const AuctionQueryHeadersMessage::SearchCondition & source); +} + +// ====================================================================== + +#endif // _AuctionQueryHeadersMessage_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryHeadersResponseMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryHeadersResponseMessage.cpp new file mode 100644 index 00000000..8a4c9670 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryHeadersResponseMessage.cpp @@ -0,0 +1,219 @@ +// ====================================================================== +// +// AuctionQueryHeadersResponseMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/AuctionQueryHeadersResponseMessage.h" + +#include "sharedFoundation/NetworkIdArchive.h" + +// ====================================================================== + +const char * const AuctionQueryHeadersResponseMessage::MessageType = "AuctionQueryHeadersResponseMessage"; + +//---------------------------------------------------------------------- + +AuctionQueryHeadersResponseMessage::AuctionQueryHeadersResponseMessage(int requestId, int typeFlag, AuctionHeaderVector const &auctionData, uint16 queryOffset, bool hasMorePages) : + GameNetworkMessage (MessageType), + m_requestId (requestId), + m_typeFlag (typeFlag), + m_auctionData (), + m_queryOffset (queryOffset), + m_hasMorePages (hasMorePages) +{ + m_auctionData = auctionData; + AutoByteStream::addVariable(m_requestId); + AutoByteStream::addVariable(m_typeFlag); + AutoByteStream::addVariable(m_stringPalette); + AutoByteStream::addVariable(m_wideStringPalette); + palettizeAuctionData(); + AutoByteStream::addVariable(m_palettizedAuctionData); + AutoByteStream::addVariable(m_queryOffset); + AutoByteStream::addVariable(m_hasMorePages); +} + +// ---------------------------------------------------------------------- + +AuctionQueryHeadersResponseMessage::AuctionQueryHeadersResponseMessage(Archive::ReadIterator & source) : + GameNetworkMessage (MessageType), + m_requestId (), + m_typeFlag (), + m_auctionData (), + m_queryOffset (0), + m_hasMorePages (false) +{ + AutoByteStream::addVariable(m_requestId); + AutoByteStream::addVariable(m_typeFlag); + AutoByteStream::addVariable(m_stringPalette); + AutoByteStream::addVariable(m_wideStringPalette); + AutoByteStream::addVariable(m_palettizedAuctionData); + AutoByteStream::addVariable(m_queryOffset); + AutoByteStream::addVariable(m_hasMorePages); + unpack(source); + decodeAuctionData(); +} + +// ---------------------------------------------------------------------- + +AuctionQueryHeadersResponseMessage::~AuctionQueryHeadersResponseMessage() +{ +} + +//---------------------------------------------------------------------- + +uint16 AuctionQueryHeadersResponseMessage::getPaletteIndex(const std::string &str) +{ + std::vector &stringPalette = m_stringPalette.get(); + for (uint16 i = 0; i < stringPalette.size(); ++i) + { + if (stringPalette[i] == str) + { + return i; + } + } + + stringPalette.push_back(str); + return static_cast(stringPalette.size() - 1); +} + +//---------------------------------------------------------------------- + +uint16 AuctionQueryHeadersResponseMessage::getPaletteIndex(const Unicode::String &str) +{ + std::vector & stringPalette = m_wideStringPalette.get(); + for (uint16 i = 0; i < stringPalette.size(); ++i) + { + if (stringPalette[i] == str) + { + return i; + } + } + + stringPalette.push_back(str); + return static_cast(stringPalette.size() - 1); +} + +//---------------------------------------------------------------------- + +void AuctionQueryHeadersResponseMessage::palettizeAuctionData() +{ + PalettizedAuctionHeaderVector palettizedData; + palettizedData.resize (m_auctionData.size ()); + + AuctionHeaderVector::const_iterator i; + int index = 0; + for (i = m_auctionData.begin(); i != m_auctionData.end(); ++i, ++index) + { + const Auction::ItemDataHeader & header = *i; + Auction::PalettizedItemDataHeader & pal = palettizedData [index]; + + pal.itemId = header.itemId; + pal.itemNameKey = static_cast(getPaletteIndex(header.itemName)); + pal.highBid = header.highBid; + pal.timer = header.timer; + pal.buyNowPrice = header.buyNowPrice; + pal.locationKey = getPaletteIndex(header.location); + pal.ownerId = header.ownerId; + pal.ownerNameKey = getPaletteIndex(header.ownerName); + pal.highBidderId = header.highBidderId; + pal.highBidderNameKey = getPaletteIndex(header.highBidderName); + pal.maxProxyBid = header.maxProxyBid; + pal.myBid = header.myBid; + pal.itemType = header.itemType; + pal.resourceContainerClassCrc = header.resourceContainerClassCrc; + pal.flags = header.flags; + pal.entranceCharge = header.entranceCharge; + } + + m_palettizedAuctionData.set(palettizedData); +} + +//---------------------------------------------------------------------- + +void AuctionQueryHeadersResponseMessage::decodeAuctionData() +{ + const std::vector & stringPalette = m_stringPalette.get(); + const std::vector & wideStringPalette = m_wideStringPalette.get(); + const PalettizedAuctionHeaderVector & palettizedData = m_palettizedAuctionData.get(); + + m_auctionData.resize (palettizedData.size ()); + + int index = 0; + PalettizedAuctionHeaderVector::const_iterator i; + for (i = palettizedData.begin(); i != palettizedData.end(); ++i, ++index) + { + const Auction::PalettizedItemDataHeader & pal = *i; + + Auction::ItemDataHeader & header = m_auctionData [index]; + + header.itemId = pal.itemId; + header.itemName = wideStringPalette[pal.itemNameKey]; + header.highBid = pal.highBid; + header.timer = pal.timer; + header.buyNowPrice = pal.buyNowPrice; + header.location = stringPalette[pal.locationKey]; + header.ownerId = pal.ownerId; + header.ownerName = stringPalette[pal.ownerNameKey]; + header.highBidderId = pal.highBidderId; + header.highBidderName = stringPalette[pal.highBidderNameKey]; + header.maxProxyBid = pal.maxProxyBid; + header.myBid = pal.myBid; + header.itemType = pal.itemType; + header.resourceContainerClassCrc = pal.resourceContainerClassCrc; + header.flags = pal.flags; + header.entranceCharge = pal.entranceCharge; + } +} + +//---------------------------------------------------------------------- + +namespace Archive +{ + + void get(ReadIterator &source, Auction::PalettizedItemDataHeader &target) + { + get(source, target.itemId); + get(source, target.itemNameKey); + get(source, target.highBid); + get(source, target.timer); + get(source, target.buyNowPrice); + get(source, target.locationKey); + get(source, target.ownerId); + get(source, target.ownerNameKey); + get(source, target.highBidderId); + get(source, target.highBidderNameKey); + get(source, target.maxProxyBid); + get(source, target.myBid); + get(source, target.itemType); + get(source, target.resourceContainerClassCrc); + get(source, target.flags); + get(source, target.entranceCharge); + } + + void put(ByteStream &target, Auction::PalettizedItemDataHeader const &source) + { + put(target, source.itemId); + put(target, source.itemNameKey); + put(target, source.highBid); + put(target, source.timer); + put(target, source.buyNowPrice); + put(target, source.locationKey); + put(target, source.ownerId); + put(target, source.ownerNameKey); + put(target, source.highBidderId); + put(target, source.highBidderNameKey); + put(target, source.maxProxyBid); + put(target, source.myBid); + put(target, source.itemType); + put(target, source.resourceContainerClassCrc); + put(target, source.flags); + put(target, source.entranceCharge); + } + +} +// ====================================================================== + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryHeadersResponseMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryHeadersResponseMessage.h new file mode 100644 index 00000000..21b43a0c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryHeadersResponseMessage.h @@ -0,0 +1,110 @@ +// ====================================================================== +// +// AuctionQueryHeadersResponseMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _AuctionQueryHeadersResponseMessage_H +#define _AuctionQueryHeadersResponseMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/AuctionData.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" + +#include "Unicode.h" +#include "unicodeArchive/UnicodeArchive.h" + +//----------------------------------------------------------------------- + +class AuctionQueryHeadersResponseMessage : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + typedef stdvector::fwd AuctionHeaderVector; + typedef stdvector::fwd PalettizedAuctionHeaderVector; + + AuctionQueryHeadersResponseMessage(int requestId, int typeFlag, AuctionHeaderVector const &auctionData, uint16 queryOffset, bool hasMorePages); + explicit AuctionQueryHeadersResponseMessage(Archive::ReadIterator &source); + + ~AuctionQueryHeadersResponseMessage(); + +public: // methods + + int getRequestId () const; + int getTypeFlag () const; + AuctionHeaderVector const & getAuctionData () const; + uint16 getQueryOffset () const; + bool getHasMorePages () const; + +public: // types + +private: + Archive::AutoVariable m_requestId; + Archive::AutoVariable m_typeFlag; + Archive::AutoArray m_stringPalette; + Archive::AutoArray m_wideStringPalette; + Archive::AutoArray m_palettizedAuctionData; + std::vector m_auctionData; + Archive::AutoVariable m_queryOffset; + Archive::AutoVariable m_hasMorePages; + + void palettizeAuctionData(); + void decodeAuctionData(); + uint16 getPaletteIndex(const std::string &str); + uint16 getPaletteIndex(const Unicode::String &str); +}; + +// ---------------------------------------------------------------------- + +inline int AuctionQueryHeadersResponseMessage::getRequestId() const +{ + return m_requestId.get(); +} + +// ---------------------------------------------------------------------- + +inline int AuctionQueryHeadersResponseMessage::getTypeFlag() const +{ + return m_typeFlag.get(); +} + +// ---------------------------------------------------------------------- + +inline AuctionQueryHeadersResponseMessage::AuctionHeaderVector const & AuctionQueryHeadersResponseMessage::getAuctionData() const +{ + return m_auctionData; +} + +// ---------------------------------------------------------------------- + +inline uint16 AuctionQueryHeadersResponseMessage::getQueryOffset() const +{ + return m_queryOffset.get(); +} + +// ---------------------------------------------------------------------- + +inline bool AuctionQueryHeadersResponseMessage::getHasMorePages() const +{ + return m_hasMorePages.get(); +} + +// ---------------------------------------------------------------------- + +namespace Archive +{ + + void get(ReadIterator &source, Auction::PalettizedItemDataHeader &target); + void put(ByteStream &target, Auction::PalettizedItemDataHeader const &source); +} + +// ---------------------------------------------------------------------- + +#endif // _AuctionQueryHeadersResponseMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryMessage.cpp new file mode 100644 index 00000000..1a2cfd9b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryMessage.cpp @@ -0,0 +1,44 @@ +// ====================================================================== +// +// AuctionQueryMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/AuctionQueryMessage.h" + +// ====================================================================== + +AuctionQueryMessage::AuctionQueryMessage(NetworkId containerId, int requestId, int itemType): + GameNetworkMessage("AuctionQueryMessage"), + m_containerId(containerId), + m_requestId(requestId), + m_itemType(itemType) +{ + AutoByteStream::addVariable(m_containerId); + AutoByteStream::addVariable(m_requestId); + AutoByteStream::addVariable(m_itemType); +} + +// ====================================================================== + +AuctionQueryMessage::AuctionQueryMessage(Archive::ReadIterator &source) : + GameNetworkMessage("AuctionQueryMessage"), + m_containerId(), + m_requestId(), + m_itemType() +{ + AutoByteStream::addVariable(m_containerId); + AutoByteStream::addVariable(m_requestId); + AutoByteStream::addVariable(m_itemType); + + unpack(source); +} + +// ====================================================================== + +AuctionQueryMessage::~AuctionQueryMessage() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryMessage.h new file mode 100644 index 00000000..93e1a500 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryMessage.h @@ -0,0 +1,68 @@ +// ====================================================================== +// +// AuctionQueryMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _AuctionQueryMessage_H +#define _AuctionQueryMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" + +//----------------------------------------------------------------------- + +class AuctionQueryMessage : public GameNetworkMessage +{ +public: + + AuctionQueryMessage(NetworkId containerId, int requestId, int type); + explicit AuctionQueryMessage(Archive::ReadIterator &source); + + ~AuctionQueryMessage(); + +public: // methods + + NetworkId getContainerId() const; + int getRequestId() const; + int getItemType() const; + +public: // types + +private: + Archive::AutoVariable m_containerId; //the container to query + Archive::AutoVariable m_requestId; //sequence number + Archive::AutoVariable m_itemType; //item category +}; + +// ---------------------------------------------------------------------- + +inline NetworkId AuctionQueryMessage::getContainerId() const +{ + return m_containerId.get(); +} + +// ---------------------------------------------------------------------- + +inline int AuctionQueryMessage::getRequestId() const +{ + return m_requestId.get(); +} + +// ---------------------------------------------------------------------- + +inline int AuctionQueryMessage::getItemType() const +{ + return m_itemType.get(); +} + +// ---------------------------------------------------------------------- + +#endif // _AuctionQueryMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryResponseMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryResponseMessage.cpp new file mode 100644 index 00000000..82247331 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryResponseMessage.cpp @@ -0,0 +1,47 @@ +// ====================================================================== +// +// AuctionQueryResponseMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/AuctionQueryResponseMessage.h" + +// ====================================================================== + +AuctionQueryResponseMessage::AuctionQueryResponseMessage(int requestId, int typeFlag, AuctionDataVector const &auctionData) : + GameNetworkMessage("AuctionQueryResponseMessage"), + m_requestId(requestId), + m_typeFlag(typeFlag), + m_auctionData() +{ + m_auctionData.set(auctionData); + AutoByteStream::addVariable(m_requestId); + AutoByteStream::addVariable(m_typeFlag); + AutoByteStream::addVariable(m_auctionData); +} + +// ---------------------------------------------------------------------- + +AuctionQueryResponseMessage::AuctionQueryResponseMessage(Archive::ReadIterator & source) : + GameNetworkMessage("AuctionQueryResponseMessage"), + m_requestId(), + m_typeFlag(), + m_auctionData() +{ + AutoByteStream::addVariable(m_requestId); + AutoByteStream::addVariable(m_typeFlag); + AutoByteStream::addVariable(m_auctionData); + unpack(source); +} + +// ---------------------------------------------------------------------- + +AuctionQueryResponseMessage::~AuctionQueryResponseMessage() +{ +} + +// ====================================================================== + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryResponseMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryResponseMessage.h new file mode 100644 index 00000000..bc251b40 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/AuctionQueryResponseMessage.h @@ -0,0 +1,131 @@ +// ====================================================================== +// +// AuctionQueryResponseMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _AuctionQueryResponseMessage_H +#define _AuctionQueryResponseMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" + +//----------------------------------------------------------------------- + +struct AuctionQueryResponse_AuctionData +{ + int64 auctionId; + std::string location; + int64 ownerId; + int32 minBid; + int32 timer; + int64 itemId; + int32 soldFlag; + int64 highBidderId; + int32 itemType; + int32 resourceContainerClassCrc; + int16 itemQuantity; + int32 itemTimer; + int32 highBid; + int32 highBidMaxProxy; +}; + +class AuctionQueryResponseMessage : public GameNetworkMessage +{ +public: + typedef AuctionQueryResponse_AuctionData AuctionData; + typedef stdvector::fwd AuctionDataVector; + + AuctionQueryResponseMessage(int requestId, int typeFlag, AuctionDataVector const &auctionData); + explicit AuctionQueryResponseMessage(Archive::ReadIterator &source); + + ~AuctionQueryResponseMessage(); + +public: // methods + + int getRequestId() const; + int getTypeFlag() const; + AuctionDataVector const & getAuctionData() const; + +public: // types + +private: + Archive::AutoVariable m_requestId; + Archive::AutoVariable m_typeFlag; + Archive::AutoArray m_auctionData; +}; + +// ---------------------------------------------------------------------- + +inline int AuctionQueryResponseMessage::getRequestId() const +{ + return m_requestId.get(); +} + +// ---------------------------------------------------------------------- + +inline int AuctionQueryResponseMessage::getTypeFlag() const +{ + return m_typeFlag.get(); +} + +// ---------------------------------------------------------------------- + +inline AuctionQueryResponseMessage::AuctionDataVector const & AuctionQueryResponseMessage::getAuctionData() const +{ + return m_auctionData.get(); +} + +// ---------------------------------------------------------------------- + +namespace Archive +{ + + inline void get(ReadIterator &source, AuctionQueryResponse_AuctionData &target) + { + get(source, target.auctionId); + get(source, target.location); + get(source, target.ownerId); + get(source, target.minBid); + get(source, target.timer); + get(source, target.itemId); + get(source, target.soldFlag); + get(source, target.highBidderId); + get(source, target.itemType); + get(source, target.resourceContainerClassCrc); + get(source, target.itemQuantity); + get(source, target.itemTimer); + get(source, target.highBid); + get(source, target.highBidMaxProxy); + } + + inline void put(ByteStream &target, AuctionQueryResponse_AuctionData const &source) + { + put(target, source.auctionId); + put(target, source.location); + put(target, source.ownerId); + put(target, source.minBid); + put(target, source.timer); + put(target, source.itemId); + put(target, source.soldFlag); + put(target, source.highBidderId); + put(target, source.itemType); + put(target, source.resourceContainerClassCrc); + put(target, source.itemQuantity); + put(target, source.itemTimer); + put(target, source.highBid); + put(target, source.highBidMaxProxy); + } + +} + +// ---------------------------------------------------------------------- + +#endif // _AuctionQueryResponseMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BidAuctionMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BidAuctionMessage.cpp new file mode 100644 index 00000000..9ba8d92d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BidAuctionMessage.cpp @@ -0,0 +1,43 @@ +// ====================================================================== +// +// BidAuctionMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/BidAuctionMessage.h" + +// ====================================================================== + +BidAuctionMessage::BidAuctionMessage(NetworkId itemId, int bid, int maxProxyBid) : + GameNetworkMessage("BidAuctionMessage"), + m_itemId(itemId), + m_bid(bid), + m_maxProxyBid(maxProxyBid) +{ + AutoByteStream::addVariable(m_itemId); + AutoByteStream::addVariable(m_bid); + AutoByteStream::addVariable(m_maxProxyBid); +} + +// ====================================================================== + +BidAuctionMessage::BidAuctionMessage(Archive::ReadIterator &source) : + GameNetworkMessage("BidAuctionMessage"), + m_itemId(), + m_bid(), + m_maxProxyBid() +{ + AutoByteStream::addVariable(m_itemId); + AutoByteStream::addVariable(m_bid); + AutoByteStream::addVariable(m_maxProxyBid); + unpack(source); +} + +// ====================================================================== + +BidAuctionMessage::~BidAuctionMessage() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BidAuctionMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BidAuctionMessage.h new file mode 100644 index 00000000..ff1c0d81 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BidAuctionMessage.h @@ -0,0 +1,68 @@ +// ====================================================================== +// +// BidAuctionMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _BidAuctionMessage_H +#define _BidAuctionMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" + +//----------------------------------------------------------------------- + +class BidAuctionMessage : public GameNetworkMessage +{ +public: + + BidAuctionMessage(NetworkId itemId, int bid, int maxProxyBid ); + explicit BidAuctionMessage(Archive::ReadIterator &source); + + ~BidAuctionMessage(); + +public: // methods + + NetworkId getItemId() const; + int getBid() const; + int getMaxProxyBid() const; + +public: // types + +private: + Archive::AutoVariable m_itemId; //the item to be auctioned + Archive::AutoVariable m_bid; //the player bid + Archive::AutoVariable m_maxProxyBid; //the maximum proxy bid +}; + +// ---------------------------------------------------------------------- + +inline NetworkId BidAuctionMessage::getItemId() const +{ + return m_itemId.get(); +} + +// ---------------------------------------------------------------------- + +inline int BidAuctionMessage::getBid() const +{ + return m_bid.get(); +} + +// ---------------------------------------------------------------------- + +inline int BidAuctionMessage::getMaxProxyBid() const +{ + return m_maxProxyBid.get(); +} + +// ---------------------------------------------------------------------- + +#endif // _BidAuctionMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BidAuctionResponseMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BidAuctionResponseMessage.cpp new file mode 100644 index 00000000..c5877a6f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BidAuctionResponseMessage.cpp @@ -0,0 +1,43 @@ +// ====================================================================== +// +// BidAuctionResponseMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/BidAuctionResponseMessage.h" + +// ====================================================================== + +const char * const BidAuctionResponseMessage::MessageType = "BidAuctionResponseMessage"; + +//---------------------------------------------------------------------- + +BidAuctionResponseMessage::BidAuctionResponseMessage(NetworkId itemId, AuctionResult result) : + GameNetworkMessage(MessageType), + m_itemId(itemId), + m_result(result) +{ + AutoByteStream::addVariable(m_itemId); + AutoByteStream::addVariable(m_result); +} + +// ====================================================================== + +BidAuctionResponseMessage::BidAuctionResponseMessage(Archive::ReadIterator &source) : + GameNetworkMessage(MessageType), + m_itemId(), + m_result() +{ + AutoByteStream::addVariable(m_itemId); + AutoByteStream::addVariable(m_result); + unpack(source); +} + +// ====================================================================== + +BidAuctionResponseMessage::~BidAuctionResponseMessage() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BidAuctionResponseMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BidAuctionResponseMessage.h new file mode 100644 index 00000000..c406b86e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BidAuctionResponseMessage.h @@ -0,0 +1,63 @@ +// ====================================================================== +// +// BidAuctionResponseMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _BidAuctionResponseMessage_H +#define _BidAuctionResponseMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/AuctionErrorCodes.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" + +//----------------------------------------------------------------------- + +class BidAuctionResponseMessage : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + BidAuctionResponseMessage(NetworkId itemId, AuctionResult result); + explicit BidAuctionResponseMessage(Archive::ReadIterator &source); + + ~BidAuctionResponseMessage(); + +public: // methods + + NetworkId getItemId() const; + AuctionResult getResult() const; + +public: // types + +private: + Archive::AutoVariable m_itemId; //the item to be auctioned + Archive::AutoVariable m_result; //the auction container +}; + +// ---------------------------------------------------------------------- + +inline NetworkId BidAuctionResponseMessage::getItemId() const +{ + return m_itemId.get(); +} + +// ---------------------------------------------------------------------- + +inline AuctionResult BidAuctionResponseMessage::getResult() const +{ + return static_cast(m_result.get()); +} + + +// ---------------------------------------------------------------------- + +#endif // _BidAuctionResponseMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BuffBuilderChangeMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BuffBuilderChangeMessage.cpp new file mode 100644 index 00000000..5398712b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BuffBuilderChangeMessage.cpp @@ -0,0 +1,146 @@ +// BuffBuilderChangeMessage.cpp +// Copyright 2006, Sony Online Entertainment Inc., all rights reserved. + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/BuffBuilderChangeMessage.h" + +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +#include + +//----------------------------------------------------------------------- + +CONTROLLER_MESSAGE_ALLOW_FROM_CLIENT_IMPLEMENTATION(BuffBuilderChangeMessage, CM_buffBuilderChange); + +//----------------------------------------------------------------------- + +BuffBuilderChangeMessage::BuffBuilderChangeMessage() : +MessageQueue::Data(), +m_bufferId(), +m_recipientId(), +m_startingTime(0), +m_bufferRequiredCredits(0), +m_accepted(false), +m_origin(O_UNKNOWN), +m_buffComponents() +{ +} + +//----------------------------------------------------------------------- + +BuffBuilderChangeMessage & BuffBuilderChangeMessage::operator=(const BuffBuilderChangeMessage & rhs) +{ + if (this == &rhs) + return *this; + + m_bufferId = rhs.m_bufferId; + m_recipientId = rhs.m_recipientId; + m_startingTime = rhs.m_startingTime; + m_bufferRequiredCredits = rhs.m_bufferRequiredCredits; + m_accepted = rhs.m_accepted; + m_origin = rhs.m_origin; + m_buffComponents = rhs.m_buffComponents; + + return *this; +} + +//----------------------------------------------------------------------- + +void BuffBuilderChangeMessage::pack(MessageQueue::Data const * const data, Archive::ByteStream & target) +{ + const BuffBuilderChangeMessage* const msg = safe_cast (data); + + if (msg) + { + Archive::put(target, msg->getBufferId()); + Archive::put(target, msg->getRecipientId()); + Archive::put(target, msg->getStartingTime()); + Archive::put(target, msg->getBufferRequiredCredits()); + Archive::put(target, msg->getAccepted()); + Archive::put(target, msg->getOrigin()); + + std::map > const & components = msg->getBuffComponents(); + int size = components.size(); + Archive::put(target, size); + for(std::map >::const_iterator j = components.begin(); j != components.end(); ++j) + { + Archive::put(target, j->first); + Archive::put(target, j->second.first); + Archive::put(target, j->second.second); + } + } +} + +//----------------------------------------------------------------------- + +MessageQueue::Data* BuffBuilderChangeMessage::unpack(Archive::ReadIterator & source) +{ + BuffBuilderChangeMessage * msg = new BuffBuilderChangeMessage; + + NetworkId tempId; + bool tempBool = false; + std::string tempStr; + int tempInt = 0; + time_t tempTime = 0; + + Archive::get(source, tempId); + msg->setBufferId(tempId); + Archive::get(source, tempId); + msg->setRecipientId(tempId); + Archive::get(source, tempTime); + msg->setStartingTime(tempTime); + Archive::get(source, tempInt); + msg->setBufferRequiredCredits(tempInt); + Archive::get(source, tempBool); + msg->setAccepted(tempBool); + Archive::get(source, tempInt); + Origin const origin = static_cast(tempInt); + msg->setOrigin(origin); + + int size = 0; + Archive::get(source, size); + std::string name; + int value = 0; + int expertiseModifier = 0; + for(int j = 0; j < size; ++j) + { + Archive::get(source, name); + Archive::get(source, value); // count + Archive::get(source, expertiseModifier); + for(int k = 0; k < value; ++k) + { + msg->addBuffComponent(name, expertiseModifier); + } + } + + return msg; +} + +//----------------------------------------------------------------------- + +void BuffBuilderChangeMessage::addBuffComponent(std::string const & name, int expertiseModifier) +{ + int value = 1; + if(m_buffComponents.find(name) != m_buffComponents.end()) + { + value = m_buffComponents[name].first + 1; + } + + m_buffComponents[name].first = value; + m_buffComponents[name].second = expertiseModifier; +} + +//----------------------------------------------------------------------- + +void BuffBuilderChangeMessage::setBuffComponents(std::map > const & buffComponents) +{ + m_buffComponents = buffComponents; +} + + +//====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BuffBuilderChangeMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BuffBuilderChangeMessage.h new file mode 100644 index 00000000..824febe4 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BuffBuilderChangeMessage.h @@ -0,0 +1,161 @@ +// BuffBuilderChangeMessage.h +// Copyright 2006, Sony Online Entertainment Inc., all rights reserved. + +#ifndef _INCLUDED_BuffBuilderChangeMessage_H +#define _INCLUDED_BuffBuilderChangeMessage_H + +//----------------------------------------------------------------------- + +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" +class MemoryBlockManager; + +//----------------------------------------------------------------------- + +class BuffBuilderChangeMessage : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + enum Origin + { + O_BUFFER, + O_RECIPIENT, + O_SERVER, + O_UNKNOWN + }; + +public: + BuffBuilderChangeMessage(); + BuffBuilderChangeMessage & operator=(const BuffBuilderChangeMessage & rhs); + + //accessors + NetworkId const & getBufferId() const; + NetworkId const & getRecipientId() const; + time_t getStartingTime() const; + int getBufferRequiredCredits() const; + bool getAccepted() const; + Origin getOrigin() const; + std::map > const & getBuffComponents () const; + + //mutators + void setBufferId(NetworkId const & bufferId); + void setRecipientId(NetworkId const & recipientId); + void setStartingTime(time_t startingTime); + void setBufferRequiredCredits(int credits); + void setAccepted(bool accepted); + void setOrigin(Origin const & origin); + void addBuffComponent(std::string const & name, int expertiseModifier); + void setBuffComponents(std::map > const & indexChanges); + +private: + //disabled + BuffBuilderChangeMessage(BuffBuilderChangeMessage const & source); + +private: + NetworkId m_bufferId; + NetworkId m_recipientId; + time_t m_startingTime; + int m_bufferRequiredCredits; + bool m_accepted; + Origin m_origin; + std::map > m_buffComponents; +}; + +//----------------------------------------------------------------------- + +inline NetworkId const & BuffBuilderChangeMessage::getBufferId() const +{ + return m_bufferId; +} + +//----------------------------------------------------------------------- + +inline NetworkId const & BuffBuilderChangeMessage::getRecipientId() const +{ + return m_recipientId; +} + +//----------------------------------------------------------------------- + +inline time_t BuffBuilderChangeMessage::getStartingTime() const +{ + return m_startingTime; +} + +//----------------------------------------------------------------------- + +inline int BuffBuilderChangeMessage::getBufferRequiredCredits() const +{ + return m_bufferRequiredCredits; +} + +//----------------------------------------------------------------------- + +inline bool BuffBuilderChangeMessage::getAccepted() const +{ + return m_accepted; +} + +//----------------------------------------------------------------------- + +inline BuffBuilderChangeMessage::Origin BuffBuilderChangeMessage::getOrigin() const +{ + return m_origin; +} + +//----------------------------------------------------------------------- + +inline void BuffBuilderChangeMessage::setBufferId(NetworkId const & bufferId) +{ + m_bufferId = bufferId; +} + +//----------------------------------------------------------------------- + +inline void BuffBuilderChangeMessage::setRecipientId(NetworkId const & recipientId) +{ + m_recipientId = recipientId; +} + +//----------------------------------------------------------------------- + +inline void BuffBuilderChangeMessage::setStartingTime(time_t const startingTime) +{ + m_startingTime = startingTime; +} + +//----------------------------------------------------------------------- + +inline void BuffBuilderChangeMessage::setBufferRequiredCredits(int const credits) +{ + if(credits < 0) + m_bufferRequiredCredits = 0; + m_bufferRequiredCredits = credits; +} + +//----------------------------------------------------------------------- + +inline void BuffBuilderChangeMessage::setAccepted(bool const accepted) +{ + m_accepted = accepted; +} + +//----------------------------------------------------------------------- + +inline void BuffBuilderChangeMessage::setOrigin(BuffBuilderChangeMessage::Origin const & origin) +{ + m_origin = origin; +} + +//----------------------------------------------------------------------- + +inline std::map > const & BuffBuilderChangeMessage::getBuffComponents() const +{ + return m_buffComponents; +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_BuffBuilderChangeMessage_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BuffBuilderStartMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BuffBuilderStartMessage.cpp new file mode 100644 index 00000000..f951cd4a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BuffBuilderStartMessage.cpp @@ -0,0 +1,55 @@ +// ====================================================================== +// +// BuffBuilderStartMessage.cpp +// +// Copyright 2006 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/BuffBuilderStartMessage.h" + +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +// ====================================================================== + +CONTROLLER_MESSAGE_IMPLEMENTATION(BuffBuilderStartMessage, CM_buffBuilderStart); + +//---------------------------------------------------------------------- + +BuffBuilderStartMessage::BuffBuilderStartMessage(NetworkId const & bufferId, NetworkId const & recipientId ) : +MessageQueue::Data(), +m_bufferId(bufferId), +m_recipientId(recipientId) +{ +} + +//---------------------------------------------------------------------- + +void BuffBuilderStartMessage::pack(const MessageQueue::Data * const data, Archive::ByteStream & target) +{ + BuffBuilderStartMessage const * const message = safe_cast (data); + if(message) + { + Archive::put(target, message->getBufferId()); + Archive::put(target, message->getRecipientId()); + } +} + +//----------------------------------------------------------------------- + +MessageQueue::Data * BuffBuilderStartMessage::unpack(Archive::ReadIterator & source) +{ + NetworkId bufferId; + NetworkId recipientId; + + Archive::get(source, bufferId); + Archive::get(source, recipientId); + + return new BuffBuilderStartMessage(bufferId, recipientId /*, terminalId, currentHoloEmote*/); +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BuffBuilderStartMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BuffBuilderStartMessage.h new file mode 100644 index 00000000..1fcc3b40 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/BuffBuilderStartMessage.h @@ -0,0 +1,55 @@ +// ====================================================================== +// +// BuffBuilderStartMessage.h +// +// Copyright 2006 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _BuffBuilderStartMessage_H +#define _BuffBuilderStartMessage_H + +//----------------------------------------------------------------------- +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +//----------------------------------------------------------------------- + +class BuffBuilderStartMessage : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + BuffBuilderStartMessage(NetworkId const & bufferId, NetworkId const & recipientId ); + +public: + NetworkId const & getBufferId() const; + NetworkId const & getRecipientId() const; + +private: +//disabled + BuffBuilderStartMessage(BuffBuilderStartMessage const & source); + +private: + NetworkId m_bufferId; + NetworkId m_recipientId; +}; + +// ---------------------------------------------------------------------- + +inline NetworkId const & BuffBuilderStartMessage::getBufferId() const +{ + return m_bufferId; +} + +// ---------------------------------------------------------------------- + +inline NetworkId const & BuffBuilderStartMessage::getRecipientId() const +{ + return m_recipientId; +} + +// ---------------------------------------------------------------------- + +#endif + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CancelLiveAuctionMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CancelLiveAuctionMessage.cpp new file mode 100644 index 00000000..5212f28f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CancelLiveAuctionMessage.cpp @@ -0,0 +1,35 @@ +// ====================================================================== +// +// CancelLiveAuctionMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/CancelLiveAuctionMessage.h" + +// ====================================================================== + +CancelLiveAuctionMessage::CancelLiveAuctionMessage(NetworkId itemId) : + GameNetworkMessage("CancelLiveAuctionMessage"), + m_itemId(itemId) +{ + AutoByteStream::addVariable(m_itemId); +} + +// ====================================================================== + +CancelLiveAuctionMessage::CancelLiveAuctionMessage(Archive::ReadIterator &source) : + GameNetworkMessage("CancelLiveAuctionMessage"), + m_itemId() +{ + AutoByteStream::addVariable(m_itemId); + unpack(source); +} + +// ====================================================================== + +CancelLiveAuctionMessage::~CancelLiveAuctionMessage() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CancelLiveAuctionMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CancelLiveAuctionMessage.h new file mode 100644 index 00000000..329a00ce --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CancelLiveAuctionMessage.h @@ -0,0 +1,50 @@ +// ====================================================================== +// +// CancelLiveAuctionMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _CancelLiveAuctionMessage_H +#define _CancelLiveAuctionMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" + +//----------------------------------------------------------------------- + +class CancelLiveAuctionMessage : public GameNetworkMessage +{ +public: + + CancelLiveAuctionMessage(NetworkId itemId); + explicit CancelLiveAuctionMessage(Archive::ReadIterator &source); + + ~CancelLiveAuctionMessage(); + +public: // methods + + NetworkId getItemId() const; + +public: // types + +private: + Archive::AutoVariable m_itemId; //the item to be auctioned +}; + +// ---------------------------------------------------------------------- + +inline NetworkId CancelLiveAuctionMessage::getItemId() const +{ + return m_itemId.get(); +} + +// ---------------------------------------------------------------------- + +#endif // _CancelLiveAuctionMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CancelLiveAuctionResponseMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CancelLiveAuctionResponseMessage.cpp new file mode 100644 index 00000000..779f2e75 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CancelLiveAuctionResponseMessage.cpp @@ -0,0 +1,47 @@ +// ====================================================================== +// +// CancelLiveAuctionResponseMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/CancelLiveAuctionResponseMessage.h" + +// ====================================================================== + +const char * const CancelLiveAuctionResponseMessage::MessageType = "CancelLiveAuctionResponseMessage"; + +//---------------------------------------------------------------------- + +CancelLiveAuctionResponseMessage::CancelLiveAuctionResponseMessage(NetworkId itemId, AuctionResult result, bool vendorRefusal) : + GameNetworkMessage(MessageType), + m_itemId(itemId), + m_result(result), + m_vendorRefusal(vendorRefusal) +{ + AutoByteStream::addVariable(m_itemId); + AutoByteStream::addVariable(m_result); + AutoByteStream::addVariable(m_vendorRefusal); +} + +// ====================================================================== + +CancelLiveAuctionResponseMessage::CancelLiveAuctionResponseMessage(Archive::ReadIterator &source) : + GameNetworkMessage(MessageType), + m_itemId(), + m_result(), + m_vendorRefusal() +{ + AutoByteStream::addVariable(m_itemId); + AutoByteStream::addVariable(m_result); + AutoByteStream::addVariable(m_vendorRefusal); + unpack(source); +} + +// ====================================================================== + +CancelLiveAuctionResponseMessage::~CancelLiveAuctionResponseMessage() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CancelLiveAuctionResponseMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CancelLiveAuctionResponseMessage.h new file mode 100644 index 00000000..6e711ba3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CancelLiveAuctionResponseMessage.h @@ -0,0 +1,72 @@ +// ====================================================================== +// +// CancelLiveAuctionResponseMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _CancelLiveAuctionResponseMessage_H +#define _CancelLiveAuctionResponseMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/AuctionErrorCodes.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" + +//----------------------------------------------------------------------- + +class CancelLiveAuctionResponseMessage : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + CancelLiveAuctionResponseMessage(NetworkId itemId, AuctionResult result, bool vendorRefusal = false); + explicit CancelLiveAuctionResponseMessage(Archive::ReadIterator &source); + + ~CancelLiveAuctionResponseMessage(); + +public: // methods + + NetworkId getItemId() const; + AuctionResult getResult() const; + bool isVendorRefusal() const; + +public: // types + +private: + Archive::AutoVariable m_itemId; //the item to be auctioned + Archive::AutoVariable m_result; //the auction container + Archive::AutoVariable m_vendorRefusal; +}; + +// ---------------------------------------------------------------------- + +inline NetworkId CancelLiveAuctionResponseMessage::getItemId() const +{ + return m_itemId.get(); +} + +// ---------------------------------------------------------------------- + +inline AuctionResult CancelLiveAuctionResponseMessage::getResult() const +{ + return static_cast(m_result.get()); +} + +// ---------------------------------------------------------------------- + +inline bool CancelLiveAuctionResponseMessage::isVendorRefusal() const +{ + return m_vendorRefusal.get(); +} + + +// ---------------------------------------------------------------------- + +#endif // _CancelLiveAuctionResponseMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CharacterSheetResponseMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CharacterSheetResponseMessage.cpp new file mode 100644 index 00000000..59576c7e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CharacterSheetResponseMessage.cpp @@ -0,0 +1,142 @@ +// ====================================================================== +// +// CharacterSheetResponseMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/CharacterSheetResponseMessage.h" + +// ====================================================================== + +const char* const CharacterSheetResponseMessage::cms_name = "CharacterSheetResponseMessage"; + +// ====================================================================== + +CharacterSheetResponseMessage::CharacterSheetResponseMessage(int bornDate, int played, const Vector& bindLoc, + const std::string& bindPlanet, const Vector& bankLoc, + const std::string& bankPlanet, const Vector& residenceLoc, + const std::string& residencePlanet, const std::string& citizensOf, + const Unicode::String& spouseName, int lotsUsed) +: GameNetworkMessage(cms_name), + m_bornDate(bornDate), + m_played(played), + m_bindLocation(bindLoc), + m_bindPlanet(bindPlanet), + m_bankLocation(bankLoc), + m_bankPlanet(bankPlanet), + m_residenceLocation(residenceLoc), + m_residencePlanet(residencePlanet), + m_citizensOf(citizensOf), + m_spouseName(spouseName), + m_lotsUsed(lotsUsed) +{ + AutoByteStream::addVariable(m_bornDate); + AutoByteStream::addVariable(m_played); + AutoByteStream::addVariable(m_bindLocation); + AutoByteStream::addVariable(m_bindPlanet); + AutoByteStream::addVariable(m_bankLocation); + AutoByteStream::addVariable(m_bankPlanet); + AutoByteStream::addVariable(m_residenceLocation); + AutoByteStream::addVariable(m_residencePlanet); + AutoByteStream::addVariable(m_citizensOf); + AutoByteStream::addVariable(m_spouseName); + AutoByteStream::addVariable(m_lotsUsed); +} + +// ====================================================================== + +CharacterSheetResponseMessage::CharacterSheetResponseMessage(Archive::ReadIterator &source) +: GameNetworkMessage(cms_name), + m_bornDate(0), + m_played(0), + m_bindLocation(), + m_bindPlanet(), + m_bankLocation(), + m_bankPlanet(), + m_residenceLocation(), + m_residencePlanet(), + m_citizensOf(), + m_spouseName(), + m_lotsUsed(0) +{ + AutoByteStream::addVariable(m_bornDate); + AutoByteStream::addVariable(m_played); + AutoByteStream::addVariable(m_bindLocation); + AutoByteStream::addVariable(m_bindPlanet); + AutoByteStream::addVariable(m_bankLocation); + AutoByteStream::addVariable(m_bankPlanet); + AutoByteStream::addVariable(m_residenceLocation); + AutoByteStream::addVariable(m_residencePlanet); + AutoByteStream::addVariable(m_citizensOf); + AutoByteStream::addVariable(m_spouseName); + AutoByteStream::addVariable(m_lotsUsed); + unpack(source); +} + +// ---------------------------------------------------------------------- + +CharacterSheetResponseMessage::~CharacterSheetResponseMessage() +{ +} + + +// ---------------------------------------------------------------------- + +const Vector& CharacterSheetResponseMessage::getBindLoc () const +{ + return m_bindLocation.get(); +} + +// ---------------------------------------------------------------------- + +const std::string& CharacterSheetResponseMessage::getBindPlanet () const +{ + return m_bindPlanet.get(); +} + +// ---------------------------------------------------------------------- + +const Vector& CharacterSheetResponseMessage::getBankLoc () const +{ + return m_bankLocation.get(); +} + +// ---------------------------------------------------------------------- + +const std::string& CharacterSheetResponseMessage::getResidencePlanet () const +{ + return m_residencePlanet.get(); +} + +// ---------------------------------------------------------------------- + +const std::string& CharacterSheetResponseMessage::getCitizensOf () const +{ + return m_citizensOf.get(); +} + +// ---------------------------------------------------------------------- + +const Vector& CharacterSheetResponseMessage::getResidenceLoc () const +{ + return m_residenceLocation.get(); +} + +// ---------------------------------------------------------------------- + +const std::string& CharacterSheetResponseMessage::getBankPlanet () const +{ + return m_bankPlanet.get(); +} + +// ---------------------------------------------------------------------- + +const Unicode::String& CharacterSheetResponseMessage::getSpouseName () const +{ + return m_spouseName.get(); +} + +// ====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CharacterSheetResponseMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CharacterSheetResponseMessage.h new file mode 100644 index 00000000..cfc9e6be --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CharacterSheetResponseMessage.h @@ -0,0 +1,87 @@ +// ====================================================================== +// +// CharacterSheetResponseMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _CharacterSheetResponseMessage_H +#define _CharacterSheetResponseMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" + +#include "sharedMath/Vector.h" +#include "sharedMathArchive/VectorArchive.h" + +//----------------------------------------------------------------------- + +class CharacterSheetResponseMessage : public GameNetworkMessage +{ +public: + CharacterSheetResponseMessage (int bornDate, int played, const Vector& bindLoc, + const std::string& bindPlanet, const Vector& bankLoc, + const std::string& bankPlanet, const Vector& residenceLoc, + const std::string& residencePlanet, const std::string& citizensOf, + const Unicode::String& spouseName, int lotsUsed); + explicit CharacterSheetResponseMessage(Archive::ReadIterator &source); + ~CharacterSheetResponseMessage(); + +public: // methods + int getBornDate () const; + int getPlayed () const; + const Vector& getBindLoc () const; + const std::string& getBindPlanet () const; + const Vector& getBankLoc () const; + const std::string& getBankPlanet () const; + const Vector& getResidenceLoc () const; + const std::string& getResidencePlanet () const; + const std::string& getCitizensOf () const; + const Unicode::String& getSpouseName () const; + int getLotsUsed () const; + +public: + static const char* const cms_name; + +private: + Archive::AutoVariable m_bornDate; + Archive::AutoVariable m_played; + Archive::AutoVariable m_bindLocation; + Archive::AutoVariable m_bindPlanet; + Archive::AutoVariable m_bankLocation; + Archive::AutoVariable m_bankPlanet; + Archive::AutoVariable m_residenceLocation; + Archive::AutoVariable m_residencePlanet; + Archive::AutoVariable m_citizensOf; + Archive::AutoVariable m_spouseName; + Archive::AutoVariable m_lotsUsed; +}; + +// ---------------------------------------------------------------------- + +inline int CharacterSheetResponseMessage::getBornDate () const +{ + return m_bornDate.get(); +} + +// ---------------------------------------------------------------------- + +inline int CharacterSheetResponseMessage::getPlayed () const +{ + return m_played.get(); +} + +// ---------------------------------------------------------------------- + +inline int CharacterSheetResponseMessage::getLotsUsed () const +{ + return m_lotsUsed.get(); +} + +// ---------------------------------------------------------------------- + +#endif // _CharacterSheetResponseMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientCentralMessages.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientCentralMessages.cpp new file mode 100644 index 00000000..23732e08 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientCentralMessages.cpp @@ -0,0 +1,420 @@ +// ClientCentralMessages.cpp +// copyright 2001 Verant Interactive +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "Archive/ByteStream.h" +#include "sharedFoundation/ConfigFile.h" +#include "sharedNetworkMessages/ClientCentralMessages.h" +#include "unicodeArchive/UnicodeArchive.h" + +//----------------------------------------------------------------------- + +//-- todo add SetupSharedNetworkMessages.* and ConfigSharedNetworkMessages.* +#define ConfigVersion ConfigFile::getKeyString("SharedNetworkMessages", "version", 0) + +ClientIdMsg::ClientIdMsg(const unsigned char * const newToken, const uint16 newTokenSize, uint32 gameBitsToClear) : +GameNetworkMessage("ClientIdMsg"), +m_gameBitsToClear(gameBitsToClear), +token(), +version(ConfigVersion ? ConfigVersion : NetworkVersionId), //-- todo production build should not allow this +tokenData(0) +{ + WARNING(ConfigVersion, ("Network version override detected: %s", ConfigVersion)); + + tokenData = new unsigned char[newTokenSize]; + memcpy(tokenData, newToken, newTokenSize); + + std::vector a; + for(unsigned int i = 0; i < newTokenSize; ++i) + { + a.push_back(newToken[i]); + } + token.set(a); + addVariable(m_gameBitsToClear); + addVariable(token); + addVariable(version); +} + +//----------------------------------------------------------------------- + +ClientIdMsg::ClientIdMsg(Archive::ReadIterator & source) : +GameNetworkMessage("ClientIdMsg"), +m_gameBitsToClear(0), +token(), +version(), +tokenData(0) +{ + addVariable(m_gameBitsToClear); + addVariable(token); + addVariable(version); + AutoByteStream::unpack(source); + unsigned int tokenSize = token.get().size(); + tokenData = new unsigned char[tokenSize]; + const std::vector & a = token.get(); + for(unsigned int i = 0; i < tokenSize; i ++) + { + tokenData[i] = a[i]; + } +} + +//----------------------------------------------------------------------- + +ClientIdMsg::~ClientIdMsg() +{ + delete[] tokenData; +} + +// ====================================================================== + +EnumerateCharacterId::EnumerateCharacterId(const std::vector &data) : + GameNetworkMessage("EnumerateCharacterId"), + m_data() +{ + m_data.set(data); + addVariable(m_data); +} + +// ---------------------------------------------------------------------- + +EnumerateCharacterId::EnumerateCharacterId(Archive::ReadIterator & source) : + GameNetworkMessage("EnumerateCharacterId"), + m_data() +{ + addVariable(m_data); + unpack(source); +} + +//----------------------------------------------------------------------- + +EnumerateCharacterId::~EnumerateCharacterId() +{ +} + +// ---------------------------------------------------------------------- + +EnumerateCharacterId_Chardata::EnumerateCharacterId_Chardata() +{ +} + +// ---------------------------------------------------------------------- + +EnumerateCharacterId_Chardata::EnumerateCharacterId_Chardata(const Unicode::String &name, int objectTemplateId, const NetworkId &networkId, uint32 clusterId, CharacterType characterType) : + m_name(name), + m_objectTemplateId(objectTemplateId), + m_networkId(networkId), + m_clusterId(clusterId), + m_characterType(characterType) +{ +} + +// ---------------------------------------------------------------------- + +const std::vector &EnumerateCharacterId::getData() const +{ + return m_data.get(); +} + +// ====================================================================== + +SelectCharacter::SelectCharacter(const NetworkId &id) : + GameNetworkMessage("SelectCharacter"), + m_id(id) +{ + addVariable(m_id); +} + +//----------------------------------------------------------------------- + +SelectCharacter::SelectCharacter(Archive::ReadIterator & source) : + GameNetworkMessage("SelectCharacter"), + m_id() +{ + addVariable(m_id); + unpack(source); +} + +//----------------------------------------------------------------------- + +SelectCharacter::~SelectCharacter() +{ +} + +//----------------------------------------------------------------------- + + +ClientCreateCharacter::ClientCreateCharacter(const Unicode::String & characterName, const std::string & templateName, float scaleFactor, const std::string & startingLocation, const std::string& customAppearanceData, const std::string & hairTemplateName, const std::string & hairAppearanceData, const std::string & profession, bool jedi, const Unicode::String & biography, bool useNewbieTutorial, const std::string & skillTemplate, const std::string & workingSkill) : +GameNetworkMessage ("ClientCreateCharacter"), +m_appearanceData (customAppearanceData), +m_characterName (characterName), +m_templateName (templateName), +m_startingLocation (startingLocation), +m_hairTemplateName (hairTemplateName), +m_hairAppearanceData (hairAppearanceData), +m_profession (profession), +m_jedi (jedi), +m_scaleFactor (scaleFactor), +m_biography (biography), +m_useNewbieTutorial (useNewbieTutorial), +m_skillTemplate (skillTemplate), +m_workingSkill (workingSkill) +{ + addVariable(m_appearanceData); + addVariable(m_characterName); + addVariable(m_templateName); + addVariable(m_startingLocation); + addVariable(m_hairTemplateName); + addVariable(m_hairAppearanceData); + addVariable(m_profession); + addVariable(m_jedi); + addVariable(m_scaleFactor); + addVariable(m_biography); + addVariable(m_useNewbieTutorial); + addVariable(m_skillTemplate); + addVariable(m_workingSkill); +} + +//----------------------------------------------------------------------- + +ClientCreateCharacter::ClientCreateCharacter(Archive::ReadIterator & source) : +GameNetworkMessage ("ClientCreateCharacter"), +m_appearanceData (), +m_characterName (), +m_templateName (), +m_startingLocation (), +m_hairTemplateName (), +m_hairAppearanceData (), +m_profession (), +m_jedi (), +m_scaleFactor (1.0f), +m_biography (), +m_useNewbieTutorial (false), +m_skillTemplate (), +m_workingSkill () +{ + addVariable(m_appearanceData); + addVariable(m_characterName); + addVariable(m_templateName); + addVariable(m_startingLocation); + addVariable(m_hairTemplateName); + addVariable(m_hairAppearanceData); + addVariable(m_profession); + addVariable(m_jedi); + addVariable(m_scaleFactor); + addVariable(m_biography); + addVariable(m_useNewbieTutorial); + addVariable(m_skillTemplate); + addVariable(m_workingSkill); + unpack(source); +} + +//----------------------------------------------------------------------- + +ClientCreateCharacter::~ClientCreateCharacter() +{ +} + +//---------------------------------------------------------------------- + +const float ClientCreateCharacter::getScaleFactor () const +{ + return m_scaleFactor.get (); +} + +//----------------------------------------------------------------------- + +const char * const ClientCreateCharacterSuccess::MessageType = "ClientCreateCharacterSuccess"; + +//---------------------------------------------------------------------- + +ClientCreateCharacterSuccess::ClientCreateCharacterSuccess (const NetworkId & networkId) : +GameNetworkMessage (ClientCreateCharacterSuccess::MessageType), +m_networkId (networkId) +{ + addVariable(m_networkId); +} + +//----------------------------------------------------------------------- + +ClientCreateCharacterSuccess::ClientCreateCharacterSuccess(Archive::ReadIterator & source) : +GameNetworkMessage (ClientCreateCharacterSuccess::MessageType), +m_networkId () +{ + addVariable(m_networkId); + unpack(source); +} + +//----------------------------------------------------------------------- + +ClientCreateCharacterSuccess::~ClientCreateCharacterSuccess() +{ +} + +//----------------------------------------------------------------------- + +ClientCreateCharacterFailed::ClientCreateCharacterFailed(const Unicode::String &name, const StringId &errorMessage) : +GameNetworkMessage("ClientCreateCharacterFailed"), +m_name(name), +m_errorMessage(errorMessage) +{ + addVariable(m_name); + addVariable(m_errorMessage); +} + +//----------------------------------------------------------------------- + +ClientCreateCharacterFailed::ClientCreateCharacterFailed(Archive::ReadIterator & source) : +GameNetworkMessage("ClientCreateCharacterFailed") +{ + addVariable(m_name); + addVariable(m_errorMessage); + unpack(source); +} + +//----------------------------------------------------------------------- + +ClientCreateCharacterFailed::~ClientCreateCharacterFailed() +{ +} + +//----------------------------------------------------------------------- + +RefreshCharacterList::RefreshCharacterList() : +GameNetworkMessage("RefreshCharacterList") +{ +} + +//----------------------------------------------------------------------- + +RefreshCharacterList::RefreshCharacterList(Archive::ReadIterator & source) : +GameNetworkMessage("RefreshCharacterList") +{ + UNREF(source); +} + +//----------------------------------------------------------------------- + +RefreshCharacterList::~RefreshCharacterList() +{ +} + +//----------------------------------------------------------------------- + +ClientRandomNameRequest::ClientRandomNameRequest(const std::string & creatureTemplate) : +GameNetworkMessage("ClientRandomNameRequest"), +m_creatureTemplate(creatureTemplate) +{ + addVariable(m_creatureTemplate); +} + +//----------------------------------------------------------------------- + +ClientRandomNameRequest::ClientRandomNameRequest(Archive::ReadIterator & source) : +GameNetworkMessage("ClientRandomNameRequest"), +m_creatureTemplate() +{ + addVariable(m_creatureTemplate); + + unpack(source); +} + +//----------------------------------------------------------------------- + +ClientRandomNameRequest::~ClientRandomNameRequest() +{ +} + +//----------------------------------------------------------------------- + +ClientVerifyAndLockNameRequest::ClientVerifyAndLockNameRequest(const std::string & templateName, const Unicode::String & characterName) : +GameNetworkMessage("ClientVerifyAndLockNameRequest"), +m_templateName(templateName), +m_characterName(characterName) +{ + addVariable(m_templateName); + addVariable(m_characterName); +} + +//----------------------------------------------------------------------- + +ClientVerifyAndLockNameRequest::ClientVerifyAndLockNameRequest(Archive::ReadIterator & source) : +GameNetworkMessage("ClientVerifyAndLockNameRequest"), +m_templateName(), +m_characterName() +{ + addVariable(m_templateName); + addVariable(m_characterName); + unpack(source); +} + +//----------------------------------------------------------------------- + +ClientVerifyAndLockNameRequest::~ClientVerifyAndLockNameRequest() +{ +} + +//----------------------------------------------------------------------- + +ClientRandomNameResponse::ClientRandomNameResponse(const std::string & creatureTemplate, const Unicode::String &name, const StringId &errorMessage) : +GameNetworkMessage("ClientRandomNameResponse"), +m_creatureTemplate(creatureTemplate), +m_name(name), +m_errorMessage(errorMessage) +{ + addVariable(m_creatureTemplate); + addVariable(m_name); + addVariable(m_errorMessage); +} + +//----------------------------------------------------------------------- + +ClientRandomNameResponse::ClientRandomNameResponse(Archive::ReadIterator & source) : +GameNetworkMessage("ClientRandomNameResponse"), +m_creatureTemplate(), +m_name(), +m_errorMessage() +{ + addVariable(m_creatureTemplate); + addVariable(m_name); + addVariable(m_errorMessage); + + unpack(source); +} + +//----------------------------------------------------------------------- + +ClientRandomNameResponse::~ClientRandomNameResponse() +{ +} + +//----------------------------------------------------------------------- + +ClientVerifyAndLockNameResponse::ClientVerifyAndLockNameResponse(const Unicode::String &characterName, const StringId &errorMessage) : +GameNetworkMessage("ClientVerifyAndLockNameResponse"), +m_characterName(characterName), +m_errorMessage(errorMessage) +{ + addVariable(m_characterName); + addVariable(m_errorMessage); +} + +//----------------------------------------------------------------------- + +ClientVerifyAndLockNameResponse::ClientVerifyAndLockNameResponse(Archive::ReadIterator & source) : +GameNetworkMessage("ClientVerifyAndLockNameResponse"), +m_characterName(), +m_errorMessage() +{ + addVariable(m_characterName); + addVariable(m_errorMessage); + + unpack(source); +} + +//----------------------------------------------------------------------- + +ClientVerifyAndLockNameResponse::~ClientVerifyAndLockNameResponse() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientCentralMessages.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientCentralMessages.h new file mode 100644 index 00000000..94359452 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientCentralMessages.h @@ -0,0 +1,495 @@ +// ClientCentralMessages.h +// copyright 2001 Verant Interactive +// Author: Justin Randall + +#ifndef _INCLUDED_ClientCentralMessages_H +#define _INCLUDED_ClientCentralMessages_H + +//----------------------------------------------------------------------- + +#include "StringId.h" +#include "Unicode.h" +#include "localizationArchive/StringIdArchive.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/NetworkIdArchive.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "unicodeArchive/UnicodeArchive.h" + +//----------------------------------------------------------------------- + +class ClientIdMsg : public GameNetworkMessage +{ +public: + ClientIdMsg(const unsigned char * const newToken, const uint16 newTokenSize, uint32 gameBitsToClear); + explicit ClientIdMsg(Archive::ReadIterator & source); + ~ClientIdMsg(); + const uint32 getGameBitsToClear() const; + const unsigned char * const getToken (void) const; + const std::string & getVersion () const; + const uint16 getTokenSize (void) const; + +private: + Archive::AutoVariable m_gameBitsToClear; + Archive::AutoArray token; + Archive::AutoVariable version; + unsigned char * tokenData; + + ClientIdMsg(); + ClientIdMsg(const ClientIdMsg&); + ClientIdMsg& operator= (const ClientIdMsg&); +}; + +//----------------------------------------------------------------------- + +inline const uint32 ClientIdMsg::getGameBitsToClear() const +{ + return m_gameBitsToClear.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned char * const ClientIdMsg::getToken(void) const +{ + return tokenData; +} + +//----------------------------------------------------------------------- + +inline const std::string & ClientIdMsg::getVersion() const +{ + return version.get(); +} + +//----------------------------------------------------------------------- + +inline const uint16 ClientIdMsg::getTokenSize(void) const +{ + const std::vector & t = token.get(); + return static_cast(t.size()); +} + +//----------------------------------------------------------------------- + +struct EnumerateCharacterId_Chardata +{ + enum CharacterType {CT_normal=1,CT_jedi=2,CT_spectral=3}; + + Unicode::String m_name; + int m_objectTemplateId; + NetworkId m_networkId; + uint32 m_clusterId; + int m_characterType; + + EnumerateCharacterId_Chardata(); + EnumerateCharacterId_Chardata(const Unicode::String &name, int objectTemplateId, const NetworkId &networkId, uint32 clusterId, CharacterType characterType); +}; + +//----------------------------------------------------------------------- + +class EnumerateCharacterId : public GameNetworkMessage +{ + public: + typedef EnumerateCharacterId_Chardata Chardata; + + public: + explicit EnumerateCharacterId(const std::vector &data); + explicit EnumerateCharacterId(Archive::ReadIterator & source); + ~EnumerateCharacterId(); + + const std::vector &getData() const; + void addCharacter(const Unicode::String &name, const std::string &objectTemplate, const NetworkId &networkId); + + private: + Archive::AutoArray m_data; + + EnumerateCharacterId(); + EnumerateCharacterId(const EnumerateCharacterId&); + EnumerateCharacterId& operator= (const EnumerateCharacterId&); +}; + +// ---------------------------------------------------------------------- + +namespace Archive +{ + inline void get(ReadIterator & source, EnumerateCharacterId_Chardata &c) + { + get(source,c.m_name); + get(source,c.m_objectTemplateId); + get(source,c.m_networkId); + get(source,c.m_clusterId); + get(source,c.m_characterType); + } + + inline void put(ByteStream & target, EnumerateCharacterId_Chardata const &c) + { + put(target,c.m_name); + put(target,c.m_objectTemplateId); + put(target,c.m_networkId); + put(target,c.m_clusterId); + put(target,c.m_characterType); + } +} + +// ---------------------------------------------------------------------- + +class SelectCharacter : public GameNetworkMessage +{ +public: + explicit SelectCharacter(const NetworkId &id); + explicit SelectCharacter(Archive::ReadIterator & source); + ~SelectCharacter(); + + const NetworkId & getId (void) const; + +private: + Archive::AutoVariable m_id; + + SelectCharacter(); + SelectCharacter(const SelectCharacter&); + SelectCharacter& operator= (const SelectCharacter&); +}; + +//----------------------------------------------------------------------- + +inline const NetworkId & SelectCharacter::getId(void) const +{ + return m_id.get(); +} + +//----------------------------------------------------------------------- + +class ClientCreateCharacter : public GameNetworkMessage +{ +public: + ClientCreateCharacter(const Unicode::String & characterName, const std::string & templateName, float scaleFactor, const std::string & startingLocation, const std::string& customAppearanceData, const std::string & hairTemplateName, const std::string & hairAppearanceData, const std::string & profession, bool jedi, const Unicode::String & biography, bool useNewbieTutorial, const std::string & skillTemplate, const std::string & workingSkill); + explicit ClientCreateCharacter(Archive::ReadIterator & source); + ~ClientCreateCharacter(); + + const float getScaleFactor () const; + const std::string & getAppearanceData () const; + const Unicode::String & getCharacterName () const; + const std::string & getStartingLocation () const; + const std::string & getTemplateName () const; + const std::string & getHairTemplateName () const; + const std::string & getHairAppearanceData () const; + const std::string & getProfession () const; + const bool getJedi () const; + const Unicode::String & getBiography () const; + const bool getUseNewbieTutorial () const; + const std::string & getSkillTemplate () const; + const std::string & getWorkingSkill () const; + +private: + Archive::AutoVariable m_appearanceData; + Archive::AutoVariable m_characterName; + Archive::AutoVariable m_templateName; + Archive::AutoVariable m_startingLocation; + Archive::AutoVariable m_hairTemplateName; + Archive::AutoVariable m_hairAppearanceData; + Archive::AutoVariable m_profession; + Archive::AutoVariable m_jedi; + Archive::AutoVariable m_scaleFactor; + Archive::AutoVariable m_biography; + Archive::AutoVariable m_useNewbieTutorial; + Archive::AutoVariable m_skillTemplate; + Archive::AutoVariable m_workingSkill; + + ClientCreateCharacter (); + ClientCreateCharacter (const ClientCreateCharacter&); + ClientCreateCharacter& operator= (const ClientCreateCharacter&); +}; + +//----------------------------------------------------------------------- + +inline const std::string & ClientCreateCharacter::getAppearanceData(void) const +{ + return m_appearanceData.get(); +} + +//----------------------------------------------------------------------- + +inline const Unicode::String & ClientCreateCharacter::getCharacterName(void) const +{ + return m_characterName.get(); +} + +//----------------------------------------------------------------------- + +inline const std::string & ClientCreateCharacter::getStartingLocation(void) const +{ + return m_startingLocation.get(); +} + +//----------------------------------------------------------------------- + +inline const std::string & ClientCreateCharacter::getTemplateName(void) const +{ + return m_templateName.get(); +} + +//----------------------------------------------------------------------- + +inline const std::string & ClientCreateCharacter::getHairTemplateName(void) const +{ + return m_hairTemplateName.get(); +} + +//----------------------------------------------------------------------- + +inline const std::string & ClientCreateCharacter::getHairAppearanceData(void) const +{ + return m_hairAppearanceData.get(); +} + +//----------------------------------------------------------------------- + +inline const std::string & ClientCreateCharacter::getProfession(void) const +{ + return m_profession.get(); +} + +//----------------------------------------------------------------------- + +inline const bool ClientCreateCharacter::getJedi(void) const +{ + return m_jedi.get(); +} + +//---------------------------------------------------------------------- + +inline const Unicode::String & ClientCreateCharacter::getBiography() const +{ + return m_biography.get (); +} + +//---------------------------------------------------------------------- + +inline const bool ClientCreateCharacter::getUseNewbieTutorial() const +{ + return m_useNewbieTutorial.get(); +} + +//---------------------------------------------------------------------- + +inline const std::string & ClientCreateCharacter::getSkillTemplate(void) const +{ + return m_skillTemplate.get(); +} + +//----------------------------------------------------------------------- + +inline const std::string & ClientCreateCharacter::getWorkingSkill(void) const +{ + return m_workingSkill.get(); +} + +//----------------------------------------------------------------------- + +class ClientCreateCharacterSuccess : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + explicit ClientCreateCharacterSuccess (const NetworkId & networkID); + explicit ClientCreateCharacterSuccess(Archive::ReadIterator & source); + ~ClientCreateCharacterSuccess(); + + const NetworkId & getNetworkId () const; + +private: + ClientCreateCharacterSuccess(const ClientCreateCharacterSuccess & source); + ClientCreateCharacterSuccess & operator = (const ClientCreateCharacterSuccess & rhs); + + Archive::AutoVariable m_networkId; +}; + +//---------------------------------------------------------------------- + +inline const NetworkId & ClientCreateCharacterSuccess::getNetworkId () const +{ + return m_networkId.get (); +} + +//----------------------------------------------------------------------- + +class ClientCreateCharacterFailed : public GameNetworkMessage +{ +public: + ClientCreateCharacterFailed(const Unicode::String &name, const StringId &errorMessage); + explicit ClientCreateCharacterFailed(Archive::ReadIterator & source); + + const Unicode::String &getName() const; + const StringId &getErrorMessage() const; + + ~ClientCreateCharacterFailed(); +private: + Archive::AutoVariable m_name; + Archive::AutoVariable m_errorMessage; + ClientCreateCharacterFailed(const ClientCreateCharacterFailed & source); + ClientCreateCharacterFailed & operator = (const ClientCreateCharacterFailed & rhs); +}; + +//-------------------------------------------------------------------- + +inline const Unicode::String &ClientCreateCharacterFailed::getName() const +{ + return m_name.get(); +} + +//-------------------------------------------------------------------- + +inline const StringId &ClientCreateCharacterFailed::getErrorMessage() const +{ + return m_errorMessage.get(); +} + +//----------------------------------------------------------------------- + +class RefreshCharacterList : public GameNetworkMessage +{ +public: + RefreshCharacterList(); + explicit RefreshCharacterList(Archive::ReadIterator & source); + ~RefreshCharacterList(); + +private: + RefreshCharacterList(const RefreshCharacterList & source); + RefreshCharacterList & operator = (const RefreshCharacterList & rhs); +}; + +//----------------------------------------------------------------------- + +class ClientRandomNameRequest: public GameNetworkMessage +{ +public: + explicit ClientRandomNameRequest(const std::string &creatureTemplate); + explicit ClientRandomNameRequest(Archive::ReadIterator & source); + ~ClientRandomNameRequest(); + + const std::string &getCreatureTemplate() const; +private: + Archive::AutoVariable m_creatureTemplate; + + ClientRandomNameRequest(const ClientRandomNameRequest & source); + ClientRandomNameRequest & operator = (const ClientRandomNameRequest & other); +}; + +//-------------------------------------------------------------------- + +inline const std::string &ClientRandomNameRequest::getCreatureTemplate() const +{ + return m_creatureTemplate.get(); +} + +//----------------------------------------------------------------------- + +class ClientVerifyAndLockNameRequest: public GameNetworkMessage +{ +public: + explicit ClientVerifyAndLockNameRequest(const std::string& templateName, const Unicode::String& characterName); + explicit ClientVerifyAndLockNameRequest(Archive::ReadIterator& source); + ~ClientVerifyAndLockNameRequest(); + + const std::string& getTemplateName() const; + const Unicode::String& getCharacterName() const; +private: + Archive::AutoVariable m_templateName; + Archive::AutoVariable m_characterName; + + ClientVerifyAndLockNameRequest(const ClientVerifyAndLockNameRequest& source); + ClientVerifyAndLockNameRequest & operator = (const ClientVerifyAndLockNameRequest& other); +}; + +//-------------------------------------------------------------------- + +inline const std::string& ClientVerifyAndLockNameRequest::getTemplateName() const +{ + return m_templateName.get(); +} + +//----------------------------------------------------------------------- + +inline const Unicode::String& ClientVerifyAndLockNameRequest::getCharacterName() const +{ + return m_characterName.get(); +} + +//----------------------------------------------------------------------- + +class ClientRandomNameResponse: public GameNetworkMessage +{ +public: + explicit ClientRandomNameResponse(const std::string& creatureTemplate, const Unicode::String& name, const StringId& errorMessage); + explicit ClientRandomNameResponse(Archive::ReadIterator& source); + ~ClientRandomNameResponse(); + + const std::string& getCreatureTemplate() const; + const Unicode::String& getName() const; + const StringId& getErrorMessage() const; +private: + Archive::AutoVariable m_creatureTemplate; + Archive::AutoVariable m_name; + Archive::AutoVariable m_errorMessage; + + ClientRandomNameResponse(const ClientRandomNameRequest& source); + ClientRandomNameResponse & operator = (const ClientRandomNameRequest& other); +}; + +//-------------------------------------------------------------------- + +inline const std::string& ClientRandomNameResponse::getCreatureTemplate() const +{ + return m_creatureTemplate.get(); +} + +//-------------------------------------------------------------------- + +inline const Unicode::String& ClientRandomNameResponse::getName() const +{ + return m_name.get(); +} + +//-------------------------------------------------------------------- + +inline const StringId& ClientRandomNameResponse::getErrorMessage() const +{ + return m_errorMessage.get(); +} + +//-------------------------------------------------------------------- + +class ClientVerifyAndLockNameResponse: public GameNetworkMessage +{ +public: + explicit ClientVerifyAndLockNameResponse(const Unicode::String& characterName, const StringId& errorMessage); + explicit ClientVerifyAndLockNameResponse(Archive::ReadIterator& source); + ~ClientVerifyAndLockNameResponse(); + + const Unicode::String& getCharacterName() const; + const StringId& getErrorMessage() const; +private: + Archive::AutoVariable m_characterName; + Archive::AutoVariable m_errorMessage; + + ClientVerifyAndLockNameResponse(const ClientVerifyAndLockNameResponse& source); + ClientVerifyAndLockNameResponse & operator = (const ClientVerifyAndLockNameResponse& other); +}; + +//-------------------------------------------------------------------- + +inline const Unicode::String& ClientVerifyAndLockNameResponse::getCharacterName() const +{ + return m_characterName.get(); +} + +//----------------------------------------------------------------------- + +inline const StringId& ClientVerifyAndLockNameResponse::getErrorMessage() const +{ + return m_errorMessage.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ClientCentralMessages_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientEffectMessages.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientEffectMessages.cpp new file mode 100644 index 00000000..bddc6432 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientEffectMessages.cpp @@ -0,0 +1,954 @@ +// ====================================================================== +// +// ClientEffectMessages.cpp +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ClientEffectMessages.h" + +#include "Archive/AutoByteStream.h" +#include "Archive/ByteStream.h" +#include "UnicodeUtils.h" +#include "sharedFoundation/NetworkId.h" +#include "unicodeArchive/UnicodeArchive.h" + +// ====================================================================== + +const char * const PlayClientEffectObjectMessage::MESSAGE_TYPE = "PlayClientEffectObjectMessage"; +const char * const PlayClientEffectObjectTransformMessage::MESSAGE_TYPE = "PlayClientEffectObjectTransformMessage"; +const char * const PlayClientEffectLocMessage::MESSAGE_TYPE = "PlayClientEffectLocMessage"; +const char * const StopClientEffectObjectByLabelMessage::MESSAGE_TYPE = "StopClientEffectObjectByLabelMessage"; +const char * const PlayClientEventObjectMessage::MESSAGE_TYPE = "PlayClientEventObjectMessage"; +const char * const PlayClientEventObjectTransformMessage::MESSAGE_TYPE = "PlayClientEventObjectTransformMessage"; +const char * const PlayClientEventLocMessage::MESSAGE_TYPE = "PlayClientEventLocMessage"; +const char * const CreateClientProjectileMessage::MESSAGE_TYPE = "CreateClientProjectileMessage"; +const char * const CreateClientProjectileObjectToObjectMessage::MESSAGE_TYPE = "CreateClientProjectileObjectToObjectMessage"; +const char * const CreateClientProjectileLocationToObjectMessage::MESSAGE_TYPE = "CreateClientProjectileLocationToObjectMessage"; +const char * const CreateClientProjectileObjectToLocationMessage::MESSAGE_TYPE = "CreateClientProjectileObjectToLocationMessage"; + +// ====================================================================== + +PlayClientEffectObjectMessage::PlayClientEffectObjectMessage(const NetworkId& id, const std::string& effectName, const std::string& hardpoint, const std::string& label) +: GameNetworkMessage(MESSAGE_TYPE), + m_effectName(effectName), + m_hardpoint(hardpoint), + m_objectId(id), + m_label(label) +{ + addVariable(m_effectName); + addVariable(m_hardpoint); + addVariable(m_objectId); + addVariable(m_label); +} + +//----------------------------------------------------------------------- + +PlayClientEffectObjectMessage::PlayClientEffectObjectMessage(Archive::ReadIterator& source) +: GameNetworkMessage(MESSAGE_TYPE), + m_effectName(), + m_hardpoint(), + m_objectId(), + m_label() +{ + addVariable (m_effectName); + addVariable (m_hardpoint); + addVariable (m_objectId); + addVariable (m_label); + unpack (source); +} + +//----------------------------------------------------------------------- + +const NetworkId& PlayClientEffectObjectMessage::getObjectId() const +{ + return m_objectId.get(); +} + +//----------------------------------------------------------------------- + +const std::string& PlayClientEffectObjectMessage::getEffectName() const +{ + return m_effectName.get(); +} + +//----------------------------------------------------------------------- + +const std::string& PlayClientEffectObjectMessage::getHardpoint() const +{ + return m_hardpoint.get(); +} + +const std::string& PlayClientEffectObjectMessage::getLabel() const +{ + return m_label.get(); +} + +//---------------------------------------------------------------------- +//-- PlayClientEffectObjectTransformMessage +//---------------------------------------------------------------------- + +PlayClientEffectObjectTransformMessage::PlayClientEffectObjectTransformMessage(const NetworkId& id, + const std::string& effectName, + Transform const & transform, + const std::string& label) : +GameNetworkMessage(MESSAGE_TYPE), +m_effectName(effectName), +m_transform(transform), +m_objectId(id), +m_label(label) +{ + addVariable(m_effectName); + addVariable(m_transform); + addVariable(m_objectId); + addVariable(m_label); +} + +//---------------------------------------------------------------------- + +PlayClientEffectObjectTransformMessage::PlayClientEffectObjectTransformMessage (Archive::ReadIterator& source) : +GameNetworkMessage(MESSAGE_TYPE), +m_effectName(), +m_transform(), +m_objectId(), +m_label() +{ + addVariable(m_effectName); + addVariable(m_transform); + addVariable(m_objectId); + addVariable(m_label); + unpack(source); +} + +//---------------------------------------------------------------------- + +NetworkId const & PlayClientEffectObjectTransformMessage::getObjectId() const +{ + return m_objectId.get(); +} + +//---------------------------------------------------------------------- + +std::string const & PlayClientEffectObjectTransformMessage::getEffectName() const +{ + return m_effectName.get(); +} + +//---------------------------------------------------------------------- + +Transform const & PlayClientEffectObjectTransformMessage::getTransform() const +{ + return m_transform.get(); +} + +//---------------------------------------------------------------------- + +const std::string & PlayClientEffectObjectTransformMessage::getLabel() const +{ + return m_label.get(); +} + +// ====================================================================== + +PlayClientEffectLocMessage::PlayClientEffectLocMessage(const std::string& effectName, const Vector& location, const std::string planet, const NetworkId & cell, float terrainDelta, const std::string& label) +: GameNetworkMessage(MESSAGE_TYPE), + m_effectName(effectName), + m_planet(planet), + m_locationX(location.x), + m_locationY(location.y), + m_locationZ(location.z), + m_cell(cell), + m_terrainDelta(terrainDelta), + m_label(label) +{ + addVariable(m_effectName); + addVariable(m_planet); + addVariable(m_locationX); + addVariable(m_locationY); + addVariable(m_locationZ); + addVariable(m_cell); + addVariable(m_terrainDelta); + addVariable(m_label); +} + +//----------------------------------------------------------------------- + +PlayClientEffectLocMessage::PlayClientEffectLocMessage(Archive::ReadIterator& source) +: GameNetworkMessage(MESSAGE_TYPE), + m_effectName(), + m_planet(), + m_locationX(), + m_locationY(), + m_locationZ(), + m_cell(), + m_terrainDelta(), + m_label() +{ + addVariable (m_effectName); + addVariable (m_planet); + addVariable (m_locationX); + addVariable (m_locationY); + addVariable (m_locationZ); + addVariable (m_cell); + addVariable (m_terrainDelta); + addVariable (m_label); + unpack (source); +} + +//----------------------------------------------------------------------- + +const std::string& PlayClientEffectLocMessage::getEffectName() const +{ + return m_effectName.get(); +} + +//----------------------------------------------------------------------- + +Vector PlayClientEffectLocMessage::getLocation() const +{ + return Vector(m_locationX.get(), m_locationY.get(), m_locationZ.get()); +} + +//----------------------------------------------------------------------- + +const NetworkId & PlayClientEffectLocMessage::getCell() const +{ + return m_cell.get(); +} + +//----------------------------------------------------------------------- + +const std::string& PlayClientEffectLocMessage::getPlanet() const +{ + return m_planet.get(); +} + +//----------------------------------------------------------------------- + +float PlayClientEffectLocMessage::getTerrainDelta() const +{ + return m_terrainDelta.get(); +} + +//----------------------------------------------------------------------- + +const std::string& PlayClientEffectLocMessage::getLabel() const +{ + return m_label.get(); +} + +// ====================================================================== + +PlayClientEventObjectMessage::PlayClientEventObjectMessage(const NetworkId& id, const std::string& eventName, const std::string& hardpoint) +: GameNetworkMessage(MESSAGE_TYPE), + m_eventName(eventName), + m_hardpoint(hardpoint), + m_objectId(id) +{ + addVariable(m_eventName); + addVariable(m_hardpoint); + addVariable(m_objectId); +} + +//----------------------------------------------------------------------- + +PlayClientEventObjectMessage::PlayClientEventObjectMessage(Archive::ReadIterator& source) +: GameNetworkMessage(MESSAGE_TYPE), + m_eventName(), + m_hardpoint(), + m_objectId() +{ + addVariable (m_eventName); + addVariable (m_hardpoint); + addVariable (m_objectId); + unpack (source); +} + +//----------------------------------------------------------------------- + +const NetworkId& PlayClientEventObjectMessage::getObjectId() const +{ + return m_objectId.get(); +} + +//----------------------------------------------------------------------- + +const std::string& PlayClientEventObjectMessage::getEventName() const +{ + return m_eventName.get(); +} + +//----------------------------------------------------------------------- + +const std::string& PlayClientEventObjectMessage::getHardpoint() const +{ + return m_hardpoint.get(); +} + +//---------------------------------------------------------------------- +//-- PlayClientEventObjectTransformMessage +//---------------------------------------------------------------------- + +PlayClientEventObjectTransformMessage::PlayClientEventObjectTransformMessage(const NetworkId& id, + const std::string& eventName, + Transform const & transform) : +GameNetworkMessage(MESSAGE_TYPE), +m_eventName(eventName), +m_transform(transform), +m_objectId(id) +{ + addVariable(m_eventName); + addVariable(m_transform); + addVariable(m_objectId); +} + +//---------------------------------------------------------------------- + +PlayClientEventObjectTransformMessage::PlayClientEventObjectTransformMessage (Archive::ReadIterator& source) : +GameNetworkMessage(MESSAGE_TYPE), +m_eventName(), +m_transform(), +m_objectId() +{ + addVariable(m_eventName); + addVariable(m_transform); + addVariable(m_objectId); + unpack(source); +} + +//---------------------------------------------------------------------- + +NetworkId const & PlayClientEventObjectTransformMessage::getObjectId() const +{ + return m_objectId.get(); +} + +//---------------------------------------------------------------------- + +std::string const & PlayClientEventObjectTransformMessage::getEventName() const +{ + return m_eventName.get(); +} + +//---------------------------------------------------------------------- + +Transform const & PlayClientEventObjectTransformMessage::getTransform() const +{ + return m_transform.get(); +} + +//---------------------------------------------------------------------- +//---------------------------------------------------------------------- +// ====================================================================== + +PlayClientEventLocMessage::PlayClientEventLocMessage(const std::string& eventSource, const std::string& eventDest, const Vector& location, const std::string planet, const NetworkId & cell, float terrainDelta) +: GameNetworkMessage(MESSAGE_TYPE), + m_eventSourceName(eventSource), + m_eventDestName(eventDest), + m_planet(planet), + m_locationX(location.x), + m_locationY(location.y), + m_locationZ(location.z), + m_cell(cell), + m_terrainDelta(terrainDelta) +{ + addVariable(m_eventSourceName); + addVariable(m_eventDestName); + addVariable(m_planet); + addVariable(m_locationX); + addVariable(m_locationY); + addVariable(m_locationZ); + addVariable(m_cell); + addVariable(m_terrainDelta); +} + +//----------------------------------------------------------------------- + +PlayClientEventLocMessage::PlayClientEventLocMessage(Archive::ReadIterator& source) +: GameNetworkMessage(MESSAGE_TYPE), + m_eventSourceName(), + m_eventDestName(), + m_planet(), + m_locationX(), + m_locationY(), + m_locationZ(), + m_cell(), + m_terrainDelta() +{ + addVariable (m_eventSourceName); + addVariable (m_eventDestName); + addVariable (m_planet); + addVariable (m_locationX); + addVariable (m_locationY); + addVariable (m_locationZ); + addVariable (m_cell); + addVariable (m_terrainDelta); + unpack (source); +} + +//----------------------------------------------------------------------- + +const std::string& PlayClientEventLocMessage::getEventSourceName() const +{ + return m_eventSourceName.get(); +} + +//----------------------------------------------------------------------- + +const std::string& PlayClientEventLocMessage::getEventDestName() const +{ + return m_eventDestName.get(); +} + +//----------------------------------------------------------------------- + +Vector PlayClientEventLocMessage::getLocation() const +{ + return Vector(m_locationX.get(), m_locationY.get(), m_locationZ.get()); +} + +//----------------------------------------------------------------------- + +const std::string& PlayClientEventLocMessage::getPlanet() const +{ + return m_planet.get(); +} + +//----------------------------------------------------------------------- + +const NetworkId & PlayClientEventLocMessage::getCell() const +{ + return m_cell.get(); +} + +//----------------------------------------------------------------------- + +float PlayClientEventLocMessage::getTerrainDelta() const +{ + return m_terrainDelta.get(); +} + +//----------------------------------------------------------------------- + +StopClientEffectObjectByLabelMessage::StopClientEffectObjectByLabelMessage(const NetworkId& id, const std::string& label, const bool softTerminate) +: GameNetworkMessage(MESSAGE_TYPE), + m_objectId(id), + m_label(label), + m_softTerminate(softTerminate) +{ + addVariable(m_objectId); + addVariable(m_label); + addVariable (m_softTerminate); +} + +//----------------------------------------------------------------------- + +StopClientEffectObjectByLabelMessage::StopClientEffectObjectByLabelMessage(Archive::ReadIterator& source) +: GameNetworkMessage(MESSAGE_TYPE), + m_objectId(), + m_label(), + m_softTerminate() +{ + addVariable (m_objectId); + addVariable (m_label); + addVariable (m_softTerminate); + unpack (source); +} + +//----------------------------------------------------------------------- + +const NetworkId& StopClientEffectObjectByLabelMessage::getObjectId() const +{ + return m_objectId.get(); +} + +//----------------------------------------------------------------------- + +const std::string& StopClientEffectObjectByLabelMessage::getLabel() const +{ + return m_label.get(); +} + +//----------------------------------------------------------------------- + +const bool StopClientEffectObjectByLabelMessage::getSoftTerminate() const +{ + return m_softTerminate.get(); +} + +// ====================================================================== + +CreateClientProjectileMessage::CreateClientProjectileMessage(const std::string & weaponObjectTemplateName, Vector const & start, + NetworkId const & startCell, Vector const & end, float speed, float expiration, bool trail, uint32 trailArgb) +: GameNetworkMessage(MESSAGE_TYPE), +m_weaponObjectTemplateName(weaponObjectTemplateName), +m_startX(start.x), +m_startY(start.y), +m_startZ(start.z), +m_startCell(startCell), +m_endX(end.x), +m_endY(end.y), +m_endZ(end.z), +m_speed(speed), +m_expiration(expiration), +m_trail(trail), +m_trailArgb(trailArgb) +{ + addVariable(m_weaponObjectTemplateName); + addVariable(m_startX); + addVariable(m_startY); + addVariable(m_startZ); + addVariable(m_startCell); + addVariable(m_endX); + addVariable(m_endY); + addVariable(m_endZ); + addVariable(m_speed); + addVariable(m_expiration); + addVariable(m_trail); + addVariable(m_trailArgb); +} + +//----------------------------------------------------------------------- + +CreateClientProjectileMessage::CreateClientProjectileMessage(Archive::ReadIterator& source) +: GameNetworkMessage(MESSAGE_TYPE), +m_weaponObjectTemplateName(), +m_startX(), +m_startY(), +m_startZ(), +m_startCell(), +m_endX(), +m_endY(), +m_endZ(), +m_speed(), +m_expiration(), +m_trail(), +m_trailArgb() +{ + addVariable(m_weaponObjectTemplateName); + addVariable(m_startX); + addVariable(m_startY); + addVariable(m_startZ); + addVariable(m_startCell); + addVariable(m_endX); + addVariable(m_endY); + addVariable(m_endZ); + addVariable(m_speed); + addVariable(m_expiration); + addVariable(m_trail); + addVariable(m_trailArgb); + unpack(source); +} + +//----------------------------------------------------------------------- + +std::string const & CreateClientProjectileMessage::getWeaponObjectTemplateName() const +{ + return m_weaponObjectTemplateName.get(); +} + +//----------------------------------------------------------------------- + +Vector CreateClientProjectileMessage::getStartLocation() const +{ + return Vector(m_startX.get(), m_startY.get(), m_startZ.get()); +} + +//----------------------------------------------------------------------- + +Vector CreateClientProjectileMessage::getEndLocation() const +{ + return Vector(m_endX.get(), m_endY.get(), m_endZ.get()); +} + +//----------------------------------------------------------------------- + +NetworkId const & CreateClientProjectileMessage::getStartCell() const +{ + return m_startCell.get(); +} + +//----------------------------------------------------------------------- + +float CreateClientProjectileMessage::getSpeed() const +{ + return m_speed.get(); +} + +//----------------------------------------------------------------------- + +float CreateClientProjectileMessage::getExpiration() const +{ + return m_expiration.get(); +} + +//----------------------------------------------------------------------- + +bool CreateClientProjectileMessage::getTrail() const +{ + return m_trail.get(); +} + +//----------------------------------------------------------------------- + +uint32 CreateClientProjectileMessage::getTrailArgb() const +{ + return m_trailArgb.get(); +} + +//----------------------------------------------------------------------- + +CreateClientProjectileObjectToObjectMessage::CreateClientProjectileObjectToObjectMessage(const std::string& weaponObjectTemplateName, NetworkId const & source, std::string const & sourceHardpoint, NetworkId const & startCell, NetworkId const & target, std::string const & targetHardpoint, float speed, float expiration, bool trail, uint32 trailArgb): +GameNetworkMessage(MESSAGE_TYPE), +m_weaponObjectTemplateName (weaponObjectTemplateName), +m_sourceId (source), +m_sourceHardpoint (sourceHardpoint), +m_startCell (startCell), +m_targetId (target), +m_targetHardpoint (targetHardpoint), +m_speed (speed), +m_expiration (expiration), +m_trail (trail), +m_trailArgb (trailArgb) +{ + addVariable(m_weaponObjectTemplateName); + addVariable(m_sourceId); + addVariable(m_sourceHardpoint); + addVariable(m_targetId); + addVariable(m_targetHardpoint); + addVariable(m_startCell); + addVariable(m_speed); + addVariable(m_expiration); + addVariable(m_trail); + addVariable(m_trailArgb); + +} + +//----------------------------------------------------------------------- + +CreateClientProjectileObjectToObjectMessage::CreateClientProjectileObjectToObjectMessage(Archive::ReadIterator& source) +: GameNetworkMessage(MESSAGE_TYPE), +m_weaponObjectTemplateName (), +m_sourceId (), +m_sourceHardpoint (), +m_startCell (), +m_targetId (), +m_targetHardpoint (), +m_speed (), +m_expiration (), +m_trail (), +m_trailArgb () +{ + addVariable(m_weaponObjectTemplateName); + addVariable(m_sourceId); + addVariable(m_sourceHardpoint); + addVariable(m_targetId); + addVariable(m_targetHardpoint); + addVariable(m_startCell); + addVariable(m_speed); + addVariable(m_expiration); + addVariable(m_trail); + addVariable(m_trailArgb); + unpack(source); +} + + +//----------------------------------------------------------------------- + +std::string const & CreateClientProjectileObjectToObjectMessage::getWeaponObjectTemplateName() const +{ + return m_weaponObjectTemplateName.get(); +} + +//----------------------------------------------------------------------- + +NetworkId const & CreateClientProjectileObjectToObjectMessage::getSourceObject() const +{ + return m_sourceId.get(); +} + +//----------------------------------------------------------------------- + +std::string const & CreateClientProjectileObjectToObjectMessage::getSourceHardpointName() const +{ + return m_sourceHardpoint.get(); +} + +//----------------------------------------------------------------------- + +NetworkId const & CreateClientProjectileObjectToObjectMessage::getTargetObject() const +{ + return m_targetId.get(); +} + +//----------------------------------------------------------------------- + +std::string const & CreateClientProjectileObjectToObjectMessage::getTargetHardpointName() const +{ + return m_targetHardpoint.get(); +} + +//----------------------------------------------------------------------- + +NetworkId const & CreateClientProjectileObjectToObjectMessage::getStartCell() const +{ + return m_startCell.get(); +} + +//----------------------------------------------------------------------- + +float CreateClientProjectileObjectToObjectMessage::getSpeed() const +{ + return m_speed.get(); +} + +//----------------------------------------------------------------------- + +float CreateClientProjectileObjectToObjectMessage::getExpiration() const +{ + return m_expiration.get(); +} + +//----------------------------------------------------------------------- + +bool CreateClientProjectileObjectToObjectMessage::getTrail() const +{ + return m_trail.get(); +} + +//----------------------------------------------------------------------- + +uint32 CreateClientProjectileObjectToObjectMessage::getTrailArgb() const +{ + return m_trailArgb.get(); +} + +//----------------------------------------------------------------------- +CreateClientProjectileLocationToObjectMessage::CreateClientProjectileLocationToObjectMessage(const std::string& weaponObjectTemplateName, Vector const & startLocation, NetworkId const & startCell, NetworkId const & target, std::string const & targetHardpoint, float speed, float expiration, bool trail, uint32 trailArgb): +GameNetworkMessage(MESSAGE_TYPE), +m_weaponObjectTemplateName (weaponObjectTemplateName), +m_startLocation (startLocation), +m_startCell (startCell), +m_targetId (target), +m_targetHardpoint (targetHardpoint), +m_speed (speed), +m_expiration (expiration), +m_trail (trail), +m_trailArgb (trailArgb) +{ + addVariable(m_weaponObjectTemplateName); + addVariable(m_startLocation); + addVariable(m_targetId); + addVariable(m_targetHardpoint); + addVariable(m_startCell); + addVariable(m_speed); + addVariable(m_expiration); + addVariable(m_trail); + addVariable(m_trailArgb); + +} + +//----------------------------------------------------------------------- + +CreateClientProjectileLocationToObjectMessage::CreateClientProjectileLocationToObjectMessage(Archive::ReadIterator& source) +: GameNetworkMessage(MESSAGE_TYPE), +m_weaponObjectTemplateName (), +m_startLocation (), +m_startCell (), +m_targetId (), +m_targetHardpoint (), +m_speed (), +m_expiration (), +m_trail (), +m_trailArgb () +{ + addVariable(m_weaponObjectTemplateName); + addVariable(m_startLocation); + addVariable(m_targetId); + addVariable(m_targetHardpoint); + addVariable(m_startCell); + addVariable(m_speed); + addVariable(m_expiration); + addVariable(m_trail); + addVariable(m_trailArgb); + unpack(source); +} + + +//----------------------------------------------------------------------- + +std::string const & CreateClientProjectileLocationToObjectMessage::getWeaponObjectTemplateName() const +{ + return m_weaponObjectTemplateName.get(); +} + +//----------------------------------------------------------------------- + +Vector const & CreateClientProjectileLocationToObjectMessage::getStartLocation() const +{ + return m_startLocation.get(); +} + +//----------------------------------------------------------------------- + +NetworkId const & CreateClientProjectileLocationToObjectMessage::getTargetObject() const +{ + return m_targetId.get(); +} + +//----------------------------------------------------------------------- + +std::string const & CreateClientProjectileLocationToObjectMessage::getTargetHardpointName() const +{ + return m_targetHardpoint.get(); +} + +//----------------------------------------------------------------------- + +NetworkId const & CreateClientProjectileLocationToObjectMessage::getStartCell() const +{ + return m_startCell.get(); +} + +//----------------------------------------------------------------------- + +float CreateClientProjectileLocationToObjectMessage::getSpeed() const +{ + return m_speed.get(); +} + +//----------------------------------------------------------------------- + +float CreateClientProjectileLocationToObjectMessage::getExpiration() const +{ + return m_expiration.get(); +} + +//----------------------------------------------------------------------- + +bool CreateClientProjectileLocationToObjectMessage::getTrail() const +{ + return m_trail.get(); +} + +//----------------------------------------------------------------------- + +uint32 CreateClientProjectileLocationToObjectMessage::getTrailArgb() const +{ + return m_trailArgb.get(); +} +//----------------------------------------------------------------------- +CreateClientProjectileObjectToLocationMessage::CreateClientProjectileObjectToLocationMessage(const std::string& weaponObjectTemplateName, NetworkId const & source, std::string const & sourceHardpoint, NetworkId const & startCell, Vector const & targetLocation, float speed, float expiration, bool trail, uint32 trailArgb): +GameNetworkMessage(MESSAGE_TYPE), +m_weaponObjectTemplateName (weaponObjectTemplateName), +m_sourceId (source), +m_sourceHardpoint (sourceHardpoint), +m_startCell (startCell), +m_targetLocation (targetLocation), +m_speed (speed), +m_expiration (expiration), +m_trail (trail), +m_trailArgb (trailArgb) +{ + addVariable(m_weaponObjectTemplateName); + addVariable(m_sourceId); + addVariable(m_sourceHardpoint); + addVariable(m_startCell); + addVariable(m_targetLocation); + addVariable(m_speed); + addVariable(m_expiration); + addVariable(m_trail); + addVariable(m_trailArgb); +} + +//----------------------------------------------------------------------- + +CreateClientProjectileObjectToLocationMessage::CreateClientProjectileObjectToLocationMessage(Archive::ReadIterator& source) +: GameNetworkMessage(MESSAGE_TYPE), +m_weaponObjectTemplateName (), +m_sourceId (), +m_sourceHardpoint (), +m_startCell (), +m_targetLocation (), +m_speed (), +m_expiration (), +m_trail (), +m_trailArgb () +{ + addVariable(m_weaponObjectTemplateName); + addVariable(m_sourceId); + addVariable(m_sourceHardpoint); + addVariable(m_startCell); + addVariable(m_targetLocation); + addVariable(m_speed); + addVariable(m_expiration); + addVariable(m_trail); + addVariable(m_trailArgb); + unpack(source); +} + + +//----------------------------------------------------------------------- + +std::string const & CreateClientProjectileObjectToLocationMessage::getWeaponObjectTemplateName() const +{ + return m_weaponObjectTemplateName.get(); +} + +//----------------------------------------------------------------------- + +Vector const & CreateClientProjectileObjectToLocationMessage::getTargetLocation() const +{ + return m_targetLocation.get(); +} + +//----------------------------------------------------------------------- + +NetworkId const & CreateClientProjectileObjectToLocationMessage::getSourceObject() const +{ + return m_sourceId.get(); +} + +//----------------------------------------------------------------------- + +std::string const & CreateClientProjectileObjectToLocationMessage::getSourceHardpointName() const +{ + return m_sourceHardpoint.get(); +} + +//----------------------------------------------------------------------- + +NetworkId const & CreateClientProjectileObjectToLocationMessage::getStartCell() const +{ + return m_startCell.get(); +} + +//----------------------------------------------------------------------- + +float CreateClientProjectileObjectToLocationMessage::getSpeed() const +{ + return m_speed.get(); +} + +//----------------------------------------------------------------------- + +float CreateClientProjectileObjectToLocationMessage::getExpiration() const +{ + return m_expiration.get(); +} + +//----------------------------------------------------------------------- + +bool CreateClientProjectileObjectToLocationMessage::getTrail() const +{ + return m_trail.get(); +} + +//----------------------------------------------------------------------- + +uint32 CreateClientProjectileObjectToLocationMessage::getTrailArgb() const +{ + return m_trailArgb.get(); +} +//----------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientEffectMessages.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientEffectMessages.h new file mode 100644 index 00000000..bd4eff2e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientEffectMessages.h @@ -0,0 +1,463 @@ + +// ====================================================================== +// +// ClientEffectMessages.h +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_ClientEffectMessages_H +#define INCLUDED_ClientEffectMessages_H + +//----------------------------------------------------------------------- + +#include "Archive/Archive.h" +#include "Unicode.h" +#include "sharedFoundation/NetworkIdArchive.h" +#include "sharedMath/Transform.h" +#include "sharedMath/Vector.h" +#include "sharedMathArchive/TransformArchive.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "unicodeArchive/UnicodeArchive.h" + +//----------------------------------------------------------------------- + +class GameInByteStream; +class GameOutByteStream; + +//----------------------------------------------------------------------- + +/** The network message to play a client effect on a given object, and optionally on one of its hardpoints. + */ +class PlayClientEffectObjectMessage : public GameNetworkMessage +{ +public: + PlayClientEffectObjectMessage(const NetworkId& id, + const std::string& effectName, + const std::string& hardpoint, + const std::string& label); + explicit PlayClientEffectObjectMessage (Archive::ReadIterator& source); + + const NetworkId& getObjectId() const; + const std::string& getEffectName() const; + const std::string& getHardpoint() const; + const std::string& getLabel() const; + + static const char * const MESSAGE_TYPE; + +private: + //the name of the UI page to use + Archive::AutoVariable m_effectName; + //the name of the UI page to use + Archive::AutoVariable m_hardpoint; + //the object on which to play the effect (likely not the avatar) + Archive::AutoVariable m_objectId; + //the optional label for this effect on this object which can be used to later stop this effect + Archive::AutoVariable m_label; +}; + +//----------------------------------------------------------------------- + +/** The network message to play a client effect on a given object, and optionally on one of its hardpoints. + */ +class PlayClientEffectObjectTransformMessage : public GameNetworkMessage +{ +public: + PlayClientEffectObjectTransformMessage(const NetworkId& id, + const std::string& effectName, + Transform const & hardpoint, + const std::string& label); + explicit PlayClientEffectObjectTransformMessage (Archive::ReadIterator& source); + + const NetworkId& getObjectId() const; + const std::string& getEffectName() const; + Transform const & getTransform() const; + const std::string& getLabel() const; + + static const char * const MESSAGE_TYPE; + +private: + //the name of the UI page to use + Archive::AutoVariable m_effectName; + //the name of the UI page to use + Archive::AutoVariable m_transform; + //the object on which to play the effect (likely not the avatar) + Archive::AutoVariable m_objectId; + //the optional label for this effect on this object which can be used to later stop this effect + Archive::AutoVariable m_label; +}; + +//----------------------------------------------------------------------- + +/** The network message to play a client effect at a given location. + */ +class PlayClientEffectLocMessage : public GameNetworkMessage +{ +public: + PlayClientEffectLocMessage(const std::string& effectName, + const Vector& location, + const std::string planet, + const NetworkId & cell, + float terrainDelta, + const std::string& label); + explicit PlayClientEffectLocMessage (Archive::ReadIterator& source); + + const std::string& getEffectName() const; + Vector getLocation() const; + const std::string& getPlanet() const; + const NetworkId& getCell() const; + float getTerrainDelta() const; + const std::string& getLabel() const; + + static const char * const MESSAGE_TYPE; + +private: + //the name of the UI page to use + Archive::AutoVariable m_effectName; + //effect planet + Archive::AutoVariable m_planet; + //effect world position + Archive::AutoVariable m_locationX; + Archive::AutoVariable m_locationY; + Archive::AutoVariable m_locationZ; + //effect cell + Archive::AutoVariable m_cell; + //height above/below terrain to play the effect + Archive::AutoVariable m_terrainDelta; + //the optional label for this effect on this object which can be used to later stop this effect + Archive::AutoVariable m_label; +}; +//----------------------------------------------------------------------- + +/** The network message to play an event on a given object, and optionally on one of its hardpoints. + */ +class PlayClientEventObjectMessage : public GameNetworkMessage +{ +public: + PlayClientEventObjectMessage(const NetworkId& id, + const std::string& eventName, + const std::string& hardpoint); + explicit PlayClientEventObjectMessage (Archive::ReadIterator& source); + + const NetworkId& getObjectId() const; + const std::string& getEventName() const; + const std::string& getHardpoint() const; + + static const char * const MESSAGE_TYPE; + +private: + //the name of the UI page to use + Archive::AutoVariable m_eventName; + //the name of the UI page to use + Archive::AutoVariable m_hardpoint; + //the object on which to play the event (likely not the avatar) + Archive::AutoVariable m_objectId; +}; + +//----------------------------------------------------------------------- + +/** The network message to play a client effect on a given object, and optionally on one of its hardpoints. +*/ +class PlayClientEventObjectTransformMessage : public GameNetworkMessage +{ +public: + PlayClientEventObjectTransformMessage(const NetworkId& id, + const std::string& eventName, + Transform const & hardpoint); + explicit PlayClientEventObjectTransformMessage (Archive::ReadIterator& source); + + const NetworkId& getObjectId() const; + const std::string& getEventName() const; + Transform const & getTransform() const; + + static const char * const MESSAGE_TYPE; + +private: + //the name of the UI page to use + Archive::AutoVariable m_eventName; + //the name of the UI page to use + Archive::AutoVariable m_transform; + //the object on which to play the effect (likely not the avatar) + Archive::AutoVariable m_objectId; +}; + +//----------------------------------------------------------------------- + +/** The network message to play an event at a given location. +*/ +class PlayClientEventLocMessage : public GameNetworkMessage +{ +public: + PlayClientEventLocMessage(const std::string& eventSource, + const std::string& eventDest, + const Vector& position, + const std::string planet, + const NetworkId & cell, + float terrainDelta); + explicit PlayClientEventLocMessage(Archive::ReadIterator& source); + + const std::string& getEventSourceName() const; + const std::string& getEventDestName() const; + Vector getLocation() const; + const std::string& getPlanet() const; + const NetworkId & getCell() const; + float getTerrainDelta() const; + + static const char * const MESSAGE_TYPE; + +private: + //the name of the source event type + Archive::AutoVariable m_eventSourceName; + //the name of the dest event type + Archive::AutoVariable m_eventDestName; + //event planet + Archive::AutoVariable m_planet; + //effect world position + Archive::AutoVariable m_locationX; + Archive::AutoVariable m_locationY; + Archive::AutoVariable m_locationZ; + //effect cell position + Archive::AutoVariable m_cell; + //height above/below terrain to play the effect + Archive::AutoVariable m_terrainDelta; +}; + +//----------------------------------------------------------------------- + +/** The network message to play a client effect on a given object, and optionally on one of its hardpoints. + */ +class StopClientEffectObjectByLabelMessage : public GameNetworkMessage +{ +public: + StopClientEffectObjectByLabelMessage(const NetworkId& id, + const std::string& label, + const bool softTerminate); + explicit StopClientEffectObjectByLabelMessage (Archive::ReadIterator& source); + + const NetworkId& getObjectId() const; + const std::string& getLabel() const; + const bool getSoftTerminate() const; + + static const char * const MESSAGE_TYPE; + +private: + //the object on which is playing the effect + Archive::AutoVariable m_objectId; + //the label for of the effect to stop + Archive::AutoVariable m_label; + //whether or not to immediately kill the effect + Archive::AutoVariable m_softTerminate; +}; + +//----------------------------------------------------------------------- + +/** The network message to create a client projectile. +*/ +class CreateClientProjectileMessage : public GameNetworkMessage +{ +public: + CreateClientProjectileMessage(const std::string& weaponObjectTemplateName, + Vector const & start, + NetworkId const & startCell, + Vector const & end, + float speed, + float expiration, + bool trail, + uint32 trailArgb); + explicit CreateClientProjectileMessage(Archive::ReadIterator& source); + + std::string const & getWeaponObjectTemplateName() const; + Vector getStartLocation() const; + Vector getEndLocation() const; + NetworkId const & getStartCell() const; + float getSpeed() const; + float getExpiration() const; + bool getTrail() const; + uint32 getTrailArgb() const; + + static char const * const MESSAGE_TYPE; + +private: + Archive::AutoVariable m_weaponObjectTemplateName; + + // start position + Archive::AutoVariable m_startX; + Archive::AutoVariable m_startY; + Archive::AutoVariable m_startZ; + + // start cell + Archive::AutoVariable m_startCell; + + // end position + Archive::AutoVariable m_endX; + Archive::AutoVariable m_endY; + Archive::AutoVariable m_endZ; + + // projectile parameters + Archive::AutoVariable m_speed; + Archive::AutoVariable m_expiration; + Archive::AutoVariable m_trail; + Archive::AutoVariable m_trailArgb; +}; +//----------------------------------------------------------------------- + +/** The network message to create an object to object client projectile. +*/ +class CreateClientProjectileObjectToObjectMessage : public GameNetworkMessage +{ +public: + CreateClientProjectileObjectToObjectMessage(const std::string& weaponObjectTemplateName, + NetworkId const & source, + const std::string& sourceHardpoint, + NetworkId const & startCell, + NetworkId const & target, + const std::string& targetHardpoint, + float speed, + float expiration, + bool trail, + uint32 trailArgb); + explicit CreateClientProjectileObjectToObjectMessage(Archive::ReadIterator& source); + + std::string const & getWeaponObjectTemplateName() const; + NetworkId const & getSourceObject() const; + std::string const & getSourceHardpointName() const; + NetworkId const & getTargetObject() const; + std::string const & getTargetHardpointName() const; + NetworkId const & getStartCell() const; + float getSpeed() const; + float getExpiration() const; + bool getTrail() const; + uint32 getTrailArgb() const; + + static char const * const MESSAGE_TYPE; + +private: + Archive::AutoVariable m_weaponObjectTemplateName; + + // Source Object NetworkId + Archive::AutoVariable m_sourceId; + + // Optional Source hardpoint name + Archive::AutoVariable m_sourceHardpoint; + + // start cell + Archive::AutoVariable m_startCell; + + // Target Object NetworkId + Archive::AutoVariable m_targetId; + + // Optional Target hardpoint name + Archive::AutoVariable m_targetHardpoint; + + // projectile parameters + Archive::AutoVariable m_speed; + Archive::AutoVariable m_expiration; + Archive::AutoVariable m_trail; + Archive::AutoVariable m_trailArgb; +}; +//----------------------------------------------------------------------- + +/** The network message to create an location to object client projectile. +*/ +class CreateClientProjectileLocationToObjectMessage : public GameNetworkMessage +{ +public: + CreateClientProjectileLocationToObjectMessage(const std::string& weaponObjectTemplateName, + Vector const & startLocation, + NetworkId const & startCell, + NetworkId const & target, + const std::string& targetHardpoint, + float speed, + float expiration, + bool trail, + uint32 trailArgb); + explicit CreateClientProjectileLocationToObjectMessage(Archive::ReadIterator& source); + + std::string const & getWeaponObjectTemplateName() const; + Vector const & getStartLocation() const; + NetworkId const & getTargetObject() const; + std::string const & getTargetHardpointName() const; + NetworkId const & getStartCell() const; + + float getSpeed() const; + float getExpiration() const; + bool getTrail() const; + uint32 getTrailArgb() const; + + static char const * const MESSAGE_TYPE; + +private: + Archive::AutoVariable m_weaponObjectTemplateName; + + // Source Location + Archive::AutoVariable m_startLocation; + + // start cell + Archive::AutoVariable m_startCell; + + // Target Object NetworkId + Archive::AutoVariable m_targetId; + + // Optional Target hardpoint name + Archive::AutoVariable m_targetHardpoint; + + // projectile parameters + Archive::AutoVariable m_speed; + Archive::AutoVariable m_expiration; + Archive::AutoVariable m_trail; + Archive::AutoVariable m_trailArgb; +}; +//----------------------------------------------------------------------- +/** The network message to create an object to location client projectile. +*/ +class CreateClientProjectileObjectToLocationMessage : public GameNetworkMessage +{ +public: + CreateClientProjectileObjectToLocationMessage(const std::string& weaponObjectTemplateName, + NetworkId const & source, + const std::string& sourceHardpoint, + NetworkId const & startCell, + Vector const & targetLocation, + float speed, + float expiration, + bool trail, + uint32 trailArgb); + explicit CreateClientProjectileObjectToLocationMessage(Archive::ReadIterator& source); + + std::string const & getWeaponObjectTemplateName() const; + NetworkId const & getSourceObject() const; + std::string const & getSourceHardpointName() const; + NetworkId const & getStartCell() const; + Vector const & getTargetLocation() const; + + float getSpeed() const; + float getExpiration() const; + bool getTrail() const; + uint32 getTrailArgb() const; + + static char const * const MESSAGE_TYPE; + +private: + Archive::AutoVariable m_weaponObjectTemplateName; + + // Source Object NetworkId + Archive::AutoVariable m_sourceId; + + // Optional Source hardpoint name + Archive::AutoVariable m_sourceHardpoint; + + // start cell + Archive::AutoVariable m_startCell; + + // Target Location + Archive::AutoVariable m_targetLocation; + + // projectile parameters + Archive::AutoVariable m_speed; + Archive::AutoVariable m_expiration; + Archive::AutoVariable m_trail; + Archive::AutoVariable m_trailArgb; +}; +//----------------------------------------------------------------------- + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientMfdStatusUpdateMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientMfdStatusUpdateMessage.cpp new file mode 100644 index 00000000..b0304789 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientMfdStatusUpdateMessage.cpp @@ -0,0 +1,140 @@ +// ====================================================================== +// +// ClientMfdStatusUpdateMessage.cpp +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedMathArchive/VectorArchive.h" +#include "sharedNetworkMessages/ClientMfdStatusUpdateMessage.h" + +//----------------------------------------------------------------------- + +const char * const ClientMfdStatusUpdateMessage::MESSAGE_TYPE = "ClientMfdStatusUpdateMessage"; + +//----------------------------------------------------------------- + +ClientMfdStatusUpdateMessage::ClientMfdStatusUpdateMessage(const NetworkId & sourceId, const std::string & sceneName, const Vector & worldCoordinates, float updateTime, float updateDistance) : +GameNetworkMessage (MESSAGE_TYPE), +m_sceneName(sceneName), +m_sourceId(sourceId), +m_worldCoordinates(worldCoordinates), +m_hasChanged(true), +m_membersToUpdate(), +m_memberUpdateTimer(updateTime), +m_memberUpdateDistance(updateDistance * updateDistance) +{ + addVariable(m_sceneName); + addVariable(m_sourceId); + addVariable(m_worldCoordinates); +} + +//----------------------------------------------------------------------- + +ClientMfdStatusUpdateMessage::ClientMfdStatusUpdateMessage(Archive::ReadIterator & source) : +GameNetworkMessage (MESSAGE_TYPE), +m_sceneName(), +m_sourceId(), +m_worldCoordinates(), +m_hasChanged(true), +m_membersToUpdate(), +m_memberUpdateTimer(), +m_memberUpdateDistance() +{ + addVariable(m_sceneName); + addVariable(m_sourceId); + addVariable(m_worldCoordinates); + unpack(source); +} + +//---------------------------------------------------------------------- + +ClientMfdStatusUpdateMessage::~ClientMfdStatusUpdateMessage() +{ +} + +//----------------------------------------------------------------------- + +std::vector & ClientMfdStatusUpdateMessage::getMembersToUpdate() +{ + return m_membersToUpdate; +} + +//----------------------------------------------------------------------- + +bool ClientMfdStatusUpdateMessage::getHasChanged() const +{ + return m_hasChanged; +} + +//----------------------------------------------------------------------- + +const std::string & ClientMfdStatusUpdateMessage::getSceneName() const +{ + return m_sceneName.get(); +} + +//----------------------------------------------------------------------- + +const NetworkId & ClientMfdStatusUpdateMessage::getSourceId() const +{ + return m_sourceId.get(); +} + +//----------------------------------------------------------------------- + +const Vector & ClientMfdStatusUpdateMessage::getWorldCoordinates() const +{ + return m_worldCoordinates.get(); +} + +//----------------------------------------------------------------------- + +void ClientMfdStatusUpdateMessage::addMemberToUpdate(const NetworkId & member) +{ + if(std::find(m_membersToUpdate.begin(), m_membersToUpdate.end(), member) == m_membersToUpdate.end()) + { + m_membersToUpdate.push_back(member); + } +} + +//----------------------------------------------------------------------- + +void ClientMfdStatusUpdateMessage::setSceneName(const std::string & sceneName) +{ + if(sceneName != m_sceneName.get()) + { + m_hasChanged = true; + m_sceneName.set(sceneName); + } +} + +//----------------------------------------------------------------------- + +void ClientMfdStatusUpdateMessage::setWorldCoordinates(const Vector & worldCoordinates) +{ + if(worldCoordinates.magnitudeBetweenSquared(m_worldCoordinates.get()) > m_memberUpdateDistance) + { + m_hasChanged = true; + m_worldCoordinates.set(worldCoordinates); + } +} + +//----------------------------------------------------------------------- + +void ClientMfdStatusUpdateMessage::setHasChanged(bool hasChanged) +{ + m_hasChanged = hasChanged; +} + +//----------------------------------------------------------------------- + +bool ClientMfdStatusUpdateMessage::updateMemberUpdateTimer(float t) +{ + return m_memberUpdateTimer.updateZero(t); +} + +//----------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientMfdStatusUpdateMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientMfdStatusUpdateMessage.h new file mode 100644 index 00000000..f241deb5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientMfdStatusUpdateMessage.h @@ -0,0 +1,58 @@ + +// ====================================================================== +// +// ClientMfdStatusUpdateMessage.h +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_ClientMfdStatusUpdateMessage_H +#define INCLUDED_ClientMfdStatusUpdateMessage_H + +//----------------------------------------------------------------------- + +#include "sharedMath/Vector.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/Timer.h" +#include +//----------------------------------------------------------------------- + +class ClientMfdStatusUpdateMessage : public GameNetworkMessage +{ +public: + + static const char * const MESSAGE_TYPE; + + ClientMfdStatusUpdateMessage (const NetworkId & sourceId, const std::string & sceneName, const Vector & worldCoordinates, float memberUpdateTimer, float memberUpdateDistance); + explicit ClientMfdStatusUpdateMessage (Archive::ReadIterator & source); + virtual ~ClientMfdStatusUpdateMessage (); + + bool getHasChanged () const; + std::vector & getMembersToUpdate(); + const std::string & getSceneName () const; + const NetworkId & getSourceId () const; + const Vector & getWorldCoordinates () const; + + void addMemberToUpdate (const NetworkId & memberId); + void setSceneName (const std::string & sceneName); + void setWorldCoordinates (const Vector & worldCoordinates); + void setHasChanged (bool hasChanged); + bool updateMemberUpdateTimer(float elapsedTimeSeconds); + +private: + Archive::AutoVariable m_sceneName; + Archive::AutoVariable m_sourceId; + Archive::AutoVariable m_worldCoordinates; + bool m_hasChanged; + std::vector m_membersToUpdate; + Timer m_memberUpdateTimer; + float m_memberUpdateDistance; + +private: + ClientMfdStatusUpdateMessage(const ClientMfdStatusUpdateMessage&); + ClientMfdStatusUpdateMessage& operator= (const ClientMfdStatusUpdateMessage&); +}; + +//----------------------------------------------------------------- + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientOpenContainerMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientOpenContainerMessage.cpp new file mode 100644 index 00000000..907b6991 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientOpenContainerMessage.cpp @@ -0,0 +1,39 @@ +// ====================================================================== +// +// ClientOpenContainerMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ClientOpenContainerMessage.h" + +// ====================================================================== + +ClientOpenContainerMessage::ClientOpenContainerMessage(NetworkId containerId, std::string slot) : + GameNetworkMessage("ClientOpenContainerMessage"), + m_containerId(containerId), + m_slot(slot) +{ + AutoByteStream::addVariable(m_containerId); + AutoByteStream::addVariable(m_slot); +} + +// ====================================================================== + +ClientOpenContainerMessage::ClientOpenContainerMessage(Archive::ReadIterator &source) : + GameNetworkMessage("ClientOpenContainerMessage"), + m_containerId(), + m_slot() +{ + AutoByteStream::addVariable(m_containerId); + AutoByteStream::addVariable(m_slot); + unpack(source); +} + +// ====================================================================== + +ClientOpenContainerMessage::~ClientOpenContainerMessage() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientOpenContainerMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientOpenContainerMessage.h new file mode 100644 index 00000000..2db76760 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientOpenContainerMessage.h @@ -0,0 +1,59 @@ +// ====================================================================== +// +// ClientOpenContainerMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _ClientOpenContainerMessage_H +#define _ClientOpenContainerMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" + +//----------------------------------------------------------------------- + +class ClientOpenContainerMessage : public GameNetworkMessage +{ +public: + + ClientOpenContainerMessage(NetworkId containerId, std::string slot ); + explicit ClientOpenContainerMessage(Archive::ReadIterator &source); + + ~ClientOpenContainerMessage(); + +public: // methods + + NetworkId getContainerId() const; + std::string getSlot() const; + +public: // types + +private: + Archive::AutoVariable m_containerId; + Archive::AutoVariable m_slot; +}; + +// ---------------------------------------------------------------------- + +inline NetworkId ClientOpenContainerMessage::getContainerId() const +{ + return m_containerId.get(); +} + +// ---------------------------------------------------------------------- + +inline std::string ClientOpenContainerMessage::getSlot() const +{ + return m_slot.get(); +} + +// ---------------------------------------------------------------------- + +#endif // _ClientOpenContainerMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientPermissionsMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientPermissionsMessage.cpp new file mode 100644 index 00000000..8e3c0aea --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientPermissionsMessage.cpp @@ -0,0 +1,49 @@ +// ====================================================================== +// +// ClientPermissionsMessage.cpp +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ClientPermissionsMessage.h" + +// ====================================================================== + +ClientPermissionsMessage::ClientPermissionsMessage(bool canLogin, bool canCreateRegularCharacter, bool canCreateJediCharacter, bool canSkipTutorial) : + GameNetworkMessage("ClientPermissionsMessage"), + m_canLogin(canLogin), + m_canCreateRegularCharacter(canCreateRegularCharacter), + m_canCreateJediCharacter(canCreateJediCharacter), + m_canSkipTutorial(canSkipTutorial) +{ + addVariable(m_canLogin); + addVariable(m_canCreateRegularCharacter); + addVariable(m_canCreateJediCharacter); + addVariable(m_canSkipTutorial); +} + +//----------------------------------------------------------------------- + +ClientPermissionsMessage::ClientPermissionsMessage(Archive::ReadIterator & source) : + GameNetworkMessage("ClientPermissionsMessage"), + m_canLogin(), + m_canCreateRegularCharacter(), + m_canCreateJediCharacter(), + m_canSkipTutorial() +{ + addVariable(m_canLogin); + addVariable(m_canCreateRegularCharacter); + addVariable(m_canCreateJediCharacter); + addVariable(m_canSkipTutorial); + + unpack(source); +} + +// ---------------------------------------------------------------------- + +ClientPermissionsMessage::~ClientPermissionsMessage() +{ +} + +// ====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientPermissionsMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientPermissionsMessage.h new file mode 100644 index 00000000..8ad6c9da --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ClientPermissionsMessage.h @@ -0,0 +1,78 @@ +// ====================================================================== +// +// ClientPermissionsMessage.h +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_ClientPermissionsMessage_H +#define INCLUDED_ClientPermissionsMessage_H + +// ====================================================================== + +#include "sharedFoundation/NetworkIdArchive.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +/** + * Sent from: Connection Server + * Sent to: Client + * Action: Tells the client what permissions it has on the server its + * connected to. + */ +class ClientPermissionsMessage : public GameNetworkMessage +{ + public: + ClientPermissionsMessage(bool canLogin, bool canCreateRegularCharacter, bool canCreateJediCharacter, bool canSkipTutorial); + explicit ClientPermissionsMessage(Archive::ReadIterator & source); + virtual ~ClientPermissionsMessage(); + + public: + bool getCanLogin() const; + bool getCanCreateRegularCharacter() const; + bool getCanCreateJediCharacter() const; + bool getCanSkipTutorial() const; + + private: + Archive::AutoVariable m_canLogin; + Archive::AutoVariable m_canCreateRegularCharacter; + Archive::AutoVariable m_canCreateJediCharacter; + Archive::AutoVariable m_canSkipTutorial; + + ClientPermissionsMessage(); + ClientPermissionsMessage(const ClientPermissionsMessage&); + ClientPermissionsMessage& operator= (const ClientPermissionsMessage&); +}; + +// ---------------------------------------------------------------------- + +inline bool ClientPermissionsMessage::getCanLogin() const +{ + return m_canLogin.get(); +} + +// ---------------------------------------------------------------------- + +inline bool ClientPermissionsMessage::getCanCreateRegularCharacter() const +{ + return m_canCreateRegularCharacter.get(); +} + +// ---------------------------------------------------------------------- + +inline bool ClientPermissionsMessage::getCanCreateJediCharacter() const +{ + return m_canCreateJediCharacter.get(); +} + +// ---------------------------------------------------------------------- + +inline bool ClientPermissionsMessage::getCanSkipTutorial() const +{ + return m_canSkipTutorial.get(); +} + +// ====================================================================== + +#endif // _INCLUDED_ClientCentralMessages_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CloseHolocronMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CloseHolocronMessage.cpp new file mode 100644 index 00000000..d3a1779f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CloseHolocronMessage.cpp @@ -0,0 +1,34 @@ +// ====================================================================== +// +// CloseHolocronMessage.cpp +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/CloseHolocronMessage.h" + +#include "Archive/ByteStream.h" +#include "Archive/AutoByteStream.h" + +// ====================================================================== + +const char * const CloseHolocronMessage::MessageType = "CloseHolocronMessage"; + +// ====================================================================== + +CloseHolocronMessage::CloseHolocronMessage() +: GameNetworkMessage(MessageType) +{ +} + +//----------------------------------------------------------------------- + +CloseHolocronMessage::CloseHolocronMessage(Archive::ReadIterator& source) +: GameNetworkMessage(MessageType) +{ + unpack (source); +} + +// ====================================================================== + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CloseHolocronMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CloseHolocronMessage.h new file mode 100644 index 00000000..ef9b927c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CloseHolocronMessage.h @@ -0,0 +1,38 @@ + +// ====================================================================== +// +// CloseHolocronMessage.h +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_CloseHolocronMessage_H +#define INCLUDED_CloseHolocronMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/Archive.h" + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class GameInByteStream; +class GameOutByteStream; + +//----------------------------------------------------------------------- + +/** The network message to close the client's holocron window + */ +class CloseHolocronMessage : public GameNetworkMessage +{ +public: + CloseHolocronMessage(); + explicit CloseHolocronMessage (Archive::ReadIterator& source); + + static const char * const MessageType; +}; + +//----------------------------------------------------------------------- + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CommandChannelMessages.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CommandChannelMessages.cpp new file mode 100644 index 00000000..631f8c48 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CommandChannelMessages.cpp @@ -0,0 +1,106 @@ +// CommandChannelMessages.cpp +// copyright 2000 Verant Interactive +// Author: Justin Randall + + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/CommandChannelMessages.h" + +#include "Archive/ByteStream.h" +#include "Archive/AutoByteStream.h" +#include "unicodeArchive/UnicodeArchive.h" +#include "sharedMathArchive/VectorArchive.h" + +//---------------------------------------------------------------------- + +const char * const CmdSceneReady::MessageType = "CmdSceneReady"; + +//----------------------------------------------------------------------- + +CmdSceneReady::CmdSceneReady() : +GameNetworkMessage(MessageType) +{ +} + +//----------------------------------------------------------------------- + +CmdSceneReady::CmdSceneReady(Archive::ReadIterator & source) : +GameNetworkMessage(MessageType) +{ + UNREF(source); +} + +//----------------------------------------------------------------------- + +CmdSceneReady::~CmdSceneReady() +{ +} + +//---------------------------------------------------------------------- + +const char * const CmdStartScene::MessageType = "CmdStartScene"; + +//----------------------------------------------------------------------- + +CmdStartScene::CmdStartScene(const NetworkId newObjectId, + const std::string & newSceneName, + const Vector newStartPosition, + const float newStartYaw, + const std::string & newTemplateName, + const int64 t, + const int32 e, + bool disableSnapshot) : +GameNetworkMessage(MessageType), +disableWorldSnapshot(disableSnapshot), +objectId(newObjectId), +sceneName(newSceneName), +startPosition(newStartPosition), +startYaw(newStartYaw), +templateName(newTemplateName), +timeSeconds(t), +serverEpoch(e) +{ + addVariable(disableWorldSnapshot); + addVariable(objectId); + addVariable(sceneName); + addVariable(startPosition); + addVariable(startYaw); + addVariable(templateName); + addVariable(timeSeconds); + addVariable(serverEpoch); +} + +//----------------------------------------------------------------------- + +CmdStartScene::CmdStartScene(Archive::ReadIterator & source) : +GameNetworkMessage(MessageType), +disableWorldSnapshot(false), +objectId(NetworkId::cms_invalid), +sceneName(), +startPosition(), +startYaw(0.0f), +templateName(), +timeSeconds(), +serverEpoch() +{ + addVariable(disableWorldSnapshot); + addVariable(objectId); + addVariable(sceneName); + addVariable(startPosition); + addVariable(startYaw); + addVariable(templateName); + addVariable(timeSeconds); + addVariable(serverEpoch); + AutoByteStream::unpack(source); +} + +//----------------------------------------------------------------------- + +CmdStartScene::~CmdStartScene() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CommandChannelMessages.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CommandChannelMessages.h new file mode 100644 index 00000000..571e0d87 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CommandChannelMessages.h @@ -0,0 +1,135 @@ +// CommandChannelMessages.h +// copyright 2000 Verant Interactive +// Author: Justin Randall + +#ifndef _COMMAND_CHANNEL_MESSAGES_H +#define _COMMAND_CHANNEL_MESSAGES_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "Unicode.h" +#include "sharedMath/Vector.h" +#include +#include + + +//----------------------------------------------------------------------- + +class CmdSceneReady : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + CmdSceneReady (); + explicit CmdSceneReady (Archive::ReadIterator & source); + virtual ~CmdSceneReady (); +private: + CmdSceneReady(const CmdSceneReady & source); + CmdSceneReady & operator = (const CmdSceneReady & rhs); +}; + +//----------------------------------------------------------------------- + +class CmdStartScene : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + CmdStartScene (const NetworkId objectId, + const std::string & newSceneName, + const Vector newStartPosition, + const float newStartYaw, + const std::string & templateName, + const int64 serverTime, + const int32 serverEpoch, + bool disableWorldSnapshot); + + explicit CmdStartScene (Archive::ReadIterator & source); + virtual ~CmdStartScene (); + + bool getDisableWorldSnapshot() const; + const NetworkId getObjectId () const; + const std::string & getSceneName () const; + const Vector& getStartPosition () const; + const float getStartYaw () const; + const std::string & getTemplateName () const; + const int64 getTimeSeconds () const; + const int32 getServerEpoch () const; + +private: + Archive::AutoVariable disableWorldSnapshot; + Archive::AutoVariable objectId; + Archive::AutoVariable sceneName; + Archive::AutoVariable startPosition; + Archive::AutoVariable startYaw; + Archive::AutoVariable templateName; + Archive::AutoVariable timeSeconds; + Archive::AutoVariable serverEpoch; + + CmdStartScene(); + CmdStartScene(const CmdStartScene&); + CmdStartScene& operator= (const CmdStartScene&); +}; + +//----------------------------------------------------------------------- + +inline bool CmdStartScene::getDisableWorldSnapshot() const +{ + return disableWorldSnapshot.get(); +} + +//----------------------------------------------------------------------- + +inline const NetworkId CmdStartScene::getObjectId() const +{ + return objectId.get(); //lint !e1037 // const and non const conversion operators are irrelevent here, the return value is const +} + +//----------------------------------------------------------------------- + +inline const std::string & CmdStartScene::getSceneName() const +{ + return sceneName.get(); //lint !e1037 +} + +//----------------------------------------------------------------------- + +inline const Vector& CmdStartScene::getStartPosition() const +{ + return startPosition.get(); +} + +//----------------------------------------------------------------------- + +inline const float CmdStartScene::getStartYaw() const +{ + return startYaw.get(); +} + +//----------------------------------------------------------------------- + +inline const std::string & CmdStartScene::getTemplateName() const +{ + return templateName.get(); //lint !e1037 // const and non const conversion operators are irrelevent here, the return value is const +} + +//----------------------------------------------------------------------- + +inline const int64 CmdStartScene::getTimeSeconds() const +{ + return timeSeconds.get(); +} + +//----------------------------------------------------------------------- + +inline const int32 CmdStartScene::getServerEpoch() const +{ + return serverEpoch.get(); +} + +//----------------------------------------------------------------------- + +#endif // _COMMAND_CHANNEL_MESSAGES_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ConsentResponseMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ConsentResponseMessage.cpp new file mode 100644 index 00000000..958ec7ae --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ConsentResponseMessage.cpp @@ -0,0 +1,49 @@ +// ====================================================================== +// +// ConsentResponseMessage.cpp +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ConsentResponseMessage.h" + + +// ====================================================================== + +const char * const ConsentResponseMessage::cms_name = "ConsentResponseMessage"; + +// ====================================================================== + +ConsentResponseMessage::ConsentResponseMessage(const NetworkId& networkId, int id, bool response) +: GameNetworkMessage (cms_name), + m_networkId (networkId), + m_id (id), + m_response (response) +{ + addVariable(m_networkId); + addVariable(m_id); + addVariable(m_response); +} + +//----------------------------------------------------------------------- + +ConsentResponseMessage::ConsentResponseMessage(Archive::ReadIterator & source) +: GameNetworkMessage (cms_name), + m_networkId (), + m_id (), + m_response () +{ + addVariable(m_networkId); + addVariable(m_id); + addVariable(m_response); + unpack(source); +} + +// ---------------------------------------------------------------------- + +ConsentResponseMessage::~ConsentResponseMessage() +{ +} + +// ====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ConsentResponseMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ConsentResponseMessage.h new file mode 100644 index 00000000..3440ea7c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ConsentResponseMessage.h @@ -0,0 +1,74 @@ +// ====================================================================== +// +// ConsentResponseMessage.h +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_ConsentResponseMessage_H +#define INCLUDED_ConsentResponseMessage_H + +// ====================================================================== + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/NetworkIdArchive.h" + +//----------------------------------------------------------------------- + +/** + * Sent from: Connection Server + * Sent to: Client + * Action: Tells the client about it's Consents + * connected to. + */ +class ConsentResponseMessage : public GameNetworkMessage +{ +public: + ConsentResponseMessage(const NetworkId& networkId, int id, bool response); + explicit ConsentResponseMessage(Archive::ReadIterator & source); + virtual ~ConsentResponseMessage(); + +public: + static const char * const cms_name; + +public: + const NetworkId& getNetworkId() const; + int getId() const; + bool getResponse() const; + +private: + Archive::AutoVariable m_networkId; + Archive::AutoVariable m_id; + Archive::AutoVariable m_response; + + ConsentResponseMessage(); + ConsentResponseMessage(const ConsentResponseMessage&); + ConsentResponseMessage& operator= (const ConsentResponseMessage&); +}; + +// ---------------------------------------------------------------------- + +inline const NetworkId& ConsentResponseMessage::getNetworkId() const +{ + return m_networkId.get(); +} + +// ---------------------------------------------------------------------- + +inline int ConsentResponseMessage::getId() const +{ + return m_id.get(); +} + +// ---------------------------------------------------------------------- + +inline bool ConsentResponseMessage::getResponse() const +{ + return m_response.get(); +} + +// ====================================================================== + +#endif // _INCLUDED_ClientCentralMessages_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ConsoleChannelMessages.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ConsoleChannelMessages.cpp new file mode 100644 index 00000000..dc7c094d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ConsoleChannelMessages.cpp @@ -0,0 +1,80 @@ +// ConsoleChannelMessages.cpp +// copyright 2000 Verant Interactive +// Author: Justin Randall + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ConsoleChannelMessages.h" + + +//----------------------------------------------------------------------- +// ConsoleGenericMessage : ConsoleChannelMessage + +//----------------------------------------------------------------------- + +const char * const ConGenericMessage::MessageType = "ConGenericMessage"; + +//---------------------------------------------------------------------- + +ConGenericMessage::ConGenericMessage(const std::string & consoleMsg, uint32 newMsgId) : +GameNetworkMessage (ConGenericMessage::MessageType), +msg (consoleMsg), +msgId (newMsgId) +{ + if (consoleMsg.empty()) + { + WARNING(true, ("ConGenericMessage constructed with empty message")); + } + + addVariable(msg); + addVariable(msgId); +} + +//----------------------------------------------------------------------- + +ConGenericMessage::ConGenericMessage(Archive::ReadIterator & source) : +GameNetworkMessage (ConGenericMessage::MessageType), +msg (), +msgId (0) +{ + addVariable(msg); + addVariable(msgId); + AutoByteStream::unpack(source); +} + +//----------------------------------------------------------------------- + +ConGenericMessage::~ConGenericMessage() +{ +} + +//----------------------------------------------------------------------- + +const char * const ExecuteConsoleCommand::MessageType = "ExecuteConsoleCommand"; + +//---------------------------------------------------------------------- + +ExecuteConsoleCommand::ExecuteConsoleCommand(const std::string & consoleMsg) : +GameNetworkMessage (ExecuteConsoleCommand::MessageType), +m_command (consoleMsg) +{ + addVariable(m_command); +} + +//----------------------------------------------------------------------- + +ExecuteConsoleCommand::ExecuteConsoleCommand(Archive::ReadIterator & source) : +GameNetworkMessage (ExecuteConsoleCommand::MessageType), +m_command () +{ + addVariable(m_command); + AutoByteStream::unpack(source); +} + +//----------------------------------------------------------------------- + +ExecuteConsoleCommand::~ExecuteConsoleCommand() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ConsoleChannelMessages.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ConsoleChannelMessages.h new file mode 100644 index 00000000..6b49e575 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ConsoleChannelMessages.h @@ -0,0 +1,87 @@ +// ConsoleChannelMessages.h +// copyright 2000 Verant Interactive +// Author: Chris Mayer + +#ifndef _CONSOLE_CHANNEL_MESSAGES_H +#define _CONSOLE_CHANNEL_MESSAGES_H + +//----------------------------------------------------------------------- + +class GameInByteStream; +class GameOutByteStream; + + +//----------------------------------------------------------------------- +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +/** Send a generic console string */ + +class ConGenericMessage : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + explicit ConGenericMessage (const std::string & consoleMsg, uint32 newMsgId = 0); + explicit ConGenericMessage (Archive::ReadIterator & source); + virtual ~ConGenericMessage (); + const std::string & getMsg (void) const; + const uint32 getMsgId (void) const; + +private: + Archive::AutoVariable msg; + Archive::AutoVariable msgId; + + ConGenericMessage(); + ConGenericMessage(const ConGenericMessage&); + ConGenericMessage& operator= (const ConGenericMessage&); +}; + +//----------------------------------------------------------------------- + +inline const std::string & ConGenericMessage::getMsg(void) const +{ + return msg.get(); //lint !e1037 // ambiguity is irrelevent here +} + +//----------------------------------------------------------------------- + +inline const uint32 ConGenericMessage::getMsgId(void) const +{ + return msgId.get(); +} + +//----------------------------------------------------------------------- + +class ExecuteConsoleCommand : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + explicit ExecuteConsoleCommand (const std::string & consoleMsg); + explicit ExecuteConsoleCommand (Archive::ReadIterator & source); + virtual ~ExecuteConsoleCommand (); + const std::string & getCommand(void) const; + +private: + Archive::AutoVariable m_command; + + ExecuteConsoleCommand(); + ExecuteConsoleCommand(const ExecuteConsoleCommand&); + ExecuteConsoleCommand& operator= (const ExecuteConsoleCommand&); +}; + +//----------------------------------------------------------------------- + +inline const std::string & ExecuteConsoleCommand::getCommand(void) const +{ + return m_command.get(); //lint !e1037 // ambiguity is irrelevent here +} + +//----------------------------------------------------------------------- + +#endif //_CONSOLE_CHANNEL_MESSAGES_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ControllerMessageFactory.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ControllerMessageFactory.cpp new file mode 100644 index 00000000..369f5e98 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ControllerMessageFactory.cpp @@ -0,0 +1,132 @@ +// ControllerMessageFactory.cpp +// copyright 2000 Verant Interactive +// Author: Justin Randall + + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +#include "Archive/Archive.h" +#include "Archive/ByteStream.h" +#include "Unicode.h" +#include "localizationArchive/StringIdArchive.h" +#include "sharedFoundation/MessageQueue.h" +#include "sharedFoundation/NetworkIdArchive.h" +#include "sharedGame/CraftingData.h" +#include "sharedMath/Quaternion.h" +#include "sharedMath/Transform.h" +#include "sharedMathArchive/TransformArchive.h" + +#include "sharedNetworkMessages/ObjectMenuRequestDataArchive.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedUtility/InstallationResourceDataArchive.h" +#include "unicodeArchive/UnicodeArchive.h" +#include "sharedNetworkMessages/MessageQueueGenericValueType.h" + +#include +#include + +//----------------------------------------------------------------------- +namespace ControllerMessageFactoryNamespace +{ + static std::map s_packFunctions; + static std::map s_unpackFunctions; + static std::set s_allowFromClient; + static bool s_installed = false; +} + +using namespace ControllerMessageFactoryNamespace; + +namespace ControllerGenericPackFunctions +{ + +} + +//----------------------------------------------------------------------- + +void ControllerMessageFactory::install () +{ + FATAL(s_installed, ("ControllerMessageFactory::install already installed")); + + s_installed = true; +} + +//----------------------------------------------------------------------- + +void ControllerMessageFactory::remove () +{ + FATAL(!s_installed, ("ControllerMessageFactory::remove not installed")); + s_installed = false; +} + +//----------------------------------------------------------------------- + +void ControllerMessageFactory::registerControllerMessageHandler (int32 message, ControllerMessagePackFunction pack, ControllerMessageUnpackFunction unpack, bool allowFromClient/* = false*/) +{ + FATAL(!s_installed, ("ControllerMessageFactory::register not installed")); + NOT_NULL(pack); + NOT_NULL(unpack); + DEBUG_WARNING(s_packFunctions.find(message) != s_packFunctions.end(), ("Registering pack function for a message %d that already exists", message)); + DEBUG_WARNING(s_unpackFunctions.find(message) != s_unpackFunctions.end(), ("Registering unpack function for a message %d that already exists", message)); + s_packFunctions[message] = pack; + s_unpackFunctions[message] = unpack; + + if (allowFromClient) + IGNORE_RETURN(s_allowFromClient.insert(message)); + else + IGNORE_RETURN(s_allowFromClient.erase(message)); +} + +//----------------------------------------------------------------------- + + +void ControllerMessageFactory::pack(const int32 message, const MessageQueue::Data* const data, Archive::ByteStream & target) +{ + FATAL(!s_installed, ("ControllerMessageFactory::pack not installed")); + + std::map::iterator i = s_packFunctions.find(message); + if (i == s_packFunctions.end()) + { + WARNING_STRICT_FATAL(true, ("ControllerMessageFactory::pack received a message %d which had no registered pack function.", message)); + } + else + { + (i->second)(data, target); + } +} + +//----------------------------------------------------------------------- + + + +MessageQueue::Data* ControllerMessageFactory::unpack(const int32 message, Archive::ReadIterator & source) +{ + MessageQueue::Data* data = 0; + FATAL(!s_installed, ("ControllerMessageFactory::unpack not installed")); + + std::map::iterator i = s_unpackFunctions.find(message); + if (i == s_unpackFunctions.end()) + { + WARNING_STRICT_FATAL(true, ("ControllerMessageFactory::unpack received a message %d which had no registered unpack function.", message)); + } + else + { + data = (i->second)(source); + } + return data; +} + +//----------------------------------------------------------------------- + +bool ControllerMessageFactory::allowFromClient(const int32 message) +{ + return (s_allowFromClient.find(message) != s_allowFromClient.end()); +} + +//----------------------------------------------------------------------- + + + +// ====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ControllerMessageFactory.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ControllerMessageFactory.h new file mode 100644 index 00000000..f6224e28 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ControllerMessageFactory.h @@ -0,0 +1,48 @@ +// ControllerMessageFactory.h +// copyright 2000 Verant Interactive +// Author: Justin Randall + +#ifndef INCLUDED_ControllerMessageFactory_H +#define INCLUDED_ControllerMessageFactory_H + +//----------------------------------------------------------------------- + +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/MessageQueueGenericValueType.h" + +namespace Archive +{ + class ByteStream; + class ReadIterator; +} + +//----------------------------------------------------------------------- +//@todo This is causing a dependency on the game. We need to break this up. +class ControllerMessageFactory +{ +public: + + static void install(); + static void remove(); + + typedef void (*ControllerMessagePackFunction)(const MessageQueue::Data* data, Archive::ByteStream & target); + typedef MessageQueue::Data* (*ControllerMessageUnpackFunction)(Archive::ReadIterator & source); + + static void registerControllerMessageHandler (int32 message, ControllerMessagePackFunction, ControllerMessageUnpackFunction, bool allowFromClient = false); + + static void pack (const int32 message, const MessageQueue::Data* data, Archive::ByteStream & target); + static MessageQueue::Data* unpack (const int32 message, Archive::ReadIterator & source); + static bool allowFromClient (const int32 message); + +private: + + ControllerMessageFactory (); + ControllerMessageFactory (const ControllerMessageFactory & source); + ControllerMessageFactory& operator= (const ControllerMessageFactory & rhs); + ~ControllerMessageFactory (); +}; + +//----------------------------------------------------------------------- + +#endif // _ControllerMessageFactory_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateAuctionMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateAuctionMessage.cpp new file mode 100644 index 00000000..0cdff397 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateAuctionMessage.cpp @@ -0,0 +1,59 @@ +// ====================================================================== +// +// CreateAuctionMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/CreateAuctionMessage.h" + +// ====================================================================== + +CreateAuctionMessage::CreateAuctionMessage(const NetworkId & itemId, const Unicode::String & itemLocalizedName, const NetworkId & containerId, int minimumBid, int auctionLength, const Unicode::String & userDescription, bool premium) : + GameNetworkMessage("CreateAuctionMessage"), + m_itemId(itemId), + m_itemLocalizedName(itemLocalizedName), + m_containerId(containerId), + m_minimumBid(minimumBid), + m_auctionLength(auctionLength), + m_userDescription(userDescription), + m_premium(premium) +{ + AutoByteStream::addVariable(m_itemId); + AutoByteStream::addVariable(m_itemLocalizedName); + AutoByteStream::addVariable(m_containerId); + AutoByteStream::addVariable(m_minimumBid); + AutoByteStream::addVariable(m_auctionLength); + AutoByteStream::addVariable(m_userDescription); + AutoByteStream::addVariable(m_premium); +} + +// ====================================================================== + +CreateAuctionMessage::CreateAuctionMessage(Archive::ReadIterator &source) : + GameNetworkMessage("CreateAuctionMessage"), + m_itemId(), + m_itemLocalizedName(), + m_containerId(), + m_minimumBid(), + m_auctionLength(), + m_userDescription(), + m_premium() +{ + AutoByteStream::addVariable(m_itemId); + AutoByteStream::addVariable(m_itemLocalizedName); + AutoByteStream::addVariable(m_containerId); + AutoByteStream::addVariable(m_minimumBid); + AutoByteStream::addVariable(m_auctionLength); + AutoByteStream::addVariable(m_userDescription); + AutoByteStream::addVariable(m_premium); + unpack(source); +} + +// ====================================================================== + +CreateAuctionMessage::~CreateAuctionMessage() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateAuctionMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateAuctionMessage.h new file mode 100644 index 00000000..1ae78e16 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateAuctionMessage.h @@ -0,0 +1,104 @@ +// ====================================================================== +// +// CreateAuctionMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _CreateAuctionMessage_H +#define _CreateAuctionMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" + +//----------------------------------------------------------------------- + +class CreateAuctionMessage : public GameNetworkMessage +{ +public: + + CreateAuctionMessage (const NetworkId & itemId, const Unicode::String & itemLocalizedName, const NetworkId & containerId, int minimumBid, int auctionLength, const Unicode::String & userDescription, bool premium = false ); + explicit CreateAuctionMessage (Archive::ReadIterator &source); + + ~CreateAuctionMessage(); + +public: // methods + + const NetworkId & getItemId () const; + const Unicode::String & getItemLocalizedName() const; + const NetworkId & getContainerId () const; + int getMinimumBid () const; + int getAuctionLength () const; + const Unicode::String & getUserDescription () const; + bool isPremium () const; + +public: // types + +private: + Archive::AutoVariable m_itemId; //the item to be auctioned + Archive::AutoVariable m_itemLocalizedName; + Archive::AutoVariable m_containerId; //the auction container + Archive::AutoVariable m_minimumBid; //the minimum acceptable bid + Archive::AutoVariable m_auctionLength; //in seconds + Archive::AutoVariable m_userDescription; //in seconds + Archive::AutoVariable m_premium; +}; + +// ---------------------------------------------------------------------- + +inline const NetworkId & CreateAuctionMessage::getItemId() const +{ + return m_itemId.get(); +} + +// ---------------------------------------------------------------------- + +inline const Unicode::String & CreateAuctionMessage::getItemLocalizedName() const +{ + return m_itemLocalizedName.get(); +} + +// ---------------------------------------------------------------------- + +inline const NetworkId & CreateAuctionMessage::getContainerId() const +{ + return m_containerId.get(); +} + +// ---------------------------------------------------------------------- + +inline int CreateAuctionMessage::getMinimumBid() const +{ + return m_minimumBid.get(); +} + +// ---------------------------------------------------------------------- + +inline int CreateAuctionMessage::getAuctionLength() const +{ + return m_auctionLength.get(); +} + +// ---------------------------------------------------------------------- + +inline const Unicode::String & CreateAuctionMessage::getUserDescription() const +{ + return m_userDescription.get(); +} + +// ---------------------------------------------------------------------- + +inline bool CreateAuctionMessage::isPremium() const +{ + return m_premium.get(); +} + +// ---------------------------------------------------------------------- + +#endif // _CreateAuctionMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateAuctionResponseMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateAuctionResponseMessage.cpp new file mode 100644 index 00000000..ab8ada3f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateAuctionResponseMessage.cpp @@ -0,0 +1,47 @@ +// ====================================================================== +// +// CreateAuctionResponseMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/CreateAuctionResponseMessage.h" + +// ====================================================================== + +const char * const CreateAuctionResponseMessage::MessageType = "CreateAuctionResponseMessage"; + +//---------------------------------------------------------------------- + +CreateAuctionResponseMessage::CreateAuctionResponseMessage(NetworkId itemId, AuctionResult result, std::string const &itemRestrictedRejectionMessage) : + GameNetworkMessage(MessageType), + m_itemId(itemId), + m_result(result), + m_itemRestrictedRejectionMessage(itemRestrictedRejectionMessage) +{ + AutoByteStream::addVariable(m_itemId); + AutoByteStream::addVariable(m_result); + AutoByteStream::addVariable(m_itemRestrictedRejectionMessage); +} + +// ====================================================================== + +CreateAuctionResponseMessage::CreateAuctionResponseMessage(Archive::ReadIterator &source) : + GameNetworkMessage(MessageType), + m_itemId(), + m_result(), + m_itemRestrictedRejectionMessage() +{ + AutoByteStream::addVariable(m_itemId); + AutoByteStream::addVariable(m_result); + AutoByteStream::addVariable(m_itemRestrictedRejectionMessage); + unpack(source); +} + +// ====================================================================== + +CreateAuctionResponseMessage::~CreateAuctionResponseMessage() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateAuctionResponseMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateAuctionResponseMessage.h new file mode 100644 index 00000000..66a0a263 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateAuctionResponseMessage.h @@ -0,0 +1,70 @@ +// ====================================================================== +// +// CreateAuctionResponseMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _CreateAuctionResponseMessage_H +#define _CreateAuctionResponseMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedFoundation/NetworkIdArchive.h" +#include "sharedNetworkMessages/AuctionErrorCodes.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class CreateAuctionResponseMessage : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + CreateAuctionResponseMessage(NetworkId itemId, AuctionResult result, std::string const &itemRestrictedRejectionMessage); + explicit CreateAuctionResponseMessage(Archive::ReadIterator &source); + + ~CreateAuctionResponseMessage(); + +public: // methods + + NetworkId getItemId() const; + AuctionResult getResult() const; + std::string const & getItemRestrictedRejectionMessage() const; + +public: // types + +private: + Archive::AutoVariable m_itemId; //the item to be auctioned + Archive::AutoVariable m_result; //the auction container + Archive::AutoVariable m_itemRestrictedRejectionMessage; +}; + +// ---------------------------------------------------------------------- + +inline NetworkId CreateAuctionResponseMessage::getItemId() const +{ + return m_itemId.get(); +} + +// ---------------------------------------------------------------------- + +inline AuctionResult CreateAuctionResponseMessage::getResult() const +{ + return static_cast(m_result.get()); +} + +// ---------------------------------------------------------------------- + +inline std::string const & CreateAuctionResponseMessage::getItemRestrictedRejectionMessage() const +{ + return m_itemRestrictedRejectionMessage.get(); +} + +// ---------------------------------------------------------------------- + +#endif // _CreateAuctionResponseMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateClientPathMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateClientPathMessage.cpp new file mode 100644 index 00000000..a1cbb68c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateClientPathMessage.cpp @@ -0,0 +1,52 @@ +// ================================================================== +// +// CreateClientPathMessage.cpp +// Copyright 2002 Sony Online Entertainment +// +// ================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/CreateClientPathMessage.h" + +#include "sharedMathArchive/VectorArchive.h" + +// ================================================================== + +char const * const CreateClientPathMessage::cms_name = "CreateClientPathMessage"; + +// ================================================================== + +CreateClientPathMessage::CreateClientPathMessage (std::vector const & pointList) : + GameNetworkMessage (cms_name), + m_pointList () +{ + m_pointList.set (pointList); + + addVariable (m_pointList); +} + +// ------------------------------------------------------------------ + +CreateClientPathMessage::CreateClientPathMessage (Archive::ReadIterator & source) : + GameNetworkMessage (cms_name), + m_pointList () +{ + addVariable (m_pointList); + + unpack (source); +} + +// ------------------------------------------------------------------ + +CreateClientPathMessage::~CreateClientPathMessage () +{ +} + +// ------------------------------------------------------------------ + +std::vector const & CreateClientPathMessage::getPointList () const +{ + return m_pointList.get (); +} + +// ================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateClientPathMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateClientPathMessage.h new file mode 100644 index 00000000..ba214137 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateClientPathMessage.h @@ -0,0 +1,44 @@ +// ================================================================== +// +// CreateClientPathMessage.h +// Copyright 2003, Sony Online Entertainment +// +// ================================================================== + +#ifndef INCLUDED_CreateClientPathMessage_H +#define INCLUDED_CreateClientPathMessage_H + +// ================================================================== + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedMath/Vector.h" + +// ================================================================== + +class CreateClientPathMessage : public GameNetworkMessage +{ +public: + + explicit CreateClientPathMessage (std::vector const & pointList); + explicit CreateClientPathMessage (Archive::ReadIterator & source); + virtual ~CreateClientPathMessage (); + + std::vector const & getPointList () const; + +private: + + CreateClientPathMessage (); + +public: + + static char const * const cms_name; + +private: + + Archive::AutoArray m_pointList; +}; + +// ================================================================== + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateImmediateAuctionMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateImmediateAuctionMessage.cpp new file mode 100644 index 00000000..c8a63c97 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateImmediateAuctionMessage.cpp @@ -0,0 +1,63 @@ +// ====================================================================== +// +// CreateImmediateAuctionMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/CreateImmediateAuctionMessage.h" + +// ====================================================================== + +CreateImmediateAuctionMessage::CreateImmediateAuctionMessage(const NetworkId & itemId, const Unicode::String & itemLocalizedName, const NetworkId & containerId, int price, int auctionLength, const Unicode::String & userDescription, bool premium, bool vendorTransfer) : + GameNetworkMessage("CreateImmediateAuctionMessage"), + m_itemId(itemId), + m_itemLocalizedName(itemLocalizedName), + m_containerId(containerId), + m_price(price), + m_auctionLength(auctionLength), + m_userDescription(userDescription), + m_premium(premium), + m_vendorTransfer(vendorTransfer) +{ + AutoByteStream::addVariable(m_itemId); + AutoByteStream::addVariable(m_itemLocalizedName); + AutoByteStream::addVariable(m_containerId); + AutoByteStream::addVariable(m_price); + AutoByteStream::addVariable(m_auctionLength); + AutoByteStream::addVariable(m_userDescription); + AutoByteStream::addVariable(m_premium); + AutoByteStream::addVariable(m_vendorTransfer); +} + +// ====================================================================== + +CreateImmediateAuctionMessage::CreateImmediateAuctionMessage(Archive::ReadIterator &source) : + GameNetworkMessage("CreateImmediateAuctionMessage"), + m_itemId(), + m_itemLocalizedName(), + m_containerId(), + m_price(), + m_auctionLength(), + m_userDescription(), + m_premium(), + m_vendorTransfer() +{ + AutoByteStream::addVariable(m_itemId); + AutoByteStream::addVariable(m_itemLocalizedName); + AutoByteStream::addVariable(m_containerId); + AutoByteStream::addVariable(m_price); + AutoByteStream::addVariable(m_auctionLength); + AutoByteStream::addVariable(m_userDescription); + AutoByteStream::addVariable(m_premium); + AutoByteStream::addVariable(m_vendorTransfer); + unpack(source); +} + +// ====================================================================== + +CreateImmediateAuctionMessage::~CreateImmediateAuctionMessage() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateImmediateAuctionMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateImmediateAuctionMessage.h new file mode 100644 index 00000000..9dddd233 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateImmediateAuctionMessage.h @@ -0,0 +1,113 @@ +// ====================================================================== +// +// CreateImmediateAuctionMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _CreateImmediateAuctionMessage_H +#define _CreateImmediateAuctionMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" + +//----------------------------------------------------------------------- + +class CreateImmediateAuctionMessage : public GameNetworkMessage +{ +public: + + CreateImmediateAuctionMessage(const NetworkId & itemId, const Unicode::String & itemLocalizedName, const NetworkId & containerId, int price, int auctionLength, const Unicode::String & userDescription, bool premium = false, bool vendorTransfer = false ); + explicit CreateImmediateAuctionMessage(Archive::ReadIterator &source); + + ~CreateImmediateAuctionMessage(); + +public: // methods + + const NetworkId & getItemId() const; + const Unicode::String & getItemLocalizedName() const; + const NetworkId & getContainerId() const; + int getPrice() const; + int getAuctionLength() const; + const Unicode::String & getUserDescription() const; + bool isPremium() const; + bool isVendorTransfer() const; + +public: // types + +private: + Archive::AutoVariable m_itemId; //the item to be auctioned + Archive::AutoVariable m_itemLocalizedName; + Archive::AutoVariable m_containerId; //the auction container + Archive::AutoVariable m_price; //the price of the item + Archive::AutoVariable m_auctionLength; //in seconds + Archive::AutoVariable m_userDescription; //in seconds + Archive::AutoVariable m_premium; + Archive::AutoVariable m_vendorTransfer; +}; + +// ---------------------------------------------------------------------- + +inline const NetworkId & CreateImmediateAuctionMessage::getItemId() const +{ + return m_itemId.get(); +} + +// ---------------------------------------------------------------------- + +inline const Unicode::String & CreateImmediateAuctionMessage::getItemLocalizedName() const +{ + return m_itemLocalizedName.get(); +} + +// ---------------------------------------------------------------------- + +inline const NetworkId & CreateImmediateAuctionMessage::getContainerId() const +{ + return m_containerId.get(); +} + +// ---------------------------------------------------------------------- + +inline int CreateImmediateAuctionMessage::getPrice() const +{ + return m_price.get(); +} + +// ---------------------------------------------------------------------- + +inline int CreateImmediateAuctionMessage::getAuctionLength() const +{ + return m_auctionLength.get(); +} + +// ---------------------------------------------------------------------- + +inline const Unicode::String & CreateImmediateAuctionMessage::getUserDescription() const +{ + return m_userDescription.get(); +} + +// ---------------------------------------------------------------------- + +inline bool CreateImmediateAuctionMessage::isPremium() const +{ + return m_premium.get(); +} + +// ---------------------------------------------------------------------- + +inline bool CreateImmediateAuctionMessage::isVendorTransfer() const +{ + return m_vendorTransfer.get(); +} + +// ---------------------------------------------------------------------- + +#endif // _CreateImmediateAuctionMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateMissileMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateMissileMessage.cpp new file mode 100644 index 00000000..271ea03d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateMissileMessage.cpp @@ -0,0 +1,62 @@ +// ====================================================================== +// +// CreateMissileMessage.cpp +// copyright (c) 2003 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/CreateMissileMessage.h" + +// ====================================================================== + +CreateMissileMessage::CreateMissileMessage(int missileId, const NetworkId &source, const NetworkId &target, const Vector & sourceLocation, const Vector & targetLocation, int impactTime, int missileTypeId, int weaponId, int targetComponent) : + GameNetworkMessage("CreateMissileMessage"), + m_missileId(missileId), + m_source(source), + m_target(target), + m_sourceLocation(sourceLocation), + m_targetLocation(targetLocation), + m_impactTime(impactTime), + m_missileTypeId(missileTypeId), + m_weaponId(weaponId), + m_targetComponent(targetComponent) +{ + addVariable(m_missileId); + addVariable(m_source); + addVariable(m_target); + addVariable(m_sourceLocation); + addVariable(m_targetLocation); + addVariable(m_impactTime); + addVariable(m_missileTypeId); + addVariable(m_weaponId); + addVariable(m_targetComponent); +} + +// ---------------------------------------------------------------------- + +CreateMissileMessage::CreateMissileMessage(Archive::ReadIterator &source) : + GameNetworkMessage("CreateMissileMessage"), + m_missileId(), + m_source(), + m_target(), + m_sourceLocation(), + m_targetLocation(), + m_impactTime(), + m_missileTypeId(), + m_weaponId(), + m_targetComponent() +{ + addVariable(m_missileId); + addVariable(m_source); + addVariable(m_target); + addVariable(m_sourceLocation); + addVariable(m_targetLocation); + addVariable(m_impactTime); + addVariable(m_missileTypeId); + addVariable(m_weaponId); + addVariable(m_targetComponent); + unpack(source); //lint !e1506 // Call to virtual -- the way our system works requires this, and it seems to work OK +} + +// ====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateMissileMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateMissileMessage.h new file mode 100644 index 00000000..ed05cf7b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateMissileMessage.h @@ -0,0 +1,115 @@ +// ====================================================================== +// +// CreateMissileMessage.h +// copyright (c) 2004 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_CreateMissileMessage_H +#define INCLUDED_CreateMissileMessage_H + +// ====================================================================== + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedMath/Vector.h" +#include "sharedMathArchive/VectorArchive.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" + +// ====================================================================== + +class CreateMissileMessage : public GameNetworkMessage +{ + public: + CreateMissileMessage(int missileId, const NetworkId &source, const NetworkId &target, const Vector & sourceLocation, const Vector & targetLocation, int impactTime, int missileTypeId, int weaponId, int targetComponent); + explicit CreateMissileMessage(Archive::ReadIterator &source); + + public: + int getMissileId() const; + const NetworkId & getSource() const; + const NetworkId & getTarget() const; + const Vector & getSourceLocation() const; + const Vector & getTargetLocation() const; + int getImpactTime() const; + int getMissileTypeId() const; + int getWeaponId() const; + int getTargetComponent() const; + + private: + Archive::AutoVariable m_missileId; + Archive::AutoVariable m_source; + Archive::AutoVariable m_target; + Archive::AutoVariable m_sourceLocation; + Archive::AutoVariable m_targetLocation; + Archive::AutoVariable m_impactTime; + Archive::AutoVariable m_missileTypeId; + Archive::AutoVariable m_weaponId; + Archive::AutoVariable m_targetComponent; +}; + +// ====================================================================== + +inline int CreateMissileMessage::getMissileId() const +{ + return m_missileId.get(); +} + +// ---------------------------------------------------------------------- + +inline const NetworkId & CreateMissileMessage::getSource() const +{ + return m_source.get(); +} + +// ---------------------------------------------------------------------- + +inline const NetworkId & CreateMissileMessage::getTarget() const +{ + return m_target.get(); +} + +// ---------------------------------------------------------------------- + +inline const Vector & CreateMissileMessage::getSourceLocation() const +{ + return m_sourceLocation.get(); +} + +// ---------------------------------------------------------------------- + +inline const Vector & CreateMissileMessage::getTargetLocation() const +{ + return m_targetLocation.get(); +} + +// ---------------------------------------------------------------------- + +inline int CreateMissileMessage::getImpactTime() const +{ + return m_impactTime.get(); +} + +// ---------------------------------------------------------------------- + +inline int CreateMissileMessage::getMissileTypeId() const +{ + return m_missileTypeId.get(); +} + +// ---------------------------------------------------------------------- + +inline int CreateMissileMessage::getWeaponId() const +{ + return m_weaponId.get(); +} + +// ---------------------------------------------------------------------- + +inline int CreateMissileMessage::getTargetComponent() const +{ + return m_targetComponent.get(); +} + +// ====================================================================== + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateNebulaLightningMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateNebulaLightningMessage.cpp new file mode 100644 index 00000000..df3ce1b8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateNebulaLightningMessage.cpp @@ -0,0 +1,41 @@ +//====================================================================== +// +// CreateNebulaLightningMessage.cpp +// copyright (c) 2004 Sony Online Entertainment +// +//====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/CreateNebulaLightningMessage.h" + +//====================================================================== + +char const * const CreateNebulaLightningMessage::MessageType = "CreateNebulaLightningMessage"; + +//---------------------------------------------------------------------- + +CreateNebulaLightningMessage::CreateNebulaLightningMessage(NebulaLightningData const & nebulaLightningData) : +GameNetworkMessage(MessageType), +m_nebulaLightningData(nebulaLightningData) +{ + addVariable(m_nebulaLightningData); +} + +//---------------------------------------------------------------------- + +CreateNebulaLightningMessage::CreateNebulaLightningMessage(Archive::ReadIterator &source) : +GameNetworkMessage(MessageType), +m_nebulaLightningData() +{ + addVariable(m_nebulaLightningData); + unpack(source); +} + +//---------------------------------------------------------------------- + +NebulaLightningData const & CreateNebulaLightningMessage::getNebulaLightningData() const +{ + return m_nebulaLightningData.get(); +} + +//====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateNebulaLightningMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateNebulaLightningMessage.h new file mode 100644 index 00000000..bc7eb8ba --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateNebulaLightningMessage.h @@ -0,0 +1,36 @@ +//====================================================================== +// +// CreateNebulaLightningMessage.h +// copyright (c) 2004 Sony Online Entertainment +// +//====================================================================== + +#ifndef INCLUDED_CreateNebulaLightningMessage_H +#define INCLUDED_CreateNebulaLightningMessage_H + +//====================================================================== + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedNetworkMessages/NebulaLightningData.h" + +//---------------------------------------------------------------------- + +class CreateNebulaLightningMessage : public GameNetworkMessage +{ +public: + + static char const * const MessageType; + + explicit CreateNebulaLightningMessage(NebulaLightningData const & nebulaLightningData); + explicit CreateNebulaLightningMessage(Archive::ReadIterator &source); + + NebulaLightningData const & getNebulaLightningData() const; + +private: + Archive::AutoVariable m_nebulaLightningData; +}; + +//====================================================================== + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateProjectileMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateProjectileMessage.cpp new file mode 100644 index 00000000..ebc9367e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateProjectileMessage.cpp @@ -0,0 +1,108 @@ +// ====================================================================== +// +// CreateProjectileMessage.cpp +// +// Copyright 2003 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/CreateProjectileMessage.h" + +#include "sharedGame/ShipChassisSlotType.h" + +#include "sharedMathArchive/TransformArchive.h" + +// ====================================================================== + +CreateProjectileMessage::CreateProjectileMessage(uint16 shipId, int weaponIndex, int projectileIndex, int targetedComponent, Transform const &transform_p, uint32 syncStampLong) : + GameNetworkMessage("CreateProjectileMessage"), + m_shipId(shipId), + m_weaponIndex(static_cast(weaponIndex)), + m_projectileIndex(static_cast(projectileIndex)), + m_targetedComponent(static_cast(targetedComponent)), + m_startPosition_p(transform_p.getPosition_p()), + m_direction_p(transform_p.getLocalFrameK_p()*7800.f), + m_syncStampLong(syncStampLong) +{ + addVariable(m_shipId); + addVariable(m_weaponIndex); + addVariable(m_projectileIndex); + addVariable(m_targetedComponent); + addVariable(m_startPosition_p); + addVariable(m_direction_p); + addVariable(m_syncStampLong); +} + +// ---------------------------------------------------------------------- + +CreateProjectileMessage::CreateProjectileMessage(Archive::ReadIterator &source) : + GameNetworkMessage("CreateProjectileMessage"), + m_shipId(), + m_weaponIndex(0), + m_projectileIndex(0), + m_targetedComponent(static_cast(ShipChassisSlotType::SCST_num_types)), + m_startPosition_p(), + m_direction_p(), + m_syncStampLong(0) +{ + addVariable(m_shipId); + addVariable(m_weaponIndex); + addVariable(m_projectileIndex); + addVariable(m_targetedComponent); + addVariable(m_startPosition_p); + addVariable(m_direction_p); + addVariable(m_syncStampLong); + unpack(source); +} + +// ---------------------------------------------------------------------- + +uint16 CreateProjectileMessage::getShipId() const +{ + return m_shipId.get(); +} + +// ---------------------------------------------------------------------- + +int CreateProjectileMessage::getWeaponIndex() const +{ + return m_weaponIndex.get(); +} + +// ---------------------------------------------------------------------- + +int CreateProjectileMessage::getProjectileIndex() const +{ + return m_projectileIndex.get(); +} + +// ---------------------------------------------------------------------- + +int CreateProjectileMessage::getTargetedComponent() const +{ + return m_targetedComponent.get(); +} + +// ---------------------------------------------------------------------- + +Transform const CreateProjectileMessage::getTransform_p() const +{ + Transform ret(Transform::IF_none); + Vector const &startPosition_p = m_startPosition_p.get().get(); + Vector direction_p = m_direction_p.get().get(); + direction_p.normalize(); + ret.setLocalFrameKJ_p(direction_p, Vector::perpendicular(direction_p)); + ret.setPosition_p(startPosition_p); + return ret; +} + +// ---------------------------------------------------------------------- + +uint32 CreateProjectileMessage::getSyncStampLong() const +{ + return m_syncStampLong.get(); +} + +// ====================================================================== + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateProjectileMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateProjectileMessage.h new file mode 100644 index 00000000..85782cd3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/CreateProjectileMessage.h @@ -0,0 +1,48 @@ +// ====================================================================== +// +// CreateProjectileMessage.h +// +// Copyright 2003 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _CreateProjectileMessage_H_ +#define _CreateProjectileMessage_H_ + +// ====================================================================== + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedMath/Transform.h" +#include "sharedUtility/PackedPosition.h" + +// ====================================================================== + +class CreateProjectileMessage: public GameNetworkMessage +{ +public: + CreateProjectileMessage(uint16 shipId, int weaponIndex, int projectileIndex, int targetedComponent, Transform const &transform_p, uint32 syncStampLong); + explicit CreateProjectileMessage(Archive::ReadIterator &source); + +public: + uint16 getShipId() const; + int getWeaponIndex() const; + int getProjectileIndex() const; + int getTargetedComponent() const; + Transform const getTransform_p() const; + uint32 getSyncStampLong() const; + +private: + Archive::AutoVariable m_shipId; + Archive::AutoVariable m_weaponIndex; + Archive::AutoVariable m_projectileIndex; + Archive::AutoVariable m_targetedComponent; + Archive::AutoVariable m_startPosition_p; + Archive::AutoVariable m_direction_p; + Archive::AutoVariable m_syncStampLong; +}; + +// ====================================================================== + +#endif // _CreateProjectileMessage_H_ + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DeleteCharacterMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DeleteCharacterMessage.cpp new file mode 100644 index 00000000..5295633b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DeleteCharacterMessage.cpp @@ -0,0 +1,40 @@ +// ====================================================================== +// +// DeleteCharacterMessage.cpp +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/DeleteCharacterMessage.h" + +// ====================================================================== + +DeleteCharacterMessage::DeleteCharacterMessage(uint32 clusterId, const NetworkId &characterId) : + GameNetworkMessage("DeleteCharacterMessage"), + m_clusterId(clusterId), + m_characterId(characterId) +{ + addVariable(m_clusterId); + addVariable(m_characterId); +} + +//----------------------------------------------------------------------- + +DeleteCharacterMessage::DeleteCharacterMessage(Archive::ReadIterator & source) : + GameNetworkMessage("DeleteCharacterMessage"), + m_clusterId(), + m_characterId() +{ + addVariable(m_clusterId); + addVariable(m_characterId); + unpack(source); +} + +// ---------------------------------------------------------------------- + +DeleteCharacterMessage::~DeleteCharacterMessage() +{ +} + +// ====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DeleteCharacterMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DeleteCharacterMessage.h new file mode 100644 index 00000000..6eb25110 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DeleteCharacterMessage.h @@ -0,0 +1,54 @@ +// ====================================================================== +// +// DeleteCharacterMessage.h +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_DeleteCharacterMessage_H +#define INCLUDED_DeleteCharacterMessage_H + +// ====================================================================== + +#include "sharedFoundation/NetworkIdArchive.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class DeleteCharacterMessage : public GameNetworkMessage +{ +public: + DeleteCharacterMessage(uint32 clusterId, const NetworkId &characterId); + explicit DeleteCharacterMessage(Archive::ReadIterator & source); + virtual ~DeleteCharacterMessage(); + + public: + uint32 getClusterId() const; + const NetworkId &getCharacterId() const; + +private: + Archive::AutoVariable m_clusterId; + Archive::AutoVariable m_characterId; + + DeleteCharacterMessage(); + DeleteCharacterMessage(const DeleteCharacterMessage&); + DeleteCharacterMessage& operator= (const DeleteCharacterMessage&); +}; + +// ---------------------------------------------------------------------- + +inline uint32 DeleteCharacterMessage::getClusterId() const +{ + return m_clusterId.get(); +} + +// ---------------------------------------------------------------------- + +inline const NetworkId & DeleteCharacterMessage::getCharacterId() const +{ + return m_characterId.get(); +} + +// ====================================================================== + +#endif // _INCLUDED_ClientCentralMessages_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DeleteCharacterReplyMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DeleteCharacterReplyMessage.cpp new file mode 100644 index 00000000..c3f495c7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DeleteCharacterReplyMessage.cpp @@ -0,0 +1,40 @@ +// ====================================================================== +// +// DeleteCharacterReplyMessage.cpp +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/DeleteCharacterReplyMessage.h" + +// ====================================================================== + +const char * const DeleteCharacterReplyMessage::MessageType = "DeleteCharacterReplyMessage"; + +//---------------------------------------------------------------------- + +DeleteCharacterReplyMessage::DeleteCharacterReplyMessage(ResultCode resultCode) : +GameNetworkMessage(MessageType), +m_resultCode(static_cast(resultCode)) +{ + addVariable(m_resultCode); +} + +//----------------------------------------------------------------------- + +DeleteCharacterReplyMessage::DeleteCharacterReplyMessage(Archive::ReadIterator & source) : +GameNetworkMessage(MessageType), +m_resultCode() +{ + addVariable(m_resultCode); + unpack(source); +} + +// ---------------------------------------------------------------------- + +DeleteCharacterReplyMessage::~DeleteCharacterReplyMessage() +{ +} + +// ====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DeleteCharacterReplyMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DeleteCharacterReplyMessage.h new file mode 100644 index 00000000..e63657cb --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DeleteCharacterReplyMessage.h @@ -0,0 +1,50 @@ +// ====================================================================== +// +// DeleteCharacterReplyMessage.h +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_DeleteCharacterReplyMessage_H +#define INCLUDED_DeleteCharacterReplyMessage_H + +// ====================================================================== + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class DeleteCharacterReplyMessage : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + enum ResultCode {rc_OK, rc_ALREADY_IN_PROGRESS, rc_CLUSTER_DOWN}; + +public: + DeleteCharacterReplyMessage(ResultCode resultCode); + explicit DeleteCharacterReplyMessage(Archive::ReadIterator & source); + virtual ~DeleteCharacterReplyMessage(); + +public: + ResultCode getResultCode() const; + +private: + Archive::AutoVariable m_resultCode; + + DeleteCharacterReplyMessage(); + DeleteCharacterReplyMessage(const DeleteCharacterReplyMessage&); + DeleteCharacterReplyMessage& operator= (const DeleteCharacterReplyMessage&); +}; + +// ---------------------------------------------------------------------- + +inline DeleteCharacterReplyMessage::ResultCode DeleteCharacterReplyMessage::getResultCode() const +{ + return static_cast(m_resultCode.get()); +} + +// ====================================================================== + +#endif // _INCLUDED_ClientCentralMessages_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyClientPathMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyClientPathMessage.cpp new file mode 100644 index 00000000..023c46da --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyClientPathMessage.cpp @@ -0,0 +1,35 @@ +// ================================================================== +// +// DestroyClientPathMessage.h +// Copyright 2003, Sony Online Entertainment +// +// ================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/DestroyClientPathMessage.h" + +// ================================================================== + +char const * const DestroyClientPathMessage::cms_name = "DestroyClientPathMessage"; + +// ================================================================== + +DestroyClientPathMessage::DestroyClientPathMessage () : + GameNetworkMessage (cms_name) +{ +} + +// ------------------------------------------------------------------ + +DestroyClientPathMessage::DestroyClientPathMessage (Archive::ReadIterator& /*source*/) : + GameNetworkMessage (cms_name) +{ +} + +// ------------------------------------------------------------------ + +DestroyClientPathMessage::~DestroyClientPathMessage () +{ +} + +// ================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyClientPathMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyClientPathMessage.h new file mode 100644 index 00000000..accafc1e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyClientPathMessage.h @@ -0,0 +1,33 @@ +// ================================================================== +// +// DestroyClientPathMessage.h +// Copyright 2003, Sony Online Entertainment +// +// ================================================================== + +#ifndef INCLUDED_DestroyClientPathMessage_H +#define INCLUDED_DestroyClientPathMessage_H + +// ================================================================== + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" + +// ================================================================== + +class DestroyClientPathMessage : public GameNetworkMessage +{ +public: + + DestroyClientPathMessage (); + explicit DestroyClientPathMessage (Archive::ReadIterator &source); + virtual ~DestroyClientPathMessage(); + +public: + + static char const * const cms_name; +}; + +// ================================================================== + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyShipComponentMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyShipComponentMessage.cpp new file mode 100644 index 00000000..1fb10966 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyShipComponentMessage.cpp @@ -0,0 +1,66 @@ +// ====================================================================== +// +// DestroyShipComponentMessage.cpp +// +// Copyright 2003 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/DestroyShipComponentMessage.h" + +// ====================================================================== + +char const * const DestroyShipComponentMessage::MessageType = "DestroyShipComponentMessage"; + +//---------------------------------------------------------------------- + +DestroyShipComponentMessage::DestroyShipComponentMessage(NetworkId const &shipId, int chassisSlot, float severity) : +GameNetworkMessage(MessageType), +m_shipId(shipId), +m_chassisSlot(chassisSlot), +m_severity(severity) +{ + addVariable(m_shipId); + addVariable(m_chassisSlot); + addVariable(m_severity); +} + +// ---------------------------------------------------------------------- + +DestroyShipComponentMessage::DestroyShipComponentMessage(Archive::ReadIterator &source) : +GameNetworkMessage(MessageType), +m_shipId(), +m_chassisSlot(0), +m_severity(0.0f) +{ + addVariable(m_shipId); + addVariable(m_chassisSlot); + addVariable(m_severity); + + unpack(source); +} + + +//---------------------------------------------------------------------- + +NetworkId const &DestroyShipComponentMessage::getShipId() const +{ + return m_shipId.get(); +} + +//---------------------------------------------------------------------- + +int DestroyShipComponentMessage::getChassisSlot() const +{ + return m_chassisSlot.get(); +} + +//---------------------------------------------------------------------- + +float DestroyShipComponentMessage::getSeverity() const +{ + return m_severity.get(); +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyShipComponentMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyShipComponentMessage.h new file mode 100644 index 00000000..1ac31239 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyShipComponentMessage.h @@ -0,0 +1,43 @@ +// ====================================================================== +// +// DestroyShipComponentMessage.h +// +// Copyright 2003 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _DestroyShipComponentMessage_H_ +#define _DestroyShipComponentMessage_H_ + +// ====================================================================== + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" + +// ====================================================================== + +class DestroyShipComponentMessage: public GameNetworkMessage +{ +public: + + static char const * const MessageType; + + DestroyShipComponentMessage(NetworkId const &shipId, int chassisSlot, float severity); + explicit DestroyShipComponentMessage(Archive::ReadIterator &source); + +public: + NetworkId const &getShipId() const; + int getChassisSlot() const; + float getSeverity() const; + +private: + Archive::AutoVariable m_shipId; + Archive::AutoVariable m_chassisSlot; + Archive::AutoVariable m_severity; +}; + +// ====================================================================== + +#endif // _DestroyShipComponentMessage_H_ + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyShipMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyShipMessage.cpp new file mode 100644 index 00000000..85517d5c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyShipMessage.cpp @@ -0,0 +1,55 @@ +// ====================================================================== +// +// DestroyShipMessage.cpp +// +// Copyright 2003 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/DestroyShipMessage.h" + +// ====================================================================== + +char const * const DestroyShipMessage::MessageType = "DestroyShipMessage"; + +//---------------------------------------------------------------------- + +DestroyShipMessage::DestroyShipMessage(NetworkId const &shipId, float severity) : +GameNetworkMessage(MessageType), +m_shipId(shipId), +m_severity(severity) +{ + addVariable(m_shipId); + addVariable(m_severity); +} + +// ---------------------------------------------------------------------- + +DestroyShipMessage::DestroyShipMessage(Archive::ReadIterator &source) : +GameNetworkMessage(MessageType), +m_shipId(), +m_severity(0.0f) +{ + addVariable(m_shipId); + addVariable(m_severity); + + unpack(source); +} + + +//---------------------------------------------------------------------- + +NetworkId const &DestroyShipMessage::getShipId() const +{ + return m_shipId.get(); +} + +//---------------------------------------------------------------------- + +float DestroyShipMessage::getSeverity() const +{ + return m_severity.get(); +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyShipMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyShipMessage.h new file mode 100644 index 00000000..e8cabccd --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DestroyShipMessage.h @@ -0,0 +1,41 @@ +// ====================================================================== +// +// DestroyShipMessage.h +// +// Copyright 2003 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _DestroyShipMessage_H_ +#define _DestroyShipMessage_H_ + +// ====================================================================== + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" + +// ====================================================================== + +class DestroyShipMessage: public GameNetworkMessage +{ +public: + + static char const * const MessageType; + + DestroyShipMessage(NetworkId const &shipId, float severity); + explicit DestroyShipMessage(Archive::ReadIterator &source); + +public: + NetworkId const &getShipId() const; + float getSeverity() const; + +private: + Archive::AutoVariable m_shipId; + Archive::AutoVariable m_severity; +}; + +// ====================================================================== + +#endif // _DestroyShipMessage_H_ + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DroidCommandProgrammingMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DroidCommandProgrammingMessage.cpp new file mode 100644 index 00000000..89f58bed --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DroidCommandProgrammingMessage.cpp @@ -0,0 +1,124 @@ +// DroidCommandProgrammingMessage.cpp +// Copyright 2004, Sony Online Entertainment Inc., all rights reserved. + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/DroidCommandProgrammingMessage.h" + +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +#include + +//----------------------------------------------------------------------- + +CONTROLLER_MESSAGE_ALLOW_FROM_CLIENT_IMPLEMENTATION(DroidCommandProgrammingMessage, CM_droidCommandProgramming); + +//----------------------------------------------------------------------- + +DroidCommandProgrammingMessage::DroidCommandProgrammingMessage() : +MessageQueue::Data(), +m_commands(), +m_chipsToAdd(), +m_chipsToRemove(), +m_droidControlDevice() +{ +} + +//----------------------------------------------------------------------- + +DroidCommandProgrammingMessage & DroidCommandProgrammingMessage::operator=(const DroidCommandProgrammingMessage & rhs) +{ + if (this == &rhs) + return *this; + + m_commands = rhs.m_commands; + m_chipsToAdd = rhs.m_chipsToAdd; + m_chipsToRemove = rhs.m_chipsToRemove; + m_droidControlDevice = rhs.m_droidControlDevice; + + return *this; +} + +//----------------------------------------------------------------------- + +void DroidCommandProgrammingMessage::pack(MessageQueue::Data const * const data, Archive::ByteStream & target) +{ + DroidCommandProgrammingMessage const * const msg = safe_cast (data); + + if (msg) + { + std::vector const & commands = msg->getCommands(); + int size = commands.size(); //lint !e713 signed / unsigned + Archive::put(target, size); + for(std::vector::const_iterator i = commands.begin(); i != commands.end(); ++i) + { + Archive::put(target, *i); + } + + std::vector const & chipsToAdd = msg->getChipsToAdd(); + size = chipsToAdd.size(); //lint !e713 signed / unsigned + Archive::put(target, size); + for(std::vector::const_iterator j = chipsToAdd.begin(); j != chipsToAdd.end(); ++j) + { + Archive::put(target, *j); + } + + std::vector const & chipsToRemove = msg->getChipsToRemove(); + size = chipsToRemove.size(); //lint !e713 signed / unsigned + Archive::put(target, size); + for(std::vector::const_iterator k = chipsToRemove.begin(); k != chipsToRemove.end(); ++k) + { + Archive::put(target, *k); + } + + Archive::put(target, msg->getDroidControlDevice()); + } +} + +//----------------------------------------------------------------------- + +MessageQueue::Data* DroidCommandProgrammingMessage::unpack(Archive::ReadIterator & source) +{ + DroidCommandProgrammingMessage * msg = new DroidCommandProgrammingMessage; + + std::string command; + std::vector commands; + int size = 0; + Archive::get(source, size); + for(int i = 0; i < size; ++i) + { + Archive::get(source, command); + commands.push_back(command); + } + msg->setCommands(commands); + + std::vector chips; + NetworkId chip; + Archive::get(source, size); + for(int j = 0; j < size; ++j) + { + Archive::get(source, chip); + chips.push_back(chip); + } + msg->setChipsToAdd(chips); + + chips.clear(); + Archive::get(source, size); + for(int k = 0; k < size; ++k) + { + Archive::get(source, chip); + chips.push_back(chip); + } + msg->setChipsToRemove(chips); + + NetworkId networkId; + Archive::get(source, networkId); + msg->setDroidControlDevice(networkId); + return msg; +} + +//====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DroidCommandProgrammingMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DroidCommandProgrammingMessage.h new file mode 100644 index 00000000..a2516c42 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/DroidCommandProgrammingMessage.h @@ -0,0 +1,108 @@ +// DroidCommandProgrammingMessage.h +// Copyright 2004, Sony Online Entertainment Inc., all rights reserved. + +#ifndef _INCLUDED_DroidCommandProgrammingMessage_H +#define _INCLUDED_DroidCommandProgrammingMessage_H + +//----------------------------------------------------------------------- + +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; + +//----------------------------------------------------------------------- + +class DroidCommandProgrammingMessage : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + +public: + DroidCommandProgrammingMessage(); + DroidCommandProgrammingMessage & operator=(const DroidCommandProgrammingMessage & rhs); + + //accessors + std::vector const & getCommands() const; + std::vector const & getChipsToAdd() const; + std::vector const & getChipsToRemove() const; + NetworkId const & getDroidControlDevice() const; + + //mutators + void setCommands(std::vector const & commands); + void setChipsToAdd(std::vector const & chipsToAdd); + void setChipsToRemove(std::vector const & chipsToRemove); + void setDroidControlDevice(NetworkId const & droidControlDevice); + +private: + //disabled + DroidCommandProgrammingMessage(DroidCommandProgrammingMessage const & source); + +private: + std::vector m_commands; + std::vector m_chipsToAdd; + std::vector m_chipsToRemove; + NetworkId m_droidControlDevice; +}; + +//----------------------------------------------------------------------- + +inline std::vector const & DroidCommandProgrammingMessage::getCommands() const +{ + return m_commands; +} + +//----------------------------------------------------------------------- + +inline std::vector const & DroidCommandProgrammingMessage::getChipsToAdd() const +{ + return m_chipsToAdd; +} + +//----------------------------------------------------------------------- + +inline std::vector const & DroidCommandProgrammingMessage::getChipsToRemove() const +{ + return m_chipsToRemove; +} + +//----------------------------------------------------------------------- + +inline NetworkId const & DroidCommandProgrammingMessage::getDroidControlDevice() const +{ + return m_droidControlDevice; +} + +//----------------------------------------------------------------------- + +inline void DroidCommandProgrammingMessage::setCommands(std::vector const & commands) +{ + m_commands = commands; +} + +//----------------------------------------------------------------------- + +inline void DroidCommandProgrammingMessage::setChipsToAdd(std::vector const & chipsToAdd) +{ + m_chipsToAdd = chipsToAdd; +} + +//----------------------------------------------------------------------- + +inline void DroidCommandProgrammingMessage::setChipsToRemove(std::vector const & chipsToRemove) +{ + m_chipsToRemove = chipsToRemove; +} + +//----------------------------------------------------------------------- + +inline void DroidCommandProgrammingMessage::setDroidControlDevice(NetworkId const & droidControlDevice) +{ + m_droidControlDevice = droidControlDevice; +} + +//----------------------------------------------------------------------- + +#endif +// _INCLUDED_DroidCommandProgrammingMessage_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EditAppearanceMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EditAppearanceMessage.cpp new file mode 100644 index 00000000..f8697591 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EditAppearanceMessage.cpp @@ -0,0 +1,35 @@ +// ====================================================================== +// +// EditAppearanceMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/EditAppearanceMessage.h" + +// ====================================================================== + +const char * const EditAppearanceMessage::MessageType = "EditAppearanceMessage"; + +//---------------------------------------------------------------------- + +EditAppearanceMessage::EditAppearanceMessage(const NetworkId & target) : +GameNetworkMessage(MessageType), +m_target(target) +{ + addVariable(m_target); +} + +//---------------------------------------------------------------------- + +EditAppearanceMessage::EditAppearanceMessage(Archive::ReadIterator &source) : +GameNetworkMessage(MessageType), +m_target() +{ + addVariable(m_target); + unpack(source); +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EditAppearanceMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EditAppearanceMessage.h new file mode 100644 index 00000000..46daf53f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EditAppearanceMessage.h @@ -0,0 +1,45 @@ +// ====================================================================== +// +// EditAppearanceMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _EditAppearanceMessage_H +#define _EditAppearanceMessage_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkIdArchive.h" + +//----------------------------------------------------------------------- + +class EditAppearanceMessage : public GameNetworkMessage +{ +public: + static const char * const MessageType; + +public: + explicit EditAppearanceMessage(const NetworkId & id); + explicit EditAppearanceMessage(Archive::ReadIterator &source); + +public: + const NetworkId & getTarget () const; + +private: + Archive::AutoVariable m_target; +}; + +// ---------------------------------------------------------------------- + +inline const NetworkId & EditAppearanceMessage::getTarget () const +{ + return m_target.get (); +} + +// ---------------------------------------------------------------------- + +#endif // _EditAppearanceMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EditStatsMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EditStatsMessage.cpp new file mode 100644 index 00000000..e1aeba84 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EditStatsMessage.cpp @@ -0,0 +1,35 @@ +// ====================================================================== +// +// EditStatsMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/EditStatsMessage.h" + +// ====================================================================== + +const char * const EditStatsMessage::MessageType = "EditStatsMessage"; + +//---------------------------------------------------------------------- + +EditStatsMessage::EditStatsMessage(const NetworkId & target) : +GameNetworkMessage(MessageType), +m_target(target) +{ + addVariable(m_target); +} + +//---------------------------------------------------------------------- + +EditStatsMessage::EditStatsMessage(Archive::ReadIterator &source) : +GameNetworkMessage(MessageType), +m_target() +{ + addVariable(m_target); + unpack(source); +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EditStatsMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EditStatsMessage.h new file mode 100644 index 00000000..af723fad --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EditStatsMessage.h @@ -0,0 +1,45 @@ +// ====================================================================== +// +// EditStatsMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _EditStatsMessage_H +#define _EditStatsMessage_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkIdArchive.h" + +//----------------------------------------------------------------------- + +class EditStatsMessage : public GameNetworkMessage +{ +public: + static const char * const MessageType; + +public: + explicit EditStatsMessage(const NetworkId & id); + explicit EditStatsMessage(Archive::ReadIterator &source); + +public: + const NetworkId & getTarget () const; + +private: + Archive::AutoVariable m_target; +}; + +// ---------------------------------------------------------------------- + +inline const NetworkId & EditStatsMessage::getTarget () const +{ + return m_target.get (); +} + +// ---------------------------------------------------------------------- + +#endif // _EditStatsMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnterStructurePlacementModeMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnterStructurePlacementModeMessage.cpp new file mode 100644 index 00000000..1621bfc6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnterStructurePlacementModeMessage.cpp @@ -0,0 +1,58 @@ +// ================================================================== +// +// EnterStructurePlacementModeMessage.cpp +// Copyright 2002 Sony Online Entertainment +// +// ================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/EnterStructurePlacementModeMessage.h" + +// ================================================================== + +const char* const EnterStructurePlacementModeMessage::cms_name = "EnterStructurePlacementModeMessage"; + +// ================================================================== + +EnterStructurePlacementModeMessage::EnterStructurePlacementModeMessage (const NetworkId& deedNetworkId, const std::string& structureSharedObjectTemplateName) : + GameNetworkMessage ("EnterStructurePlacementModeMessage"), + m_deedNetworkId (deedNetworkId), + m_structureSharedObjectTemplateName (structureSharedObjectTemplateName) +{ + addVariable (m_deedNetworkId); + addVariable (m_structureSharedObjectTemplateName); +} + +// ------------------------------------------------------------------ + +EnterStructurePlacementModeMessage::EnterStructurePlacementModeMessage (Archive::ReadIterator& source) : + GameNetworkMessage ("EnterStructurePlacementModeMessage"), + m_deedNetworkId (), + m_structureSharedObjectTemplateName () +{ + addVariable (m_deedNetworkId); + addVariable (m_structureSharedObjectTemplateName); + unpack (source); +} + +// ------------------------------------------------------------------ + +EnterStructurePlacementModeMessage::~EnterStructurePlacementModeMessage () +{ +} + +// ------------------------------------------------------------------ + +const NetworkId& EnterStructurePlacementModeMessage::getDeedNetworkId () const +{ + return m_deedNetworkId.get (); +} + +// ------------------------------------------------------------------ + +const std::string& EnterStructurePlacementModeMessage::getStructureSharedObjectTemplateName () const +{ + return m_structureSharedObjectTemplateName.get (); +} + +// ================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnterStructurePlacementModeMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnterStructurePlacementModeMessage.h new file mode 100644 index 00000000..a6eaace8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnterStructurePlacementModeMessage.h @@ -0,0 +1,42 @@ +// ================================================================== +// +// EnterStructurePlacementModeMessage.h +// Copyright 2002 Sony Online Entertainment +// +// ================================================================== + +#ifndef INCLUDED_EnterStructurePlacementModeMessage_H +#define INCLUDED_EnterStructurePlacementModeMessage_H + +// ================================================================== + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" + +// ================================================================== + +class EnterStructurePlacementModeMessage : public GameNetworkMessage +{ +public: + + EnterStructurePlacementModeMessage (const NetworkId& deedNetworkId, const std::string& structureSharedObjectTemplateName); + explicit EnterStructurePlacementModeMessage (Archive::ReadIterator &source); + virtual ~EnterStructurePlacementModeMessage(); + + const NetworkId& getDeedNetworkId () const; + const std::string& getStructureSharedObjectTemplateName () const; + +public: + + static const char* const cms_name; + +private: + + Archive::AutoVariable m_deedNetworkId; + Archive::AutoVariable m_structureSharedObjectTemplateName; +}; + +// ================================================================== + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnterTicketPurchaseModeMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnterTicketPurchaseModeMessage.cpp new file mode 100644 index 00000000..93e780ec --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnterTicketPurchaseModeMessage.cpp @@ -0,0 +1,69 @@ +// ================================================================== +// +// EnterTicketPurchaseModeMessage.cpp +// Copyright 2002 Sony Online Entertainment +// +// ================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/EnterTicketPurchaseModeMessage.h" + +// ================================================================== + +const char* const EnterTicketPurchaseModeMessage::cms_name = "EnterTicketPurchaseModeMessage"; + +// ================================================================== + +EnterTicketPurchaseModeMessage::EnterTicketPurchaseModeMessage (const std::string& planetName, const std::string& travelPointName, bool instantTravel) : + GameNetworkMessage ("EnterTicketPurchaseModeMessage"), + m_planetName (planetName), + m_travelPointName (travelPointName), + m_instantTravel (instantTravel) +{ + addVariable (m_planetName); + addVariable (m_travelPointName); + addVariable (m_instantTravel); +} + +// ------------------------------------------------------------------ + +EnterTicketPurchaseModeMessage::EnterTicketPurchaseModeMessage (Archive::ReadIterator& source) : + GameNetworkMessage ("EnterTicketPurchaseModeMessage"), + m_planetName (), + m_travelPointName (), + m_instantTravel () +{ + addVariable (m_planetName); + addVariable (m_travelPointName); + addVariable (m_instantTravel); + unpack (source); +} + +// ------------------------------------------------------------------ + +EnterTicketPurchaseModeMessage::~EnterTicketPurchaseModeMessage () +{ +} + +// ------------------------------------------------------------------ + +const std::string& EnterTicketPurchaseModeMessage::getPlanetName () const +{ + return m_planetName.get (); +} + +// ------------------------------------------------------------------ + +const std::string& EnterTicketPurchaseModeMessage::getTravelPointName () const +{ + return m_travelPointName.get (); +} + +// ------------------------------------------------------------------ + +bool EnterTicketPurchaseModeMessage::getInstantTravel () const +{ + return m_instantTravel.get (); +} + +// ================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnterTicketPurchaseModeMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnterTicketPurchaseModeMessage.h new file mode 100644 index 00000000..2ff8809b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnterTicketPurchaseModeMessage.h @@ -0,0 +1,43 @@ +// ================================================================== +// +// EnterTicketPurchaseModeMessage.h +// Copyright 2002 Sony Online Entertainment +// +// ================================================================== + +#ifndef INCLUDED_EnterTicketPurchaseModeMessage_H +#define INCLUDED_EnterTicketPurchaseModeMessage_H + +// ================================================================== + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" + +// ================================================================== + +class EnterTicketPurchaseModeMessage : public GameNetworkMessage +{ +public: + + EnterTicketPurchaseModeMessage (const std::string& planetName, const std::string& travelPointName, bool instantTravel); + explicit EnterTicketPurchaseModeMessage (Archive::ReadIterator &source); + virtual ~EnterTicketPurchaseModeMessage(); + + const std::string& getPlanetName () const; + const std::string& getTravelPointName () const; + bool getInstantTravel () const; + +public: + + static const char* const cms_name; + +private: + + Archive::AutoVariable m_planetName; + Archive::AutoVariable m_travelPointName; + Archive::AutoVariable m_instantTravel; +}; + +// ================================================================== + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnvironmentalHitData.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnvironmentalHitData.cpp new file mode 100644 index 00000000..a8fca422 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnvironmentalHitData.cpp @@ -0,0 +1,49 @@ +//====================================================================== +// +// EnvironmentalHitData.cpp +// copyright (c) 2004 Sony Online Entertainment +// +//====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/EnvironmentalHitData.h" + +#include "Archive/Archive.h" + +//====================================================================== + +EnvironmentalHitData::EnvironmentalHitData() : +nebulaId(0), +side(0), +damage(0.0f) +{ +} + +//---------------------------------------------------------------------- + +EnvironmentalHitData::EnvironmentalHitData(int _nebulaId, int8 _side, float _damage) : +nebulaId(_nebulaId), +side(_side), +damage(_damage) +{ +} + +//---------------------------------------------------------------------- + +void EnvironmentalHitData::get(Archive::ReadIterator & source) +{ + Archive::get(source, nebulaId); + Archive::get(source, side); + Archive::get(source, damage); +} + +//---------------------------------------------------------------------- + +void EnvironmentalHitData::put(Archive::ByteStream & target) const +{ + Archive::put(target, nebulaId); + Archive::put(target, side); + Archive::put(target, damage); +} + +//====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnvironmentalHitData.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnvironmentalHitData.h new file mode 100644 index 00000000..f7ff37a6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/EnvironmentalHitData.h @@ -0,0 +1,53 @@ +//====================================================================== +// +// EnvironmentalHitData.h +// copyright (c) 2004 Sony Online Entertainment +// +//====================================================================== + +#ifndef INCLUDED_EnvironmentalHitData_H +#define INCLUDED_EnvironmentalHitData_H + +//====================================================================== + +namespace Archive +{ + class ReadIterator; + class ByteStream; +} + +//---------------------------------------------------------------------- + +class EnvironmentalHitData +{ +public: + + EnvironmentalHitData(); + EnvironmentalHitData(int _nebulaId, int8 _side, float _damage); + + int nebulaId; + int8 side; + float damage; + + void get(Archive::ReadIterator & source); + void put(Archive::ByteStream & target) const; +}; + +//---------------------------------------------------------------------- + +namespace Archive +{ + inline void get(ReadIterator & source, EnvironmentalHitData & target) + { + target.get(source); + } + + inline void put(ByteStream & target, EnvironmentalHitData const& source) + { + source.put(target); + } +} + +//====================================================================== + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ExpertiseRequestMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ExpertiseRequestMessage.cpp new file mode 100644 index 00000000..b01db2be --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ExpertiseRequestMessage.cpp @@ -0,0 +1,50 @@ +// ====================================================================== +// +// ExpertiseRequestMessage.cpp +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ExpertiseRequestMessage.h" + +// ====================================================================== + +ExpertiseRequestMessage::ExpertiseRequestMessage() : + GameNetworkMessage("ExpertiseRequestMessage") +{ + addVariable(m_addExpertisesList); + addVariable(m_clearAllExpertisesFirst); +} + +// ---------------------------------------------------------------------- + +ExpertiseRequestMessage::ExpertiseRequestMessage(Archive::ReadIterator &source) : + GameNetworkMessage("ExpertiseRequestMessage") +{ + addVariable(m_addExpertisesList); + addVariable(m_clearAllExpertisesFirst); + unpack(source); +} + +// ---------------------------------------------------------------------- + +void ExpertiseRequestMessage::setAddExpertisesList(const std::vector & addExpertiseList) +{ + m_addExpertisesList.set (addExpertiseList); +} + +// ---------------------------------------------------------------------- + +void ExpertiseRequestMessage::setClearAllExpertisesFirst(bool clearAllExpertisesFirst) +{ + m_clearAllExpertisesFirst.set (clearAllExpertisesFirst); +} + +// ---------------------------------------------------------------------- + +ExpertiseRequestMessage::~ExpertiseRequestMessage() +{ +} + +// ====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ExpertiseRequestMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ExpertiseRequestMessage.h new file mode 100644 index 00000000..229a2b64 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ExpertiseRequestMessage.h @@ -0,0 +1,56 @@ +// ====================================================================== +// +// ExpertiseRequestMessage.h +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_ExpertiseRequestMessage_H +#define INCLUDED_ExpertiseRequestMessage_H + +// ====================================================================== + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +// ====================================================================== + +class ExpertiseRequestMessage: public GameNetworkMessage +{ +public: + ExpertiseRequestMessage(); + explicit ExpertiseRequestMessage(Archive::ReadIterator &source); + virtual ~ExpertiseRequestMessage(); + + stdvector::fwd const &getAddExpertisesList() const; + void setAddExpertisesList(stdvector::fwd const &addExpertisesList); + bool getClearAllExpertisesFirst() const; + void setClearAllExpertisesFirst(bool clearAllExpertisesFirst); + +private: + ExpertiseRequestMessage(ExpertiseRequestMessage const &); + ExpertiseRequestMessage &operator=(ExpertiseRequestMessage const &); + +private: + + Archive::AutoArray m_addExpertisesList; + Archive::AutoVariable m_clearAllExpertisesFirst; +}; + +// ---------------------------------------------------------------------- + +inline stdvector::fwd const &ExpertiseRequestMessage::getAddExpertisesList() const +{ + return m_addExpertisesList.get(); +} + +// ---------------------------------------------------------------------- + +inline bool ExpertiseRequestMessage::getClearAllExpertisesFirst() const +{ + return m_clearAllExpertisesFirst.get(); +} + +// ====================================================================== + +#endif // _INCLUDED_ExpertiseRequestMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/FactionRequestMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/FactionRequestMessage.cpp new file mode 100644 index 00000000..3cd7d516 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/FactionRequestMessage.cpp @@ -0,0 +1,32 @@ +// ====================================================================== +// +// FactionRequestMessage.cpp +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/FactionRequestMessage.h" + +// ====================================================================== + +FactionRequestMessage::FactionRequestMessage() +: GameNetworkMessage("FactionRequestMessage") +{ +} + +//----------------------------------------------------------------------- + +FactionRequestMessage::FactionRequestMessage(Archive::ReadIterator & source) +: GameNetworkMessage("FactionRequestMessage") +{ + UNREF(source); +} + +// ---------------------------------------------------------------------- + +FactionRequestMessage::~FactionRequestMessage() +{ +} + +// ====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/FactionRequestMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/FactionRequestMessage.h new file mode 100644 index 00000000..5d234018 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/FactionRequestMessage.h @@ -0,0 +1,37 @@ +// ====================================================================== +// +// FactionRequestMessage.h +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_FactionRequestMessage_H +#define INCLUDED_FactionRequestMessage_H + +// ====================================================================== + +//#include "sharedFoundation/NetworkIdArchive.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +/** + * Sent from: Client + * Sent to: Connection Server + * Action: Requests the state of the player's stomach(s). + */ +class FactionRequestMessage : public GameNetworkMessage +{ + public: + FactionRequestMessage(); + explicit FactionRequestMessage(Archive::ReadIterator & source); + virtual ~FactionRequestMessage(); + + private: + FactionRequestMessage(const FactionRequestMessage&); + FactionRequestMessage& operator= (const FactionRequestMessage&); +}; + +// ====================================================================== + +#endif // _INCLUDED_ClientCentralMessages_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/FactionResponseMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/FactionResponseMessage.cpp new file mode 100644 index 00000000..6cf3908b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/FactionResponseMessage.cpp @@ -0,0 +1,73 @@ +// ====================================================================== +// +// FactionResponseMessage.cpp +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/FactionResponseMessage.h" + +// ====================================================================== + +const char * const FactionResponseMessage::MessageType = "FactionResponseMessage"; + +//---------------------------------------------------------------------- + +FactionResponseMessage::FactionResponseMessage(int rebel, int imperial, int criminal, const std::vector& npcFactionNameList, const std::vector& npcFactionValueList) +: GameNetworkMessage (MessageType), +m_factionRebelValue (rebel), +m_factionImperialValue(imperial), +m_factionCriminalValue(criminal), +m_npcFactionNameList(), +m_npcFactionValueList() +{ + m_npcFactionNameList.set(npcFactionNameList); + m_npcFactionValueList.set(npcFactionValueList); + + addVariable(m_factionRebelValue); + addVariable(m_factionImperialValue); + addVariable(m_factionCriminalValue); + addVariable(m_npcFactionNameList); + addVariable(m_npcFactionValueList); +} + +//----------------------------------------------------------------------- + +FactionResponseMessage::FactionResponseMessage(Archive::ReadIterator & source) +: GameNetworkMessage(MessageType), +m_factionRebelValue(), +m_factionImperialValue(), +m_factionCriminalValue(), +m_npcFactionNameList(), +m_npcFactionValueList() +{ + addVariable(m_factionRebelValue); + addVariable(m_factionImperialValue); + addVariable(m_factionCriminalValue); + addVariable(m_npcFactionNameList); + addVariable(m_npcFactionValueList); + unpack(source); +} + +// ---------------------------------------------------------------------- + +const std::vector & FactionResponseMessage::getNPCFactionNames() const +{ + return m_npcFactionNameList.get(); +} + +// ---------------------------------------------------------------------- + +const std::vector & FactionResponseMessage::getNPCFactionValues() const +{ + return m_npcFactionValueList.get(); +} + +// ---------------------------------------------------------------------- + +FactionResponseMessage::~FactionResponseMessage() +{ +} + +// ====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/FactionResponseMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/FactionResponseMessage.h new file mode 100644 index 00000000..129b4b94 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/FactionResponseMessage.h @@ -0,0 +1,75 @@ +// ====================================================================== +// +// FactionResponseMessage.h +// copyright (c) 2001 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_FactionResponseMessage_H +#define INCLUDED_FactionResponseMessage_H + +// ====================================================================== + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +/** + * Sent from: Connection Server + * Sent to: Client + * Action: Tells the client about it's factions + * connected to. + */ +class FactionResponseMessage : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + FactionResponseMessage(int rebel, int imperial, int criminal, const stdvector::fwd & npcFactionNameList, const stdvector::fwd & npcFactionValueList); + explicit FactionResponseMessage(Archive::ReadIterator & source); + virtual ~FactionResponseMessage(); + +public: + int getFactionRebel () const; + int getFactionImperial() const; + int getFactionCriminal() const; + const stdvector::fwd & getNPCFactionNames() const; + const stdvector::fwd & getNPCFactionValues() const; + +private: + Archive::AutoVariable m_factionRebelValue; + Archive::AutoVariable m_factionImperialValue; + Archive::AutoVariable m_factionCriminalValue; + Archive::AutoArray m_npcFactionNameList; + Archive::AutoArray m_npcFactionValueList; + + FactionResponseMessage(); + FactionResponseMessage(const FactionResponseMessage&); + FactionResponseMessage& operator= (const FactionResponseMessage&); +}; + +// ---------------------------------------------------------------------- + +inline int FactionResponseMessage::getFactionRebel() const +{ + return m_factionRebelValue.get(); +} + +// ---------------------------------------------------------------------- + +inline int FactionResponseMessage::getFactionImperial() const +{ + return m_factionImperialValue.get(); +} + +// ---------------------------------------------------------------------- + +inline int FactionResponseMessage::getFactionCriminal() const +{ + return m_factionCriminalValue.get(); +} + +// ====================================================================== + +#endif // _INCLUDED_ClientCentralMessages_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GalaxyLoopTimesResponse.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GalaxyLoopTimesResponse.cpp new file mode 100644 index 00000000..3753c054 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GalaxyLoopTimesResponse.cpp @@ -0,0 +1,40 @@ +// GalaxyLoopTimesResponse.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/GalaxyLoopTimesResponse.h" + +//----------------------------------------------------------------------- + +GalaxyLoopTimesResponse::GalaxyLoopTimesResponse(const unsigned long l, const unsigned long c) : +GameNetworkMessage("GalaxyLoopTimesResponse"), +currentFrameMilliseconds(c), +lastFrameMilliseconds(l) +{ + addVariable(currentFrameMilliseconds); + addVariable(lastFrameMilliseconds); +} + +//----------------------------------------------------------------------- + +GalaxyLoopTimesResponse::GalaxyLoopTimesResponse(Archive::ReadIterator & source) : +GameNetworkMessage("GalaxyLoopTimesResponse"), +currentFrameMilliseconds(), +lastFrameMilliseconds() +{ + addVariable(currentFrameMilliseconds); + addVariable(lastFrameMilliseconds); + unpack(source); +} + +//----------------------------------------------------------------------- + +GalaxyLoopTimesResponse::~GalaxyLoopTimesResponse() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GalaxyLoopTimesResponse.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GalaxyLoopTimesResponse.h new file mode 100644 index 00000000..56d447c5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GalaxyLoopTimesResponse.h @@ -0,0 +1,48 @@ +// GalaxyLoopTimesResponse.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_GalaxyLoopTimesResponse_H +#define _INCLUDED_GalaxyLoopTimesResponse_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class GalaxyLoopTimesResponse : public GameNetworkMessage +{ +public: + GalaxyLoopTimesResponse(const unsigned long lastFrameMilliseconds, const unsigned long currentFrameMilliseconds); + explicit GalaxyLoopTimesResponse(Archive::ReadIterator & source); + ~GalaxyLoopTimesResponse(); + + const unsigned long getCurrentFrameMilliseconds () const; + const unsigned long getLastFrameMilliseconds () const; + +private: + GalaxyLoopTimesResponse & operator = (const GalaxyLoopTimesResponse & rhs); + GalaxyLoopTimesResponse(const GalaxyLoopTimesResponse & source); + + Archive::AutoVariable currentFrameMilliseconds; + Archive::AutoVariable lastFrameMilliseconds; +}; + +//----------------------------------------------------------------------- + +inline const unsigned long GalaxyLoopTimesResponse::getCurrentFrameMilliseconds() const +{ + return currentFrameMilliseconds.get(); +} + +//----------------------------------------------------------------------- + +inline const unsigned long GalaxyLoopTimesResponse::getLastFrameMilliseconds() const +{ + return lastFrameMilliseconds.get(); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_GalaxyLoopTimesResponse_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetAuctionDetails.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetAuctionDetails.cpp new file mode 100644 index 00000000..7ea4e1a7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetAuctionDetails.cpp @@ -0,0 +1,36 @@ +// ====================================================================== +// +// GetAuctionDetails.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/GetAuctionDetails.h" + +// ====================================================================== + +GetAuctionDetails::GetAuctionDetails(const NetworkId & itemId): + GameNetworkMessage("GetAuctionDetails"), + m_itemId(itemId) +{ + AutoByteStream::addVariable(m_itemId); +} + +// ====================================================================== + +GetAuctionDetails::GetAuctionDetails(Archive::ReadIterator &source) : + GameNetworkMessage("GetAuctionDetails"), + m_itemId() +{ + AutoByteStream::addVariable(m_itemId); + + unpack(source); +} + +// ====================================================================== + +GetAuctionDetails::~GetAuctionDetails() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetAuctionDetails.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetAuctionDetails.h new file mode 100644 index 00000000..275d3ada --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetAuctionDetails.h @@ -0,0 +1,51 @@ +// ====================================================================== +// +// GetAuctionDetails.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _GetAuctionDetails_H +#define _GetAuctionDetails_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" + +//----------------------------------------------------------------------- + + +class GetAuctionDetails : public GameNetworkMessage +{ +public: + + GetAuctionDetails(const NetworkId & item); + explicit GetAuctionDetails(Archive::ReadIterator &source); + + ~GetAuctionDetails(); + +public: // methods + + NetworkId getItem() const; + +public: // types + +private: + Archive::AutoVariable m_itemId; //item +}; + +// ---------------------------------------------------------------------- + +inline NetworkId GetAuctionDetails::getItem() const +{ + return m_itemId.get(); +} + +// ---------------------------------------------------------------------- + +#endif // _GetAuctionDetails_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetAuctionDetailsResponse.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetAuctionDetailsResponse.cpp new file mode 100644 index 00000000..45ff319b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetAuctionDetailsResponse.cpp @@ -0,0 +1,66 @@ +// ====================================================================== +// +// GetAuctionDetailsResponse.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/GetAuctionDetailsResponse.h" + +// ====================================================================== + +const char * const GetAuctionDetailsResponse::MessageType = "GetAuctionDetailsResponse"; + +//---------------------------------------------------------------------- + +GetAuctionDetailsResponse::GetAuctionDetailsResponse(const Auction::ItemDataDetails & details) : + GameNetworkMessage(MessageType), + m_details(details) +{ + AutoByteStream::addVariable(m_details); +} + +// ---------------------------------------------------------------------- + +GetAuctionDetailsResponse::GetAuctionDetailsResponse(Archive::ReadIterator & source) : + GameNetworkMessage(MessageType), + m_details() +{ + AutoByteStream::addVariable(m_details); + unpack(source); +} + +// ---------------------------------------------------------------------- + +GetAuctionDetailsResponse::~GetAuctionDetailsResponse() +{ +} + +//---------------------------------------------------------------------- + +namespace Archive +{ + + void get(ReadIterator &source, Auction::ItemDataDetails &target) + { + get(source, target.itemId); + get(source, target.userDescription); + get(source, target.propertyList); + get(source, target.templateName); + get(source, target.appearanceString); + } + + void put(ByteStream &target, Auction::ItemDataDetails const &source) + { + put(target, source.itemId); + put(target, source.userDescription); + put(target, source.propertyList); + put(target, source.templateName); + put(target, source.appearanceString); + } + +} +// ====================================================================== + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetAuctionDetailsResponse.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetAuctionDetailsResponse.h new file mode 100644 index 00000000..66e18ef9 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetAuctionDetailsResponse.h @@ -0,0 +1,59 @@ +// ====================================================================== +// +// GetAuctionDetailsResponse.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _GetAuctionDetailsResponse_H +#define _GetAuctionDetailsResponse_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/AuctionData.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedNetworkMessages/AuctionData.h" + +//----------------------------------------------------------------------- + +class GetAuctionDetailsResponse : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + GetAuctionDetailsResponse(const Auction::ItemDataDetails & details); + explicit GetAuctionDetailsResponse(Archive::ReadIterator &source); + + ~GetAuctionDetailsResponse(); + +public: // methods + + Auction::ItemDataDetails getDetails() const; +public: // types + +private: + Archive::AutoVariable m_details; +}; + +// ---------------------------------------------------------------------- + +inline Auction::ItemDataDetails GetAuctionDetailsResponse::getDetails() const +{ + return m_details.get(); +} + +// ---------------------------------------------------------------------- + +namespace Archive +{ + void get(ReadIterator &source, Auction::ItemDataDetails &target); + void put(ByteStream &target, Auction::ItemDataDetails const &source); +} + +// ---------------------------------------------------------------------- + +#endif // _GetAuctionDetailsResponse_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetMapLocationsMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetMapLocationsMessage.cpp new file mode 100644 index 00000000..6a694b73 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetMapLocationsMessage.cpp @@ -0,0 +1,54 @@ +// ====================================================================== +// +// GetMapLocationsMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/GetMapLocationsMessage.h" + +// ====================================================================== + +const char * const GetMapLocationsMessage::MessageType = "GetMapLocationsMessage"; + +//---------------------------------------------------------------------- + +GetMapLocationsMessage::GetMapLocationsMessage(const std::string &planetName, int cacheVersionStatic, int cacheVersionDynamic, int cacheVersionPersist) : +GameNetworkMessage (MessageType), +m_planetName (planetName), +m_cacheVersionStatic (cacheVersionStatic), +m_cacheVersionDynamic (cacheVersionDynamic), +m_cacheVersionPersist (cacheVersionPersist) +{ + AutoByteStream::addVariable(m_planetName); + AutoByteStream::addVariable(m_cacheVersionStatic); + AutoByteStream::addVariable(m_cacheVersionDynamic); + AutoByteStream::addVariable(m_cacheVersionPersist); +} + +// ====================================================================== + +GetMapLocationsMessage::GetMapLocationsMessage(Archive::ReadIterator &source) : +GameNetworkMessage (MessageType), +m_planetName (), +m_cacheVersionStatic (0), +m_cacheVersionDynamic (0), +m_cacheVersionPersist (0) +{ + AutoByteStream::addVariable(m_planetName); + AutoByteStream::addVariable(m_cacheVersionStatic); + AutoByteStream::addVariable(m_cacheVersionDynamic); + AutoByteStream::addVariable(m_cacheVersionPersist); + unpack(source); +} + +// ====================================================================== + +GetMapLocationsMessage::~GetMapLocationsMessage() +{ +} + +//---------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetMapLocationsMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetMapLocationsMessage.h new file mode 100644 index 00000000..c0799e4d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetMapLocationsMessage.h @@ -0,0 +1,81 @@ +// ====================================================================== +// +// GetMapLocationsMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _GetMapLocationsMessage_H +#define _GetMapLocationsMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" +#include "sharedNetworkMessages/MapLocation.h" +#include "sharedNetworkMessages/MapLocationArchive.h" + +//----------------------------------------------------------------------- + +class GetMapLocationsMessage : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + GetMapLocationsMessage(const std::string &planetName, int cacheVersionStatic, int cacheVersionDynamic, int cacheVersionPersist); + explicit GetMapLocationsMessage(Archive::ReadIterator &source); + + ~GetMapLocationsMessage(); + +public: // methods + + const std::string & getPlanetName () const; + int getCacheVersionStatic () const; + int getCacheVersionDynamic () const; + int getCacheVersionPersist () const; + +public: // types + +private: + Archive::AutoVariable m_planetName; + Archive::AutoVariable m_cacheVersionStatic; + Archive::AutoVariable m_cacheVersionDynamic; + Archive::AutoVariable m_cacheVersionPersist; +}; + +// ---------------------------------------------------------------------- + +inline const std::string &GetMapLocationsMessage::getPlanetName() const +{ + return m_planetName.get(); +} + +//---------------------------------------------------------------------- + +inline int GetMapLocationsMessage::getCacheVersionStatic () const +{ + return m_cacheVersionStatic.get (); +} + +//---------------------------------------------------------------------- + +inline int GetMapLocationsMessage::getCacheVersionDynamic () const +{ + return m_cacheVersionDynamic.get (); +} + +//---------------------------------------------------------------------- + +inline int GetMapLocationsMessage::getCacheVersionPersist () const +{ + return m_cacheVersionPersist.get (); +} + +// ---------------------------------------------------------------------- + +#endif // _GetMapLocationsMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetMapLocationsResponseMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetMapLocationsResponseMessage.cpp new file mode 100644 index 00000000..ac328559 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetMapLocationsResponseMessage.cpp @@ -0,0 +1,76 @@ +// ====================================================================== +// +// GetMapLocationsResponseMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/GetMapLocationsResponseMessage.h" + +// ====================================================================== + +const char * const GetMapLocationsResponseMessage::MessageType = "GetMapLocationsResponseMessage"; + +//---------------------------------------------------------------------- + +GetMapLocationsResponseMessage::GetMapLocationsResponseMessage(const std::string &planetName, + const MapLocationVector & locStatic, + const MapLocationVector & locDynamic, + const MapLocationVector & locPersist, + int versionStatic, + int versionDynamic, + int versionPersist) : +GameNetworkMessage (MessageType), +m_planetName (planetName), +m_mapLocationsStatic (), +m_mapLocationsDynamic (), +m_mapLocationsPersist (), +m_versionStatic (versionStatic), +m_versionDynamic (versionDynamic), +m_versionPersist (versionPersist) +{ + m_mapLocationsStatic.set (locStatic); + m_mapLocationsDynamic.set (locDynamic); + m_mapLocationsPersist.set (locPersist); + + AutoByteStream::addVariable(m_planetName); + AutoByteStream::addVariable(m_mapLocationsStatic); + AutoByteStream::addVariable(m_mapLocationsDynamic); + AutoByteStream::addVariable(m_mapLocationsPersist); + AutoByteStream::addVariable(m_versionStatic); + AutoByteStream::addVariable(m_versionDynamic); + AutoByteStream::addVariable(m_versionPersist); +} + +// ====================================================================== + +GetMapLocationsResponseMessage::GetMapLocationsResponseMessage(Archive::ReadIterator &source) : +GameNetworkMessage(MessageType), +m_planetName (), +m_mapLocationsStatic (), +m_mapLocationsDynamic (), +m_mapLocationsPersist (), +m_versionStatic (), +m_versionDynamic (), +m_versionPersist () +{ + AutoByteStream::addVariable(m_planetName); + AutoByteStream::addVariable(m_mapLocationsStatic); + AutoByteStream::addVariable(m_mapLocationsDynamic); + AutoByteStream::addVariable(m_mapLocationsPersist); + AutoByteStream::addVariable(m_versionStatic); + AutoByteStream::addVariable(m_versionDynamic); + AutoByteStream::addVariable(m_versionPersist); + + unpack(source); +} + +// ====================================================================== + +GetMapLocationsResponseMessage::~GetMapLocationsResponseMessage() +{ +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetMapLocationsResponseMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetMapLocationsResponseMessage.h new file mode 100644 index 00000000..19c3f6f2 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GetMapLocationsResponseMessage.h @@ -0,0 +1,111 @@ +// ====================================================================== +// +// GetMapLocationsResponseMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _GetMapLocationsResponseMessage_H +#define _GetMapLocationsResponseMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" +#include "sharedNetworkMessages/MapLocation.h" +#include "sharedNetworkMessages/MapLocationArchive.h" + +//----------------------------------------------------------------------- + +class GetMapLocationsResponseMessage : public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + typedef stdvector::fwd MapLocationVector; + + GetMapLocationsResponseMessage (const std::string &planetName, const MapLocationVector & locStatic, const MapLocationVector & locDynamic, const MapLocationVector & locPersist, int versionStatic, int versionDynamic, int versionPersist); + explicit GetMapLocationsResponseMessage (Archive::ReadIterator &source); + + ~GetMapLocationsResponseMessage(); + +public: // methods + + const std::string & getPlanetName () const; + const MapLocationVector & getMapLocationsStatic () const; + const MapLocationVector & getMapLocationsDynamic () const; + const MapLocationVector & getMapLocationsPersist () const; + + int getVersionStatic () const; + int getVersionDynamic () const; + int getVersionPersist () const; + +public: // types + +private: + Archive::AutoVariable m_planetName; + Archive::AutoArray m_mapLocationsStatic; + Archive::AutoArray m_mapLocationsDynamic; + Archive::AutoArray m_mapLocationsPersist; + Archive::AutoVariable m_versionStatic; + Archive::AutoVariable m_versionDynamic; + Archive::AutoVariable m_versionPersist; +}; + +// ---------------------------------------------------------------------- + +inline const std::string &GetMapLocationsResponseMessage::getPlanetName() const +{ + return m_planetName.get(); +} + +// ---------------------------------------------------------------------- + +inline const GetMapLocationsResponseMessage::MapLocationVector &GetMapLocationsResponseMessage::getMapLocationsStatic () const +{ + return m_mapLocationsStatic.get(); +} + +// ---------------------------------------------------------------------- + +inline const GetMapLocationsResponseMessage::MapLocationVector &GetMapLocationsResponseMessage::getMapLocationsDynamic () const +{ + return m_mapLocationsDynamic.get(); +} + +// ---------------------------------------------------------------------- + +inline const GetMapLocationsResponseMessage::MapLocationVector &GetMapLocationsResponseMessage::getMapLocationsPersist () const +{ + return m_mapLocationsPersist.get(); +} + +//---------------------------------------------------------------------- + +inline int GetMapLocationsResponseMessage::getVersionStatic () const +{ + return m_versionStatic.get (); +} + +//---------------------------------------------------------------------- + +inline int GetMapLocationsResponseMessage::getVersionDynamic () const +{ + return m_versionDynamic.get (); +} + +//---------------------------------------------------------------------- + +inline int GetMapLocationsResponseMessage::getVersionPersist () const +{ + return m_versionPersist.get (); +} + +// ---------------------------------------------------------------------- + +#endif // _GetMapLocationsResponseMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GuildRequestMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GuildRequestMessage.cpp new file mode 100644 index 00000000..2ebb8c20 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GuildRequestMessage.cpp @@ -0,0 +1,35 @@ +// ====================================================================== +// +// GuildRequestMessage.cpp +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/GuildRequestMessage.h" + +// ====================================================================== + +GuildRequestMessage::GuildRequestMessage(NetworkId const &targetId) : + GameNetworkMessage("GuildRequestMessage"), + m_targetId(targetId) +{ + addVariable(m_targetId); +} + +// ---------------------------------------------------------------------- + +GuildRequestMessage::GuildRequestMessage(Archive::ReadIterator &source) : + GameNetworkMessage("GuildRequestMessage") +{ + addVariable(m_targetId); + unpack(source); +} + +// ---------------------------------------------------------------------- + +GuildRequestMessage::~GuildRequestMessage() +{ +} + +// ====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GuildRequestMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GuildRequestMessage.h new file mode 100644 index 00000000..89bf9cf7 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GuildRequestMessage.h @@ -0,0 +1,44 @@ +// ====================================================================== +// +// GuildRequestMessage.h +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_GuildRequestMessage_H +#define INCLUDED_GuildRequestMessage_H + +// ====================================================================== + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +// ====================================================================== + +class GuildRequestMessage: public GameNetworkMessage +{ +public: + GuildRequestMessage(NetworkId const &targetId); + explicit GuildRequestMessage(Archive::ReadIterator &source); + virtual ~GuildRequestMessage(); + + NetworkId const &getTargetId() const; + +private: + GuildRequestMessage(GuildRequestMessage const &); + GuildRequestMessage &operator=(GuildRequestMessage const &); + +private: + Archive::AutoVariable m_targetId; +}; + +// ---------------------------------------------------------------------- + +inline NetworkId const &GuildRequestMessage::getTargetId() const +{ + return m_targetId.get(); +} + +// ====================================================================== + +#endif // _INCLUDED_GuildRequestMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GuildResponseMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GuildResponseMessage.cpp new file mode 100644 index 00000000..f835d6a4 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GuildResponseMessage.cpp @@ -0,0 +1,48 @@ +// ====================================================================== +// +// GuildResponseMessage.cpp +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/GuildResponseMessage.h" + +// ====================================================================== + +const char * const GuildResponseMessage::MessageType = "GuildResponseMessage"; + +//---------------------------------------------------------------------- + +GuildResponseMessage::GuildResponseMessage(NetworkId const &targetId, std::string const &guildName, std::string const &memberTitle) : +GameNetworkMessage(MessageType), +m_targetId(targetId), +m_guildName(guildName), +m_memberTitle(memberTitle) +{ + addVariable(m_targetId); + addVariable(m_guildName); + addVariable(m_memberTitle); +} + +// ---------------------------------------------------------------------- + +GuildResponseMessage::GuildResponseMessage(Archive::ReadIterator &source) : +GameNetworkMessage(MessageType), +m_targetId(), +m_guildName(), +m_memberTitle() +{ + addVariable(m_targetId); + addVariable(m_guildName); + addVariable(m_memberTitle); + unpack(source); +} + +// ---------------------------------------------------------------------- + +GuildResponseMessage::~GuildResponseMessage() +{ +} + +// ====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GuildResponseMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GuildResponseMessage.h new file mode 100644 index 00000000..38464b3b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/GuildResponseMessage.h @@ -0,0 +1,66 @@ +// ====================================================================== +// +// GuildResponseMessage.h +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_GuildResponseMessage_H +#define INCLUDED_GuildResponseMessage_H + +// ====================================================================== + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +// ====================================================================== + +class GuildResponseMessage: public GameNetworkMessage +{ +public: + + static const char * const MessageType; + + GuildResponseMessage(NetworkId const &targetId, std::string const &guildName, std::string const &memberTitle); + explicit GuildResponseMessage(Archive::ReadIterator &source); + virtual ~GuildResponseMessage(); + + NetworkId const &getTargetId() const; + std::string const &getGuildName() const; + std::string const &getMemberTitle() const; + +private: + GuildResponseMessage(); + GuildResponseMessage(GuildResponseMessage const &); + GuildResponseMessage &operator=(GuildResponseMessage const &); + +private: + Archive::AutoVariable m_targetId; + Archive::AutoVariable m_guildName; + Archive::AutoVariable m_memberTitle; +}; + +// ---------------------------------------------------------------------- + +inline NetworkId const &GuildResponseMessage::getTargetId() const +{ + return m_targetId.get(); +} + +// ---------------------------------------------------------------------- + +inline std::string const &GuildResponseMessage::getGuildName() const +{ + return m_guildName.get(); +} + +// ---------------------------------------------------------------------- + +inline std::string const &GuildResponseMessage::getMemberTitle() const +{ + return m_memberTitle.get(); +} + +// ====================================================================== + +#endif // _INCLUDED_GuildResponseMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/HeartBeat.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/HeartBeat.cpp new file mode 100644 index 00000000..6339b4e5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/HeartBeat.cpp @@ -0,0 +1,32 @@ +// HeartBeat.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/HeartBeat.h" + +//----------------------------------------------------------------------- + +HeartBeat::HeartBeat() : +GameNetworkMessage("HeartBeat") +{ +} + +//----------------------------------------------------------------------- + +HeartBeat::HeartBeat(Archive::ReadIterator & source) : +GameNetworkMessage("HeartBeat") +{ + unpack(source); +} + +//----------------------------------------------------------------------- + +HeartBeat::~HeartBeat() +{ +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/HeartBeat.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/HeartBeat.h new file mode 100644 index 00000000..b777ec07 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/HeartBeat.h @@ -0,0 +1,28 @@ +// HeartBeat.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. +// Author: Justin Randall + +#ifndef _INCLUDED_HeartBeat_H +#define _INCLUDED_HeartBeat_H + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +//----------------------------------------------------------------------- + +class HeartBeat : public GameNetworkMessage +{ +public: + HeartBeat(); + explicit HeartBeat(Archive::ReadIterator & source); + ~HeartBeat(); + +private: + HeartBeat & operator = (const HeartBeat & rhs); + HeartBeat(const HeartBeat & source); +}; + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_HeartBeat_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/HyperspaceMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/HyperspaceMessage.cpp new file mode 100644 index 00000000..c7213dfe --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/HyperspaceMessage.cpp @@ -0,0 +1,40 @@ +// ====================================================================== +// +// HyperspaceMessage.cpp +// +// Copyright 2004 Sony Online Entertainment +// tford +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/HyperspaceMessage.h" + +// ====================================================================== + +HyperspaceMessage::HyperspaceMessage(NetworkId const & ownerId) +: GameNetworkMessage("HyperspaceMessage") +, m_ownerId(ownerId) +{ + addVariable(m_ownerId); +} + +// ---------------------------------------------------------------------- + +HyperspaceMessage::HyperspaceMessage(Archive::ReadIterator & source) +: GameNetworkMessage("HyperspaceMessage") +, m_ownerId() +{ + addVariable(m_ownerId); + unpack(source); +} + +// ---------------------------------------------------------------------- + +NetworkId const & HyperspaceMessage::getOwnerId() const +{ + return m_ownerId.get(); +} + +// ====================================================================== + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/HyperspaceMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/HyperspaceMessage.h new file mode 100644 index 00000000..f0379126 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/HyperspaceMessage.h @@ -0,0 +1,37 @@ +// ====================================================================== +// +// HyperspaceMessage.h +// +// Copyright 2004 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _HyperspaceMessage_H_ +#define _HyperspaceMessage_H_ + +// ====================================================================== + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedMath/Transform.h" + +// ====================================================================== + +class HyperspaceMessage: public GameNetworkMessage +{ +public: + HyperspaceMessage(NetworkId const & ownerId); + explicit HyperspaceMessage(Archive::ReadIterator & source); + +public: + NetworkId const & getOwnerId() const; + +private: + Archive::AutoVariable m_ownerId; +}; + +// ====================================================================== + +#endif // _HyperspaceMessage_H_ + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ImageDesignChangeMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ImageDesignChangeMessage.cpp new file mode 100644 index 00000000..a4c05ea5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ImageDesignChangeMessage.cpp @@ -0,0 +1,222 @@ +// ImageDesignChangeMessage.cpp +// Copyright 2004, Sony Online Entertainment Inc., all rights reserved. + +//----------------------------------------------------------------------- + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ImageDesignChangeMessage.h" + +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +#include + +//----------------------------------------------------------------------- + +CONTROLLER_MESSAGE_ALLOW_FROM_CLIENT_IMPLEMENTATION(ImageDesignChangeMessage, CM_imageDesignerChange); + +//----------------------------------------------------------------------- + +ImageDesignChangeMessage::ImageDesignChangeMessage() : +MessageQueue::Data(), +m_designerId(), +m_recipientId(), +m_terminalId(), +m_newHairSet(false), +m_newHairAsset(), +m_hairCustomizationData(), +m_designType(DT_COSMETIC), +m_startingTime(0), +m_designerRequiredCredits(0), +m_recipientPaidCredits(0), +m_accepted(false), +m_origin(O_UNKNOWN), +m_morphChanges(), +m_indexChanges(), +m_holoEmote(), +m_bodySkillMod(0), +m_faceSkillMod(0), +m_markingsSkillMod(0), +m_hairSkillMod(0) +{ +} + +//----------------------------------------------------------------------- + +ImageDesignChangeMessage & ImageDesignChangeMessage::operator=(const ImageDesignChangeMessage & rhs) +{ + if (this == &rhs) + return *this; + + m_designerId = rhs.m_designerId; + m_recipientId = rhs.m_recipientId; + m_terminalId = rhs.m_terminalId; + m_newHairSet = rhs.m_newHairSet; + m_newHairAsset = rhs.m_newHairAsset; + m_hairCustomizationData = rhs.m_hairCustomizationData; + m_designType = rhs.m_designType; + m_startingTime = rhs.m_startingTime; + m_designerRequiredCredits = rhs.m_designerRequiredCredits; + m_recipientPaidCredits = rhs.m_recipientPaidCredits; + m_accepted = rhs.m_accepted; + m_origin = rhs.m_origin; + m_morphChanges = rhs.m_morphChanges; + m_indexChanges = rhs.m_indexChanges; + m_holoEmote = rhs.m_holoEmote; + m_bodySkillMod = rhs.m_bodySkillMod; + m_faceSkillMod = rhs.m_faceSkillMod; + m_markingsSkillMod = rhs.m_markingsSkillMod; + m_hairSkillMod = rhs.m_hairSkillMod; + + return *this; +} + +//----------------------------------------------------------------------- + +void ImageDesignChangeMessage::addMorphParameterChange(std::string const & name, float const value) +{ + m_morphChanges[name] = value; +} + +//----------------------------------------------------------------------- + +void ImageDesignChangeMessage::addIndexParameterChange(std::string const & name, int const value) +{ + m_indexChanges[name] = value; +} + +//----------------------------------------------------------------------- + +void ImageDesignChangeMessage::setMorphParameterChanges(std::map const & morphChanges) +{ + m_morphChanges = morphChanges; +} + +//----------------------------------------------------------------------- + +void ImageDesignChangeMessage::setIndexParameterChanges(std::map const & indexChanges) +{ + m_indexChanges = indexChanges; +} + +//----------------------------------------------------------------------- + +void ImageDesignChangeMessage::pack(MessageQueue::Data const * const data, Archive::ByteStream & target) +{ + const ImageDesignChangeMessage* const msg = safe_cast (data); + + if (msg) + { + Archive::put(target, msg->getDesignerId()); + Archive::put(target, msg->getRecipientId()); + Archive::put(target, msg->getTerminalId()); + Archive::put(target, msg->getNewHairSet()); + Archive::put(target, msg->getNewHairAsset()); + Archive::put(target, msg->getHairCustomizationData()); + Archive::put(target, msg->getDesignType()); + Archive::put(target, msg->getStartingTime()); + Archive::put(target, msg->getDesignerRequiredCredits()); + Archive::put(target, msg->getRecipientPaidCredits()); + Archive::put(target, msg->getAccepted()); + Archive::put(target, msg->getOrigin()); + Archive::put(target, msg->getBodySkillMod()); + Archive::put(target, msg->getFaceSkillMod()); + Archive::put(target, msg->getMarkingsSkillMod()); + Archive::put(target, msg->getHairSkillMod()); + + std::map const & morphs = msg->getMorphParameterChanges(); + int size = morphs.size(); + Archive::put(target, size); + for(std::map::const_iterator i = morphs.begin(); i != morphs.end(); ++i) + { + Archive::put(target, i->first); + Archive::put(target, i->second); + } + + std::map const & indexes = msg->getIndexParameterChanges(); + size = indexes.size(); + Archive::put(target, size); + for(std::map::const_iterator j = indexes.begin(); j != indexes.end(); ++j) + { + Archive::put(target, j->first); + Archive::put(target, j->second); + } + Archive::put(target, msg->getHoloEmote()); + } +} + +//----------------------------------------------------------------------- + +MessageQueue::Data* ImageDesignChangeMessage::unpack(Archive::ReadIterator & source) +{ + ImageDesignChangeMessage * msg = new ImageDesignChangeMessage; + + NetworkId tempId; + bool tempBool = false; + std::string tempStr; + int tempInt = 0; + time_t tempTime = 0; + + Archive::get(source, tempId); + msg->setDesignerId(tempId); + Archive::get(source, tempId); + msg->setRecipientId(tempId); + Archive::get(source, tempId); + msg->setTerminalId(tempId); + Archive::get(source, tempBool); + msg->setNewHairSet(tempBool); + Archive::get(source, tempStr); + msg->setNewHairAsset(tempStr); + Archive::get(source, tempStr); + msg->setHairCustomizationData(tempStr); + Archive::get(source, tempInt); + DesignType const designType = static_cast(tempInt); + msg->setDesignType(designType); + Archive::get(source, tempTime); + msg->setStartingTime(tempTime); + Archive::get(source, tempInt); + msg->setDesignerRequiredCredits(tempInt); + Archive::get(source, tempInt); + msg->setRecipientPaidCredits(tempInt); + Archive::get(source, tempBool); + msg->setAccepted(tempBool); + Archive::get(source, tempInt); + Origin const origin = static_cast(tempInt); + msg->setOrigin(origin); + Archive::get(source, tempInt); + msg->setBodySkillMod(tempInt); + Archive::get(source, tempInt); + msg->setFaceSkillMod(tempInt); + Archive::get(source, tempInt); + msg->setMarkingsSkillMod(tempInt); + Archive::get(source, tempInt); + msg->setHairSkillMod(tempInt); + + int size = 0; + Archive::get(source, size); + std::string name; + float value = 0; + for(int i = 0; i < size; ++i) + { + Archive::get(source, name); + Archive::get(source, value); + msg->addMorphParameterChange(name, value); + } + + Archive::get(source, size); + int value2 = 0; + for(int j = 0; j < size; ++j) + { + Archive::get(source, name); + Archive::get(source, value2); + msg->addIndexParameterChange(name, value2); + } + Archive::get(source, tempStr); + msg->setHoloEmote(tempStr); + return msg; +} + + +//====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ImageDesignChangeMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ImageDesignChangeMessage.h new file mode 100644 index 00000000..07c176e0 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ImageDesignChangeMessage.h @@ -0,0 +1,371 @@ +// ImageDesignChangeMessage.h +// Copyright 2004, Sony Online Entertainment Inc., all rights reserved. + +#ifndef _INCLUDED_ImageDesignChangeMessage_H +#define _INCLUDED_ImageDesignChangeMessage_H + +//----------------------------------------------------------------------- + +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; + +//----------------------------------------------------------------------- + +class ImageDesignChangeMessage : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + enum DesignType + { + DT_COSMETIC, + DT_PHYSICAL, + DT_STAT_MIGRATION, + DT_UNKNOWN + }; + + enum Origin + { + O_DESIGNER, + O_RECIPIENT, + O_SERVER, + O_UNKNOWN + }; + +public: + ImageDesignChangeMessage(); + ImageDesignChangeMessage & operator=(const ImageDesignChangeMessage & rhs); + + //accessors + NetworkId const & getDesignerId() const; + NetworkId const & getRecipientId() const; + NetworkId const & getTerminalId() const; + bool getNewHairSet() const; + std::string const & getNewHairAsset() const; + std::string const & getHairCustomizationData() const; + DesignType getDesignType() const; + time_t getStartingTime() const; + int getDesignerRequiredCredits() const; + int getRecipientPaidCredits() const; + bool getAccepted() const; + Origin getOrigin() const; + std::map const & getMorphParameterChanges () const; + std::map const & getIndexParameterChanges () const; + std::string const & getHoloEmote() const; + int getBodySkillMod() const; + int getFaceSkillMod() const; + int getMarkingsSkillMod() const; + int getHairSkillMod() const; + + //mutators + void setDesignerId(NetworkId const & designerId); + void setRecipientId(NetworkId const & recipientId); + void setTerminalId(NetworkId const & recipientId); + void setNewHairSet(bool changed); + void setNewHairAsset(std::string const & newAsset); + void setHairCustomizationData(std::string const & hairCustomizationData); + void setDesignType(DesignType const & designType); + void setStartingTime(time_t startingTime); + void setDesignerRequiredCredits(int credits); + void setRecipientPaidCredits(int credits); + void setAccepted(bool accepted); + void setOrigin(Origin const & origin); + void addMorphParameterChange(std::string const & name, float value); + void addIndexParameterChange(std::string const & name, int value); + void setMorphParameterChanges(std::map const & morphChanges); + void setIndexParameterChanges(std::map const & indexChanges); + void setHoloEmote(std::string const & holoEmote); + void setBodySkillMod(int skillMod); + void setFaceSkillMod(int skillMod); + void setMarkingsSkillMod(int skillMod); + void setHairSkillMod(int skillMod); + +private: + //disabled + ImageDesignChangeMessage(ImageDesignChangeMessage const & source); + +private: + NetworkId m_designerId; + NetworkId m_recipientId; + NetworkId m_terminalId; + bool m_newHairSet; + std::string m_newHairAsset; + std::string m_hairCustomizationData; + DesignType m_designType; + time_t m_startingTime; + int m_designerRequiredCredits; + int m_recipientPaidCredits; + bool m_accepted; + Origin m_origin; + std::map m_morphChanges; + std::map m_indexChanges; + std::string m_holoEmote; + int m_bodySkillMod; + int m_faceSkillMod; + int m_markingsSkillMod; + int m_hairSkillMod; +}; + +//----------------------------------------------------------------------- + +inline NetworkId const & ImageDesignChangeMessage::getDesignerId() const +{ + return m_designerId; +} + +//----------------------------------------------------------------------- + +inline NetworkId const & ImageDesignChangeMessage::getRecipientId() const +{ + return m_recipientId; +} + +//----------------------------------------------------------------------- + +inline NetworkId const & ImageDesignChangeMessage::getTerminalId() const +{ + return m_terminalId; +} + +//----------------------------------------------------------------------- + +inline bool ImageDesignChangeMessage::getNewHairSet() const +{ + return m_newHairSet; +} + +//----------------------------------------------------------------------- + +inline std::string const & ImageDesignChangeMessage::getNewHairAsset() const +{ + return m_newHairAsset; +} + +//----------------------------------------------------------------------- + +inline std::string const & ImageDesignChangeMessage::getHairCustomizationData() const +{ + return m_hairCustomizationData; +} + +//----------------------------------------------------------------------- + +inline ImageDesignChangeMessage::DesignType ImageDesignChangeMessage::getDesignType() const +{ + return m_designType; +} + +//----------------------------------------------------------------------- + +inline time_t ImageDesignChangeMessage::getStartingTime() const +{ + return m_startingTime; +} + +//----------------------------------------------------------------------- + +inline int ImageDesignChangeMessage::getDesignerRequiredCredits() const +{ + return m_designerRequiredCredits; +} + +//----------------------------------------------------------------------- + +inline int ImageDesignChangeMessage::getRecipientPaidCredits() const +{ + return m_recipientPaidCredits; +} + +//----------------------------------------------------------------------- + +inline bool ImageDesignChangeMessage::getAccepted() const +{ + return m_accepted; +} + +//----------------------------------------------------------------------- + +inline ImageDesignChangeMessage::Origin ImageDesignChangeMessage::getOrigin() const +{ + return m_origin; +} + +//----------------------------------------------------------------------- + +inline std::string const & ImageDesignChangeMessage::getHoloEmote() const +{ + return m_holoEmote; +} + + +//----------------------------------------------------------------------- + +inline int ImageDesignChangeMessage::getBodySkillMod() const +{ + return m_bodySkillMod; +} + +//----------------------------------------------------------------------- + +inline int ImageDesignChangeMessage::getFaceSkillMod() const +{ + return m_faceSkillMod; +} + +//----------------------------------------------------------------------- + +inline int ImageDesignChangeMessage::getMarkingsSkillMod() const +{ + return m_markingsSkillMod; +} + +//----------------------------------------------------------------------- + +inline int ImageDesignChangeMessage::getHairSkillMod() const +{ + return m_hairSkillMod; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setDesignerId(NetworkId const & designerId) +{ + m_designerId = designerId; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setRecipientId(NetworkId const & recipientId) +{ + m_recipientId = recipientId; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setTerminalId(NetworkId const & terminalId) +{ + m_terminalId = terminalId; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setNewHairSet(bool const changed) +{ + m_newHairSet = changed; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setNewHairAsset(std::string const & newAsset) +{ + m_newHairAsset = newAsset; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setHairCustomizationData(std::string const & hairCustomizationData) +{ + m_hairCustomizationData = hairCustomizationData; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setDesignType(DesignType const & designType) +{ + m_designType = designType; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setStartingTime(time_t const startingTime) +{ + m_startingTime = startingTime; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setDesignerRequiredCredits(int const credits) +{ + if(credits < 0) + m_designerRequiredCredits = 0; + m_designerRequiredCredits = credits; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setRecipientPaidCredits(int const credits) +{ + if(credits < 0) + m_recipientPaidCredits = 0; + m_recipientPaidCredits = credits; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setAccepted(bool const accepted) +{ + m_accepted = accepted; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setOrigin(ImageDesignChangeMessage::Origin const & origin) +{ + m_origin = origin; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setHoloEmote(std::string const & holoEmote) +{ + m_holoEmote = holoEmote; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setBodySkillMod(int const skillMod) +{ + m_bodySkillMod = skillMod; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setFaceSkillMod(int const skillMod) +{ + m_faceSkillMod = skillMod; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setMarkingsSkillMod(int const skillMod) +{ + m_markingsSkillMod = skillMod; +} + +//----------------------------------------------------------------------- + +inline void ImageDesignChangeMessage::setHairSkillMod(int const skillMod) +{ + m_hairSkillMod = skillMod; +} + +//----------------------------------------------------------------------- + +inline std::map const & ImageDesignChangeMessage::getMorphParameterChanges() const +{ + return m_morphChanges; +} + +//----------------------------------------------------------------------- + +inline std::map const & ImageDesignChangeMessage::getIndexParameterChanges() const +{ + return m_indexChanges; +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_ImageDesignChangeMessage_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ImageDesignStartMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ImageDesignStartMessage.cpp new file mode 100644 index 00000000..41f7ec04 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ImageDesignStartMessage.cpp @@ -0,0 +1,63 @@ +// ====================================================================== +// +// ImageDesignStartMessage.cpp +// +// Copyright 2002-2004 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/ImageDesignStartMessage.h" + +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +// ====================================================================== + +CONTROLLER_MESSAGE_IMPLEMENTATION(ImageDesignStartMessage, CM_imageDesignerStart); + +//---------------------------------------------------------------------- + +ImageDesignStartMessage::ImageDesignStartMessage(NetworkId const & designerId, NetworkId const & recipientId, NetworkId const & terminalId, std::string const & currentHoloEmote) : +MessageQueue::Data(), +m_designerId(designerId), +m_recipientId(recipientId), +m_terminalId(terminalId), +m_currentHoloEmote(currentHoloEmote) +{ +} + +//---------------------------------------------------------------------- + +void ImageDesignStartMessage::pack(const MessageQueue::Data * const data, Archive::ByteStream & target) +{ + ImageDesignStartMessage const * const message = safe_cast (data); + if(message) + { + Archive::put(target, message->getDesignerId()); + Archive::put(target, message->getRecipientId()); + Archive::put(target, message->getTerminalId()); + Archive::put(target, message->getCurrentHoloEmote()); + } +} + +//----------------------------------------------------------------------- + +MessageQueue::Data * ImageDesignStartMessage::unpack(Archive::ReadIterator & source) +{ + NetworkId designerId; + NetworkId recipientId; + NetworkId terminalId; + std::string currentHoloEmote; + + Archive::get(source, designerId); + Archive::get(source, recipientId); + Archive::get(source, terminalId); + Archive::get(source, currentHoloEmote); + + return new ImageDesignStartMessage(designerId, recipientId, terminalId, currentHoloEmote); +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ImageDesignStartMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ImageDesignStartMessage.h new file mode 100644 index 00000000..bfe11d94 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/ImageDesignStartMessage.h @@ -0,0 +1,74 @@ +// ====================================================================== +// +// ImageDesignStartMessage.h +// +// Copyright 2002-2004 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _ImageDesignStartMessage_H +#define _ImageDesignStartMessage_H + +//----------------------------------------------------------------------- + +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +//----------------------------------------------------------------------- + +class ImageDesignStartMessage : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + ImageDesignStartMessage(NetworkId const & designerId, NetworkId const & recipientId, NetworkId const & terminalId, std::string const & currentHoloEmote); + +public: + NetworkId const & getDesignerId() const; + NetworkId const & getRecipientId() const; + NetworkId const & getTerminalId() const; + std::string const & getCurrentHoloEmote() const; + +private: +//disabled + ImageDesignStartMessage(ImageDesignStartMessage const & source); + +private: + NetworkId m_designerId; + NetworkId m_recipientId; + NetworkId m_terminalId; + std::string m_currentHoloEmote; +}; + +// ---------------------------------------------------------------------- + +inline NetworkId const & ImageDesignStartMessage::getDesignerId() const +{ + return m_designerId; +} + +// ---------------------------------------------------------------------- + +inline NetworkId const & ImageDesignStartMessage::getRecipientId() const +{ + return m_recipientId; +} + +// ---------------------------------------------------------------------- + +inline NetworkId const & ImageDesignStartMessage::getTerminalId() const +{ + return m_terminalId; +} + +// ---------------------------------------------------------------------- + +inline std::string const & ImageDesignStartMessage::getCurrentHoloEmote() const +{ + return m_currentHoloEmote; +} + +// ---------------------------------------------------------------------- + +#endif // _ImageDesignStartMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IncubatorCommitMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IncubatorCommitMessage.cpp new file mode 100644 index 00000000..0628a444 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IncubatorCommitMessage.cpp @@ -0,0 +1,350 @@ +// ====================================================================== +// +// IncubatorCommitMessage.cpp +// +// Copyright 2007 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/IncubatorCommitMessage.h" + +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +// ====================================================================== + +CONTROLLER_MESSAGE_ALLOW_FROM_CLIENT_IMPLEMENTATION(IncubatorCommitMessage, CM_incubatorCommit); + +//---------------------------------------------------------------------- + +IncubatorCommitMessage::IncubatorCommitMessage() : +MessageQueue::Data(), +m_committed(true), +m_terminalId(), +m_slot1Id(), +m_slot2Id(), +m_slot3Id(), +m_slot4Id(), +m_initialPointsSurvival(0), +m_initialPointsBeastialResilience(0), +m_initialPointsCunning(0), +m_initialPointsIntelligence(0), +m_initialPointsAggression(0), +m_initialPointsHuntersInstinct(0), +m_totalPointsSurvival(0), +m_totalPointsBeastialResilience(0), +m_totalPointsCunning(0), +m_totalPointsIntelligence(0), +m_totalPointsAggression(0), +m_totalPointsHuntersInstinct(0), +m_temperatureGauge(0), +m_nutrientGauge(0), +m_newCreatureColorIndex(0) +{ + +} + +IncubatorCommitMessage::IncubatorCommitMessage( + bool committed, + NetworkId const & terminalId, + NetworkId const & slot1Id, + NetworkId const & slot2Id, + NetworkId const & slot3Id, + NetworkId const & slot4Id, + int initialPointsSurvival, + int initialPointsBeastialResilience, + int initialPointsCunning, + int initialPointsIntelligence, + int initialPointsAggression, + int initialPointsHuntersInstinct, + int totalPointsSurvival, + int totalPointsBeastialResilience, + int totalPointsCunning, + int totalPointsIntelligence, + int totalPointsAggression, + int totalPointsHuntersInstinct, + int temperatureGauge, + int nutrientGauge, + int newCreatureColorIndex +) : +MessageQueue::Data(), +m_committed(committed), +m_terminalId(terminalId), +m_slot1Id(slot1Id), +m_slot2Id(slot2Id), +m_slot3Id(slot3Id), +m_slot4Id(slot4Id), +m_initialPointsSurvival(initialPointsSurvival), +m_initialPointsBeastialResilience(initialPointsBeastialResilience), +m_initialPointsCunning(initialPointsCunning), +m_initialPointsIntelligence(initialPointsIntelligence), +m_initialPointsAggression(initialPointsAggression), +m_initialPointsHuntersInstinct(initialPointsHuntersInstinct), +m_totalPointsSurvival(totalPointsSurvival), +m_totalPointsBeastialResilience(totalPointsBeastialResilience), +m_totalPointsCunning(totalPointsCunning), +m_totalPointsIntelligence(totalPointsIntelligence), +m_totalPointsAggression(totalPointsAggression), +m_totalPointsHuntersInstinct(totalPointsHuntersInstinct), +m_temperatureGauge(temperatureGauge), +m_nutrientGauge(nutrientGauge), +m_newCreatureColorIndex(newCreatureColorIndex) +{ +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setTerminalId(NetworkId const& val) +{ + m_terminalId = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setSlot1Id(NetworkId const& val) +{ + m_slot1Id = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setSlot2Id(NetworkId const& val) +{ + m_slot2Id = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setSlot3Id(NetworkId const& val) +{ + m_slot3Id = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setSlot4Id(NetworkId const& val) +{ + m_slot4Id = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setCommitted(bool val) +{ + m_committed = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setInitialPointsSurvival(int val) +{ + m_initialPointsSurvival = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setInitialPointsBeastialResilience(int val) +{ + m_initialPointsBeastialResilience = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setInitialPointsCunning(int val) +{ + m_initialPointsCunning = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setInitialPointsIntelligence(int val) +{ + m_initialPointsIntelligence = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setInitialPointsAggression(int val) +{ + m_initialPointsAggression = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setInitialPointsHuntersInstinct(int val) +{ + m_initialPointsHuntersInstinct = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setTotalPointsSurvival(int val) +{ + m_totalPointsSurvival = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setTotalPointsBeastialResilience(int val) +{ + m_totalPointsBeastialResilience = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setTotalPointsCunning(int val) +{ + m_totalPointsCunning = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setTotalPointsIntelligence(int val) +{ + m_totalPointsIntelligence = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setTotalPointsAggression(int val) +{ + m_totalPointsAggression = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setTotalPointsHuntersInstinct(int val) +{ + m_totalPointsHuntersInstinct = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setTemperatureGauge(int val) +{ + m_temperatureGauge = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::setNutrientGauge(int val) +{ + m_nutrientGauge = val; +} + +void IncubatorCommitMessage::setNewCreatureColorIndex(int val) +{ + m_newCreatureColorIndex = val; +} + +//---------------------------------------------------------------------- + +void IncubatorCommitMessage::pack(const MessageQueue::Data * const data, Archive::ByteStream & target) +{ + IncubatorCommitMessage const * const message = safe_cast (data); + if(message) + { + Archive::put(target, message->getCommitted()); + Archive::put(target, message->getTerminalId()); + Archive::put(target, message->getSlot1Id()); + Archive::put(target, message->getSlot2Id()); + Archive::put(target, message->getSlot3Id()); + Archive::put(target, message->getSlot4Id()); + Archive::put(target,message->getInitialPointsSurvival()); + Archive::put(target,message->getInitialPointsBeastialResilience()); + Archive::put(target,message->getInitialPointsCunning()); + Archive::put(target,message->getInitialPointsIntelligence()); + Archive::put(target,message->getInitialPointsAggression()); + Archive::put(target,message->getInitialPointsHuntersInstinct()); + Archive::put(target,message->getTotalPointsSurvival()); + Archive::put(target,message->getTotalPointsBeastialResilience()); + Archive::put(target,message->getTotalPointsCunning()); + Archive::put(target,message->getTotalPointsIntelligence()); + Archive::put(target,message->getTotalPointsAggression()); + Archive::put(target,message->getTotalPointsHuntersInstinct()); + Archive::put(target,message->getTemperatureGauge()); + Archive::put(target,message->getNutrientGauge()); + Archive::put(target,message->getNewCreatureColorIndex()); + } +} + +//----------------------------------------------------------------------- + +MessageQueue::Data * IncubatorCommitMessage::unpack(Archive::ReadIterator & source) +{ + NetworkId terminalId; + NetworkId slot1Id; + NetworkId slot2Id; + NetworkId slot3Id; + NetworkId slot4Id; + bool committed; + + int initialPointsSurvival; + int initialPointsBeastialResilience; + int initialPointsCunning; + int initialPointsIntelligence; + int initialPointsAggression; + int initialPointsHuntersInstinct; + int totalPointsSurvival; + int totalPointsBeastialResilience; + int totalPointsCunning; + int totalPointsIntelligence; + int totalPointsAggression; + int totalPointsHuntersInstinct; + int temperatureGauge; + int nutrientGauge; + int newCreatureColorIndex; + + + Archive::get(source, committed); + Archive::get(source, terminalId); + Archive::get(source, slot1Id); + Archive::get(source, slot2Id); + Archive::get(source, slot3Id); + Archive::get(source, slot4Id); + + Archive::get(source, initialPointsSurvival); + Archive::get(source, initialPointsBeastialResilience); + Archive::get(source, initialPointsCunning); + Archive::get(source, initialPointsIntelligence); + Archive::get(source, initialPointsAggression); + Archive::get(source, initialPointsHuntersInstinct); + Archive::get(source, totalPointsSurvival); + Archive::get(source, totalPointsBeastialResilience); + Archive::get(source, totalPointsCunning); + Archive::get(source, totalPointsIntelligence); + Archive::get(source, totalPointsAggression); + Archive::get(source, totalPointsHuntersInstinct); + Archive::get(source, temperatureGauge); + Archive::get(source, nutrientGauge); + Archive::get(source, newCreatureColorIndex); + + return new IncubatorCommitMessage( + committed, + terminalId, + slot1Id, + slot2Id, + slot3Id, + slot4Id, + initialPointsSurvival, + initialPointsBeastialResilience, + initialPointsCunning, + initialPointsIntelligence, + initialPointsAggression, + initialPointsHuntersInstinct, + totalPointsSurvival, + totalPointsBeastialResilience, + totalPointsCunning, + totalPointsIntelligence, + totalPointsAggression, + totalPointsHuntersInstinct, + temperatureGauge, + nutrientGauge, + newCreatureColorIndex + ); +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IncubatorCommitMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IncubatorCommitMessage.h new file mode 100644 index 00000000..349b8e22 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IncubatorCommitMessage.h @@ -0,0 +1,272 @@ +// ====================================================================== +// +// IncubatorCommitMessage.h +// +// Copyright 2007 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _IncubatorCommitMessage_H +#define _IncubatorCommitMessage_H + +//----------------------------------------------------------------------- +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +//----------------------------------------------------------------------- + +class IncubatorCommitMessage : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + IncubatorCommitMessage(); + IncubatorCommitMessage( + bool committed, + NetworkId const & terminalId, + NetworkId const & slot1Id, + NetworkId const & slot2Id, + NetworkId const & slot3Id, + NetworkId const & slot4Id, + int initialPointsSurvival, + int initialPointsBeastialResilience, + int initialPointsCunning, + int initialPointsIntelligence, + int initialPointsAggression, + int initialPointsHuntersInstinct, + int totalPointsSurvival, + int totalPointsBeastialResilience, + int totalPointsCunning, + int totalPointsIntelligence, + int totalPointsAggression, + int totalPointsHuntersInstinct, + int temperatureGauge, + int nutrientGauge, + int newCreatureColorIndex + ); + +public: + NetworkId const & getTerminalId() const; + NetworkId const & getSlot1Id() const; + NetworkId const & getSlot2Id() const; + NetworkId const & getSlot3Id() const; + NetworkId const & getSlot4Id() const; + bool getCommitted() const; + int getInitialPointsSurvival() const; + int getInitialPointsBeastialResilience() const; + int getInitialPointsCunning() const; + int getInitialPointsIntelligence() const; + int getInitialPointsAggression() const; + int getInitialPointsHuntersInstinct() const; + int getTotalPointsSurvival() const; + int getTotalPointsBeastialResilience() const; + int getTotalPointsCunning() const; + int getTotalPointsIntelligence() const; + int getTotalPointsAggression() const; + int getTotalPointsHuntersInstinct() const; + int getTemperatureGauge() const; + int getNutrientGauge() const; + int getNewCreatureColorIndex() const; + + void setTerminalId(NetworkId const& val); + void setCommitted(bool val); + void setSlot1Id(NetworkId const& val); + void setSlot2Id(NetworkId const& val); + void setSlot3Id(NetworkId const& val); + void setSlot4Id(NetworkId const& val); + void setInitialPointsSurvival(int val); + void setInitialPointsBeastialResilience(int val); + void setInitialPointsCunning(int val); + void setInitialPointsIntelligence(int val); + void setInitialPointsAggression(int val); + void setInitialPointsHuntersInstinct(int val); + void setTotalPointsSurvival(int val); + void setTotalPointsBeastialResilience(int val); + void setTotalPointsCunning(int val); + void setTotalPointsIntelligence(int val); + void setTotalPointsAggression(int val); + void setTotalPointsHuntersInstinct(int val); + void setTemperatureGauge(int val); + void setNutrientGauge(int val); + void setNewCreatureColorIndex(int val); + +private: +//disabled + IncubatorCommitMessage(IncubatorCommitMessage const & source); + +private: + bool m_committed; + NetworkId m_terminalId; + + NetworkId m_slot1Id; + NetworkId m_slot2Id; + NetworkId m_slot3Id; + NetworkId m_slot4Id; + + int m_initialPointsSurvival; + int m_initialPointsBeastialResilience; + int m_initialPointsCunning; + int m_initialPointsIntelligence; + int m_initialPointsAggression; + int m_initialPointsHuntersInstinct; + + int m_totalPointsSurvival; + int m_totalPointsBeastialResilience; + int m_totalPointsCunning; + int m_totalPointsIntelligence; + int m_totalPointsAggression; + int m_totalPointsHuntersInstinct; + + int m_temperatureGauge; + int m_nutrientGauge; + + int m_newCreatureColorIndex; +}; + +// ---------------------------------------------------------------------- + +inline NetworkId const & IncubatorCommitMessage::getTerminalId() const +{ + return m_terminalId; +} + +// ---------------------------------------------------------------------- + +inline NetworkId const & IncubatorCommitMessage::getSlot1Id() const +{ + return m_slot1Id; +} + +// ---------------------------------------------------------------------- + +inline NetworkId const & IncubatorCommitMessage::getSlot2Id() const +{ + return m_slot2Id; +} + +// ---------------------------------------------------------------------- + +inline NetworkId const & IncubatorCommitMessage::getSlot3Id() const +{ + return m_slot3Id; +} + +// ---------------------------------------------------------------------- + +inline NetworkId const & IncubatorCommitMessage::getSlot4Id() const +{ + return m_slot4Id; +} + +// ---------------------------------------------------------------------- + +inline bool IncubatorCommitMessage::getCommitted() const +{ + return m_committed; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorCommitMessage::getInitialPointsSurvival() const +{ + return m_initialPointsSurvival; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorCommitMessage::getInitialPointsBeastialResilience() const +{ + return m_initialPointsBeastialResilience; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorCommitMessage::getInitialPointsCunning() const +{ + return m_initialPointsCunning; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorCommitMessage::getInitialPointsIntelligence() const +{ + return m_initialPointsIntelligence; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorCommitMessage::getInitialPointsAggression() const +{ + return m_initialPointsAggression; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorCommitMessage::getInitialPointsHuntersInstinct() const +{ + return m_initialPointsHuntersInstinct; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorCommitMessage::getTotalPointsSurvival() const +{ + return m_totalPointsSurvival; +} + +// ---------------------------------------------------------------------- +inline int IncubatorCommitMessage::getTotalPointsBeastialResilience() const +{ + return m_totalPointsBeastialResilience; +} + +// ---------------------------------------------------------------------- +inline int IncubatorCommitMessage::getTotalPointsCunning() const +{ + return m_totalPointsCunning; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorCommitMessage::getTotalPointsIntelligence() const +{ + return m_totalPointsIntelligence; +} + +// ---------------------------------------------------------------------- +inline int IncubatorCommitMessage::getTotalPointsAggression() const +{ + return m_totalPointsAggression; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorCommitMessage::getTotalPointsHuntersInstinct() const +{ + return m_totalPointsHuntersInstinct; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorCommitMessage::getTemperatureGauge() const +{ + return m_temperatureGauge; // 0 -> 10 +} + +// ---------------------------------------------------------------------- + +inline int IncubatorCommitMessage::getNutrientGauge() const +{ + return m_nutrientGauge; // 0 -> 10 +} + +// ---------------------------------------------------------------------- + +inline int IncubatorCommitMessage::getNewCreatureColorIndex() const +{ + return m_newCreatureColorIndex; +} + +// ---------------------------------------------------------------------- +#endif + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IncubatorStartMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IncubatorStartMessage.cpp new file mode 100644 index 00000000..47109e97 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IncubatorStartMessage.cpp @@ -0,0 +1,162 @@ +// ====================================================================== +// +// IncubatorStartMessage.cpp +// +// Copyright 2007 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/IncubatorStartMessage.h" + +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +#include + +// ====================================================================== + +CONTROLLER_MESSAGE_IMPLEMENTATION(IncubatorStartMessage, CM_incubatorStart); + +//---------------------------------------------------------------------- + +IncubatorStartMessage::IncubatorStartMessage( + int sessionNumber, + NetworkId const & playerId, + NetworkId const & terminalId, + int powerGauge, + int initialPointsSurvival, + int initialPointsBeastialResilience, + int initialPointsCunning, + int initialPointsIntelligence, + int initialPointsAggression, + int initialPointsHuntersInstinct, + int temperatureGauge, + int nutrientGauge, + int initialCreatureColorIndex, + std::string const& creatureTemplateName + ) : +MessageQueue::Data(), +m_sessionNumber(sessionNumber), +m_playerId(playerId), +m_terminalId(terminalId), +m_powerGauge(powerGauge), +m_initialPointsSurvival(initialPointsSurvival), +m_initialPointsBeastialResilience(initialPointsBeastialResilience), +m_initialPointsCunning(initialPointsCunning), +m_initialPointsIntelligence(initialPointsIntelligence), +m_initialPointsAggression(initialPointsAggression), +m_initialPointsHuntersInstinct(initialPointsHuntersInstinct), +m_temperatureGauge(temperatureGauge), +m_nutrientGauge(nutrientGauge), +m_initialCreatureColorIndex(initialCreatureColorIndex), +m_creatureTemplateName(creatureTemplateName) +{ +} + +//---------------------------------------------------------------------- + +void IncubatorStartMessage::pack(const MessageQueue::Data * const data, Archive::ByteStream & target) +{ + IncubatorStartMessage const * const message = safe_cast (data); + if(message) + { + Archive::put(target, message->getSessionNumber()); + Archive::put(target, message->getPlayerId()); + Archive::put(target, message->getTerminalId()); + Archive::put(target, message->getPowerGauge()); + Archive::put(target, message->getInitialPointsSurvival()); + Archive::put(target, message->getInitialPointsBeastialResilience()); + Archive::put(target, message->getInitialPointsCunning()); + Archive::put(target, message->getInitialPointsIntelligence()); + Archive::put(target, message->getInitialPointsAggression()); + Archive::put(target, message->getInitialPointsHuntersInstinct()); + Archive::put(target, message->getTemperatureGauge()); + Archive::put(target, message->getNutrientGauge() ); + Archive::put(target, message->getInitialCreatureColorIndex() ); + Archive::put(target, message->getCreatureTemplateName()); + } +} + +//----------------------------------------------------------------------- + +MessageQueue::Data * IncubatorStartMessage::unpack(Archive::ReadIterator & source) +{ + int sessionNumber; + NetworkId playerId; + NetworkId terminalId; + int powerGauge; + int initialPointsSurvival; + int initialPointsBeastialResilience; + int initialPointsCunning; + int initialPointsIntelligence; + int initialPointsAggression; + int initialPointsHuntersInstinct; + int temperatureGauge; + int nutrientGauge; + int initialCreatureColorIndex; + std::string creatureTemplateName; + + Archive::get(source, sessionNumber); + Archive::get(source, playerId); + Archive::get(source, terminalId); + Archive::get(source, powerGauge); + Archive::get(source, initialPointsSurvival); + Archive::get(source, initialPointsBeastialResilience); + Archive::get(source, initialPointsCunning); + Archive::get(source, initialPointsIntelligence); + Archive::get(source, initialPointsAggression); + Archive::get(source, initialPointsHuntersInstinct); + Archive::get(source, temperatureGauge); + Archive::get(source, nutrientGauge); + Archive::get(source, initialCreatureColorIndex); + Archive::get(source, creatureTemplateName); + + return new IncubatorStartMessage( + sessionNumber, + playerId, + terminalId, + powerGauge, + initialPointsSurvival, + initialPointsBeastialResilience, + initialPointsCunning, + initialPointsIntelligence, + initialPointsAggression, + initialPointsHuntersInstinct, + temperatureGauge, + nutrientGauge, + initialCreatureColorIndex, + creatureTemplateName + ); +} + +//---------------------------------------------------------------------- + +void IncubatorStartMessage::getStringRepresentation(std::string& buff) const +{ + char tmp[512]; + + sprintf(tmp, + "%d %s %s %d %d %d %d %d %d %d %d %d %d %s ", + getSessionNumber(), + getPlayerId().getValueString().c_str(), + getTerminalId().getValueString().c_str(), + getPowerGauge(), + getInitialPointsSurvival(), + getInitialPointsBeastialResilience(), + getInitialPointsCunning(), + getInitialPointsIntelligence(), + getInitialPointsAggression(), + getInitialPointsHuntersInstinct(), + getTemperatureGauge(), + getNutrientGauge(), + getInitialCreatureColorIndex(), + getCreatureTemplateName().c_str() + ); + + buff = tmp; +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IncubatorStartMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IncubatorStartMessage.h new file mode 100644 index 00000000..ca8b156d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IncubatorStartMessage.h @@ -0,0 +1,180 @@ +// ====================================================================== +// +// IncubatorStartMessage.h +// +// Copyright 2007 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _IncubatorStartMessage_H +#define _IncubatorStartMessage_H + +//----------------------------------------------------------------------- +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +//----------------------------------------------------------------------- + +class IncubatorStartMessage : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + IncubatorStartMessage( + int sessionNumber, + NetworkId const & playerId, + NetworkId const & terminalId, + int powerGauge, + int initialPointsSurvival, + int initialPointsBeastialResilience, + int initialPointsCunning, + int initialPointsIntelligence, + int initialPointsAggression, + int initialPointsHuntersInstinct, + int temperatureGauge, + int nutrientGauge, + int initialCreatureColorIndex, + std::string const& creatureTemplateName + ); + +public: + int getSessionNumber() const; + NetworkId const & getPlayerId() const; + NetworkId const & getTerminalId() const; + int getPowerGauge() const; + int getInitialPointsSurvival() const; + int getInitialPointsBeastialResilience() const; + int getInitialPointsCunning() const; + int getInitialPointsIntelligence() const; + int getInitialPointsAggression() const; + int getInitialPointsHuntersInstinct() const; + int getTemperatureGauge() const; + int getNutrientGauge() const; + int getInitialCreatureColorIndex() const; + std::string const& getCreatureTemplateName() const; + + void getStringRepresentation(std::string& buff) const; + +private: +//disabled + IncubatorStartMessage(IncubatorStartMessage const & source); + +private: + int m_sessionNumber; // 1-3 + NetworkId m_playerId; + NetworkId m_terminalId; + int m_powerGauge; // 0 -> 1000 + int m_initialPointsSurvival; + int m_initialPointsBeastialResilience; + int m_initialPointsCunning; + int m_initialPointsIntelligence; + int m_initialPointsAggression; + int m_initialPointsHuntersInstinct; + int m_temperatureGauge; // 0 -> 10 + int m_nutrientGauge; // 0 -> 10 + int m_initialCreatureColorIndex; + std::string m_creatureTemplateName; +}; + +// ---------------------------------------------------------------------- + +inline NetworkId const & IncubatorStartMessage::getPlayerId() const +{ + return m_playerId; +} + +// ---------------------------------------------------------------------- + +inline NetworkId const & IncubatorStartMessage::getTerminalId() const +{ + return m_terminalId; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorStartMessage::getSessionNumber() const +{ + return m_sessionNumber; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorStartMessage::getPowerGauge() const +{ + return m_powerGauge; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorStartMessage::getInitialPointsSurvival() const +{ + return m_initialPointsSurvival; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorStartMessage::getInitialPointsBeastialResilience() const +{ + return m_initialPointsBeastialResilience; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorStartMessage::getInitialPointsCunning() const +{ + return m_initialPointsCunning; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorStartMessage::getInitialPointsIntelligence() const +{ + return m_initialPointsIntelligence; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorStartMessage::getInitialPointsAggression() const +{ + return m_initialPointsAggression; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorStartMessage::getInitialPointsHuntersInstinct() const +{ + return m_initialPointsHuntersInstinct; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorStartMessage::getTemperatureGauge() const +{ + return m_temperatureGauge; // 0 -> 10 +} + +// ---------------------------------------------------------------------- + +inline int IncubatorStartMessage::getNutrientGauge() const +{ + return m_nutrientGauge; // 0 -> 10 +} + +// ---------------------------------------------------------------------- + +inline std::string const& IncubatorStartMessage::getCreatureTemplateName() const +{ + return m_creatureTemplateName; +} + +// ---------------------------------------------------------------------- + +inline int IncubatorStartMessage::getInitialCreatureColorIndex() const +{ + return m_initialCreatureColorIndex; +} + +// ---------------------------------------------------------------------- + +#endif + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IsVendorOwnerMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IsVendorOwnerMessage.cpp new file mode 100644 index 00000000..4be6d19a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IsVendorOwnerMessage.cpp @@ -0,0 +1,35 @@ +// ====================================================================== +// +// IsVendorOwnerMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/IsVendorOwnerMessage.h" + +// ====================================================================== + +IsVendorOwnerMessage::IsVendorOwnerMessage(NetworkId containerId) : + GameNetworkMessage("IsVendorOwnerMessage"), + m_containerId(containerId) +{ + AutoByteStream::addVariable(m_containerId); +} + +// ====================================================================== + +IsVendorOwnerMessage::IsVendorOwnerMessage(Archive::ReadIterator &source) : + GameNetworkMessage("IsVendorOwnerMessage"), + m_containerId() +{ + AutoByteStream::addVariable(m_containerId); + unpack(source); +} + +// ====================================================================== + +IsVendorOwnerMessage::~IsVendorOwnerMessage() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IsVendorOwnerMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IsVendorOwnerMessage.h new file mode 100644 index 00000000..2bbabf4c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IsVendorOwnerMessage.h @@ -0,0 +1,50 @@ +// ====================================================================== +// +// IsVendorOwnerMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _IsVendorOwnerMessage_H +#define _IsVendorOwnerMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedFoundation/Tag.h" + +//----------------------------------------------------------------------- + +class IsVendorOwnerMessage : public GameNetworkMessage +{ +public: + + IsVendorOwnerMessage(NetworkId containerId); + explicit IsVendorOwnerMessage(Archive::ReadIterator &source); + + ~IsVendorOwnerMessage(); + +public: // methods + + NetworkId getContainerId() const; + +public: // types + +private: + Archive::AutoVariable m_containerId; +}; + +// ---------------------------------------------------------------------- + +inline NetworkId IsVendorOwnerMessage::getContainerId() const +{ + return m_containerId.get(); +} + +// ---------------------------------------------------------------------- + +#endif // _IsVendorOwnerMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IsVendorOwnerResponseMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IsVendorOwnerResponseMessage.cpp new file mode 100644 index 00000000..3fa8eaf9 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IsVendorOwnerResponseMessage.cpp @@ -0,0 +1,61 @@ +// ====================================================================== +// +// IsVendorOwnerResponseMessage.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/IsVendorOwnerResponseMessage.h" + +// ====================================================================== + +const char * const IsVendorOwnerResponseMessage::MessageType = "IsVendorOwnerResponseMessage"; + +//---------------------------------------------------------------------- + +IsVendorOwnerResponseMessage::IsVendorOwnerResponseMessage( + const NetworkId &containerId, + const std::string &marketName, + IsVendorOwnerResponseMessage::VendorOwnerResult ownerResult, + AuctionResult result, + uint16 maxPageSize +) : + GameNetworkMessage(MessageType), + m_ownerResult(static_cast(ownerResult)), + m_result(result), + m_containerId(containerId), + m_marketName(marketName), + m_maxPageSize(maxPageSize) +{ + AutoByteStream::addVariable(m_ownerResult); + AutoByteStream::addVariable(m_result); + AutoByteStream::addVariable(m_containerId); + AutoByteStream::addVariable(m_marketName); + AutoByteStream::addVariable(m_maxPageSize); +} + +// ====================================================================== + +IsVendorOwnerResponseMessage::IsVendorOwnerResponseMessage(Archive::ReadIterator &source) : + GameNetworkMessage(MessageType), + m_ownerResult(0), + m_result(0), + m_containerId(), + m_marketName(), + m_maxPageSize(0) +{ + AutoByteStream::addVariable(m_ownerResult); + AutoByteStream::addVariable(m_result); + AutoByteStream::addVariable(m_containerId); + AutoByteStream::addVariable(m_marketName); + AutoByteStream::addVariable(m_maxPageSize); + unpack(source); +} + +// ====================================================================== + +IsVendorOwnerResponseMessage::~IsVendorOwnerResponseMessage() +{ +} diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IsVendorOwnerResponseMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IsVendorOwnerResponseMessage.h new file mode 100644 index 00000000..c51cec51 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/IsVendorOwnerResponseMessage.h @@ -0,0 +1,95 @@ +// ====================================================================== +// +// IsVendorOwnerResponseMessage.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _IsVendorOwnerResponseMessage_H +#define _IsVendorOwnerResponseMessage_H + +//----------------------------------------------------------------------- + +#include "Archive/AutoDeltaByteStream.h" +#include "sharedNetworkMessages/AuctionErrorCodes.h" +#include "sharedNetworkMessages/GameNetworkMessage.h" +#include "sharedFoundation/NetworkIdArchive.h" + +//----------------------------------------------------------------------- + +class IsVendorOwnerResponseMessage : public GameNetworkMessage +{ +public: + + enum VendorOwnerResult + { + vor_IsOwner, + vor_IsNotOwner, + vor_HasNoOwner + }; + + static const char * const MessageType; + + IsVendorOwnerResponseMessage(const NetworkId &containerId, const std::string &marketName, VendorOwnerResult ownerResult, AuctionResult result, uint16 maxPageSize); + explicit IsVendorOwnerResponseMessage(Archive::ReadIterator &source); + + ~IsVendorOwnerResponseMessage(); + +public: // methods + + VendorOwnerResult getOwnerResult () const; + AuctionResult getResult () const; + const NetworkId & getContainerId () const; + const std::string & getMarketName () const; + uint16 getMaxPageSize () const; //returns the maximum size that a queried page will return + +public: // types + +private: + Archive::AutoVariable m_ownerResult; + Archive::AutoVariable m_result; + Archive::AutoVariable m_containerId; + Archive::AutoVariable m_marketName; + Archive::AutoVariable m_maxPageSize; +}; + +// ---------------------------------------------------------------------- + +inline IsVendorOwnerResponseMessage::VendorOwnerResult IsVendorOwnerResponseMessage::getOwnerResult() const +{ + return static_cast(m_ownerResult.get()); +} + +// ---------------------------------------------------------------------- + +inline AuctionResult IsVendorOwnerResponseMessage::getResult() const +{ + return static_cast(m_result.get()); +} + +// ---------------------------------------------------------------------- + +inline const NetworkId & IsVendorOwnerResponseMessage::getContainerId() const +{ + return m_containerId.get(); +} + +//---------------------------------------------------------------------- + +inline const std::string & IsVendorOwnerResponseMessage::getMarketName () const +{ + return m_marketName.get (); +} + +//---------------------------------------------------------------------- + +inline uint16 IsVendorOwnerResponseMessage::getMaxPageSize () const +{ + return m_maxPageSize.get (); +} + +// ---------------------------------------------------------------------- + +#endif // _IsVendorOwnerResponseMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/LogoutMessage.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/LogoutMessage.cpp new file mode 100644 index 00000000..35c89d98 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/LogoutMessage.cpp @@ -0,0 +1,34 @@ +// ====================================================================== +// +// LogoutMessage.cpp +// +// Copyright 2003 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "LogoutMessage.h" + +// ====================================================================== + +LogoutMessage::LogoutMessage() : + GameNetworkMessage("LogoutMessage") +{ +} + +// ---------------------------------------------------------------------- + +LogoutMessage::LogoutMessage(Archive::ReadIterator & source) : + GameNetworkMessage("LogoutMessage") +{ + unpack(source); +} + +// ---------------------------------------------------------------------- + +LogoutMessage::~LogoutMessage() +{ +} + +// ====================================================================== + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/LogoutMessage.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/LogoutMessage.h new file mode 100644 index 00000000..4f3914bb --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/LogoutMessage.h @@ -0,0 +1,33 @@ +// ====================================================================== +// +// LogoutMessage.h +// +// Copyright 2003 Sony Online Entertainment +// +// ====================================================================== + +#ifndef _INCLUDED_LogoutMessage_H +#define _INCLUDED_LogoutMessage_H + +// ====================================================================== + +#include "sharedNetworkMessages/GameNetworkMessage.h" + +// ====================================================================== + +class LogoutMessage : public GameNetworkMessage +{ +public: + LogoutMessage(); + LogoutMessage(Archive::ReadIterator &source); + ~LogoutMessage(); + +private: + LogoutMessage(LogoutMessage const &); + LogoutMessage &operator=(LogoutMessage const &); +}; + +// ====================================================================== + +#endif // _INCLUDED_LogoutMessage_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MapLocation.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MapLocation.cpp new file mode 100644 index 00000000..ec63e447 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MapLocation.cpp @@ -0,0 +1,65 @@ +// MapLocation.cpp +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MapLocation.h" + +//----------------------------------------------------------------------- + +MapLocation::MapLocation() : +m_locationId (), +m_locationName (), +m_location (), +m_category (0), +m_subCategory (0), +m_flags (0), +m_size (0.0f) +{ +} + +//---------------------------------------------------------------------- + +MapLocation::MapLocation(const MapLocation &rhs) : +m_locationId (rhs.m_locationId), +m_locationName (rhs.m_locationName), +m_location (rhs.m_location), +m_category (rhs.m_category), +m_subCategory (rhs.m_subCategory), +m_flags (rhs.m_flags), +m_size (rhs.m_size) +{ +} + +//---------------------------------------------------------------------- + +MapLocation::MapLocation(const NetworkId &locationId, const Unicode::String &locationName, const Vector2d &location, uint8 category, uint8 subCategory, uint8 flags, float size) : +m_locationId (locationId), +m_locationName (locationName), +m_location (location), +m_category (category), +m_subCategory (subCategory), +m_flags (flags), +m_size (size) +{ + +} + +//---------------------------------------------------------------------- + +MapLocation & MapLocation::operator= (const MapLocation &rhs) +{ + if (this != &rhs) + { + m_locationId = rhs.m_locationId; + m_locationName = rhs.m_locationName; + m_location = rhs.m_location; + m_category = rhs.m_category; + m_subCategory = rhs.m_subCategory; + m_flags = rhs.m_flags; + m_size = rhs.m_size; + } + return *this; +} + + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MapLocation.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MapLocation.h new file mode 100644 index 00000000..383726c5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MapLocation.h @@ -0,0 +1,99 @@ +// MapLocation.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. + +#ifndef _INCLUDED_MapLocation_H +#define _INCLUDED_MapLocation_H + +//----------------------------------------------------------------------- + +#include "sharedFoundation/NetworkId.h" +#include "sharedMath/Vector2d.h" +#include "Unicode.h" + +//----------------------------------------------------------------------- + +class MapLocation +{ +public: + + enum Flags + { + F_inactive = 0x0001, + F_active = 0x0002, + }; + + MapLocation & operator = (const MapLocation & rhs); + bool operator== (const MapLocation & rhs) const; + bool operator!= (const MapLocation & rhs) const; +// bool operator< (const MapLocation & rhs) const; + MapLocation(); + MapLocation(const MapLocation & source); + MapLocation(const NetworkId &locationId, const Unicode::String &locationName, const Vector2d &location, uint8 category, uint8 subCategory, uint8 flags, float size = 0.0f); + + const NetworkId & getLocationId () const; + const Unicode::String & getLocationName () const; + const Vector2d & getLocation () const; + const uint8 getCategory () const; + const uint8 getSubCategory () const; + const uint8 getFlags () const; + const bool isActive () const; + const bool isInactive () const; + const float getSize () const; + + NetworkId m_locationId; + Unicode::String m_locationName; + Vector2d m_location; + uint8 m_category; + uint8 m_subCategory; + uint8 m_flags; + float m_size; +}; + +//---------------------------------------------------------------------- + +inline const NetworkId & MapLocation::getLocationId () const {return m_locationId;} +inline const Unicode::String & MapLocation::getLocationName () const {return m_locationName;} +inline const Vector2d & MapLocation::getLocation () const {return m_location;} +inline const uint8 MapLocation::getCategory () const {return m_category;} +inline const uint8 MapLocation::getSubCategory () const {return m_subCategory;} +inline const uint8 MapLocation::getFlags () const {return m_flags;} +inline const float MapLocation::getSize () const {return m_size;} + +//---------------------------------------------------------------------- + + +inline bool MapLocation::operator== (const MapLocation & rhs) const +{ + return + m_locationId == rhs.m_locationId && + m_locationName == rhs.m_locationName && + m_location == rhs.m_location && + m_category == rhs.m_category && + m_subCategory == rhs.m_subCategory && + m_flags == rhs.m_flags; +} + +//---------------------------------------------------------------------- + +inline bool MapLocation::operator!= (const MapLocation & rhs) const +{ + return !(*this == rhs); +} + +//---------------------------------------------------------------------- + +inline const bool MapLocation::isInactive () const +{ + return (m_flags & F_inactive) != 0; +} + +//---------------------------------------------------------------------- + +inline const bool MapLocation::isActive () const +{ + return (m_flags & F_active) != 0; +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_MapLocation_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MapLocationArchive.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MapLocationArchive.cpp new file mode 100644 index 00000000..d684d2c0 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MapLocationArchive.cpp @@ -0,0 +1,44 @@ +//====================================================================== +// +// MapLocationArchive.cpp +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MapLocationArchive.h" + +#include "Archive/Archive.h" +#include "Archive/ByteStream.h" +#include "sharedFoundation/NetworkIdArchive.h" +#include "sharedNetworkMessages/MapLocation.h" +#include "unicodeArchive/UnicodeArchive.h" + +//---------------------------------------------------------------------- + +namespace Archive +{ + void get (ReadIterator &source, MapLocation &target) + { + get (source, target.m_locationId); + get (source, target.m_locationName); + get (source, target.m_location.x); + get (source, target.m_location.y); + get (source, target.m_category); + get (source, target.m_subCategory); + get (source, target.m_flags); + } + + void put (ByteStream &target, const MapLocation &source) + { + put (target, source.m_locationId); + put (target, source.m_locationName); + put (target, source.m_location.x); + put (target, source.m_location.y); + put (target, source.m_category); + put (target, source.m_subCategory); + put (target, source.m_flags); + } +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MapLocationArchive.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MapLocationArchive.h new file mode 100644 index 00000000..5de3a8ad --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MapLocationArchive.h @@ -0,0 +1,22 @@ +// MapLocationArchive.h +// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved. + +#ifndef _INCLUDED_MapLocationArchive_H +#define _INCLUDED_MapLocationArchive_H + +//----------------------------------------------------------------------- + +#include "Archive/ByteStream.h" +#include "sharedNetworkMessages/MapLocation.h" + +//----------------------------------------------------------------------- + +namespace Archive +{ + void get (ReadIterator &source, MapLocation &target); + void put (ByteStream &target, const MapLocation &source); +} + +//----------------------------------------------------------------------- + +#endif // _INCLUDED_MapLocationArchive_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueChangeRoleIconChoice.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueChangeRoleIconChoice.cpp new file mode 100644 index 00000000..4dd8675f --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueChangeRoleIconChoice.cpp @@ -0,0 +1,65 @@ +//======================================================================== +// +// MessageQueueChangeRoleIconChoice.cpp +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueChangeRoleIconChoice.h" + +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +//=================================================================== + +CONTROLLER_MESSAGE_ALLOW_FROM_CLIENT_IMPLEMENTATION(MessageQueueChangeRoleIconChoice, CM_changeRoleIconChoice); + +//---------------------------------------------------------------------- + +MessageQueueChangeRoleIconChoice::MessageQueueChangeRoleIconChoice (int newRoleIconChoice, uint8 sequenceId) : +m_roleIconChoice (newRoleIconChoice), +m_sequenceId (sequenceId) +{ +} + +//---------------------------------------------------------------------- + +/** + * Class destructor. + */ +MessageQueueChangeRoleIconChoice::~MessageQueueChangeRoleIconChoice () +{ +} + +//---------------------------------------------------------------------- + +void MessageQueueChangeRoleIconChoice::pack (const MessageQueue::Data* const data, Archive::ByteStream & target) +{ + const MessageQueueChangeRoleIconChoice* const msg = safe_cast (data); + if (msg) + { + Archive::put(target, msg->getRoleIconChoice ()); + Archive::put(target, msg->getSequenceId ()); + } +} + +//----------------------------------------------------------------------- + +MessageQueue::Data* MessageQueueChangeRoleIconChoice::unpack (Archive::ReadIterator & source) +{ + int newRoleIconChoice = 0; + uint8 sequenceId = 0; + + Archive::get(source, newRoleIconChoice); + Archive::get(source, sequenceId); + + return new MessageQueueChangeRoleIconChoice(newRoleIconChoice, sequenceId); +} + +//---------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueChangeRoleIconChoice.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueChangeRoleIconChoice.h new file mode 100644 index 00000000..a3edba80 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueChangeRoleIconChoice.h @@ -0,0 +1,56 @@ +//======================================================================== +// +// MessageQueueChangeRoleIconChoice.h +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + + +#ifndef INCLUDED_MessageQueueChangeRoleIconChoice_H +#define INCLUDED_MessageQueueChangeRoleIconChoice_H + +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; + +class MessageQueueChangeRoleIconChoice : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + MessageQueueChangeRoleIconChoice (int newRoleIconChoice, uint8 sequenceId); + virtual ~MessageQueueChangeRoleIconChoice (); + + int getRoleIconChoice () const; + uint8 getSequenceId () const; + +private: + int m_roleIconChoice; + uint8 m_sequenceId; + +private: + MessageQueueChangeRoleIconChoice (const MessageQueueChangeRoleIconChoice &); + MessageQueueChangeRoleIconChoice & operator= (const MessageQueueChangeRoleIconChoice &); +}; + +//---------------------------------------------------------------------- + +inline int MessageQueueChangeRoleIconChoice::getRoleIconChoice () const +{ + return m_roleIconChoice; +} + +//---------------------------------------------------------------------- + +inline uint8 MessageQueueChangeRoleIconChoice::getSequenceId () const +{ + return m_sequenceId; +} + +//---------------------------------------------------------------------- + +#endif // INCLUDED_MessageQueueChangeRoleIconChoice_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatCommand.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatCommand.cpp new file mode 100644 index 00000000..88bfbdd1 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatCommand.cpp @@ -0,0 +1,35 @@ +//====================================================================== +// +// MessageQueueCombatCommand.cpp +// copyright (c) 2001 Sony Online Entertainment +// +//====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueCombatCommand.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" + +//=================================================================== + +MEMORY_BLOCK_MANAGER_IMPLEMENTATION_WITH_INSTALL(MessageQueueCombatCommand, true, 0, 0, 0); + +//=================================================================== + + +//----------------------------------------------------------------------- + +MessageQueueCombatCommand::MessageQueueCombatCommand (const std::string & str, uint32 sequenceId) : +Data (), +m_string (str), +m_sequenceId (sequenceId) +{ +} + +//----------------------------------------------------------------------- + +MessageQueueCombatCommand::~MessageQueueCombatCommand() +{ +} + +//----------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatCommand.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatCommand.h new file mode 100644 index 00000000..3da65d84 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatCommand.h @@ -0,0 +1,61 @@ +//====================================================================== +// +// MessageQueueCombatCommand.h +// copyright (c) 2001 Sony Online Entertainment +// +//====================================================================== + +#ifndef INCLUDED_MessageQueueCombatCommand_H +#define INCLUDED_MessageQueueCombatCommand_H + +#include "sharedFoundation/MessageQueue.h" +#include "sharedFoundation/MemoryBlockManagerMacros.h" + +class MemoryBlockManager; +//----------------------------------------------------------------------- + +/** +* A generic message queue data that contains a simple payload of one String. +* The meaning of the String is context and message dependant. +* +*/ + +class MessageQueueCombatCommand : public MessageQueue::Data +{ + MEMORY_BLOCK_MANAGER_INTERFACE_WITH_INSTALL; + +public: + + explicit MessageQueueCombatCommand (const std::string & str, uint32 sequenceId); + virtual ~MessageQueueCombatCommand(); + + const std::string & getString (void) const; + uint32 getSequenceId (void) const; + +private: + + MessageQueueCombatCommand& operator= (const MessageQueueCombatCommand & source); + MessageQueueCombatCommand(const MessageQueueCombatCommand & source); + + std::string m_string; + uint32 m_sequenceId; +}; + +//----------------------------------------------------------------------- + +inline const std::string & MessageQueueCombatCommand::getString (void) const +{ + return m_string; +} + +//----------------------------------------------------------------------- + +inline uint32 MessageQueueCombatCommand::getSequenceId (void) const +{ + return m_sequenceId; +} + +//----------------------------------------------------------------------- + +#endif // _MessageQueueCombatCommand_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatSpam.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatSpam.cpp new file mode 100644 index 00000000..2c313abd --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatSpam.cpp @@ -0,0 +1,219 @@ +//====================================================================== +// +// MessageQueueCombatSpam.cpp +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueCombatSpam.h" + +#include "sharedFoundation/NetworkId.h" + +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" +#include "sharedNetworkMessages/MessageQueueCombatSpamArchive.h" + +//=================================================================== + +CONTROLLER_MESSAGE_IMPLEMENTATION_WITH_ARCHIVE(MessageQueueCombatSpam, CM_combatSpam); + + +//=================================================================== + +MessageQueueCombatSpam::MessageQueueCombatSpam(const NetworkId & attacker, const Vector & attackerPosition_w, const NetworkId & defender, const Vector & defenderPosition_w, const NetworkId & weapon, const NetworkId & armor, const StringId & attackName, int rawDamage, int damageType, int elementalDamage, int elementalDamageType, int bleedDamage, int critDamage, int blockedDamage, int finalDamage, int hitLocation, bool success, bool critical, bool glancing, bool crushing, bool strikethrough, float strikethroughAmmount, bool evadeResult, float evadeAmmount, bool blockResult, int block, bool dodge, bool parry, bool proc, int spamType) : + MessageQueue::Data(), + m_attacker(attacker), + m_attackerPosition_w(attackerPosition_w), + m_defender(defender), + m_defenderPosition_w(defenderPosition_w), + m_weapon(weapon), + m_weaponName(), + m_armor(armor), + m_attackName(attackName), + m_rawDamage(rawDamage), + m_damageType(damageType), + m_elementalDamage(elementalDamage), + m_elementalDamageType(elementalDamageType), + m_bleedDamage(bleedDamage), + m_critDamage(critDamage), + m_blockedDamage(blockedDamage), + m_finalDamage(finalDamage), + m_hitLocation(hitLocation), + m_success(success), + m_critical(critical), + m_glancing(glancing), + m_crushing(crushing), + m_strikethrough(strikethrough), + m_strikethroughAmmount(strikethroughAmmount), + m_evadeResult(evadeResult), + m_evadeAmmount(evadeAmmount), + m_blockResult(blockResult), + m_block(block), + m_dodge(dodge), + m_parry(parry), + m_proc(proc), + m_spamMessage(), + m_spamType(spamType) +{ +} + +//---------------------------------------------------------------------- + +MessageQueueCombatSpam::MessageQueueCombatSpam(const NetworkId & attacker, const Vector & attackerPosition_w, const NetworkId & defender, const Vector & defenderPosition_w, const StringId & weaponName, const NetworkId & armor, const StringId & attackName, int rawDamage, int damageType, int elementalDamage, int elementalDamageType, int bleedDamage, int critDamage, int blockedDamage, int finalDamage, int hitLocation, bool success, bool critical, bool glancing, bool crushing, bool strikethrough, float strikethroughAmmount, bool evadeResult, float evadeAmmount, bool blockResult, int block, bool dodge, bool parry, bool proc, int spamType) : + MessageQueue::Data(), + m_attacker(attacker), + m_attackerPosition_w(attackerPosition_w), + m_defender(defender), + m_defenderPosition_w(defenderPosition_w), + m_weapon(), + m_weaponName(weaponName), + m_armor(armor), + m_attackName(attackName), + m_rawDamage(rawDamage), + m_damageType(damageType), + m_elementalDamage(elementalDamage), + m_elementalDamageType(elementalDamageType), + m_bleedDamage(bleedDamage), + m_critDamage(critDamage), + m_blockedDamage(blockedDamage), + m_finalDamage(finalDamage), + m_hitLocation(hitLocation), + m_success(success), + m_critical(critical), + m_glancing(glancing), + m_crushing(crushing), + m_strikethrough(strikethrough), + m_strikethroughAmmount(strikethroughAmmount), + m_evadeResult(evadeResult), + m_evadeAmmount(evadeAmmount), + m_blockResult(blockResult), + m_block(block), + m_dodge(dodge), + m_parry(parry), + m_proc(proc), + m_spamMessage(), + m_spamType(spamType) +{ +} + +//---------------------------------------------------------------------- + +MessageQueueCombatSpam::MessageQueueCombatSpam(const Unicode::String & spamMessage, bool critical, bool glancing, bool proc, int spamType) : + MessageQueue::Data (), + m_attacker(), + m_attackerPosition_w(), + m_defender(), + m_defenderPosition_w(), + m_weapon(), + m_weaponName(), + m_armor(), + m_attackName(), + m_rawDamage(0), + m_damageType(0), + m_elementalDamage(0), + m_elementalDamageType(0), + m_bleedDamage(0), + m_critDamage(0), + m_blockedDamage(0), + m_finalDamage(0), + m_hitLocation(0), + m_success(false), + m_critical(critical), + m_glancing(glancing), + m_crushing(false), + m_strikethrough(false), + m_strikethroughAmmount(0.0f), + m_evadeResult(false), + m_evadeAmmount(0.0f), + m_blockResult(false), + m_block(0), + m_dodge(false), + m_parry(false), + m_proc(proc), + m_spamMessage(spamMessage), + m_spamType(spamType) +{ +} + +//---------------------------------------------------------------------- + +MessageQueueCombatSpam::MessageQueueCombatSpam(const NetworkId & attacker, const Vector & attackerPosition_w, const NetworkId & defender, const Vector & defenderPosition_w, const Unicode::String & spamMessage, bool critical, bool glancing, bool proc, int spamType) : + MessageQueue::Data (), + m_attacker(attacker), + m_attackerPosition_w(attackerPosition_w), + m_defender(defender), + m_defenderPosition_w(defenderPosition_w), + m_weapon(), + m_weaponName(), + m_armor(), + m_attackName(), + m_rawDamage(0), + m_damageType(0), + m_elementalDamage(0), + m_elementalDamageType(0), + m_bleedDamage(0), + m_critDamage(0), + m_blockedDamage(0), + m_finalDamage(0), + m_hitLocation(0), + m_success(false), + m_critical(critical), + m_glancing(glancing), + m_crushing(false), + m_strikethrough(false), + m_strikethroughAmmount(0.0f), + m_evadeResult(false), + m_evadeAmmount(0.0f), + m_blockResult(false), + m_block(0), + m_dodge(false), + m_parry(false), + m_proc(proc), + m_spamMessage(spamMessage), + m_spamType(spamType) +{ +} + +//---------------------------------------------------------------------- + +MessageQueueCombatSpam::MessageQueueCombatSpam (const MessageQueueCombatSpam& rhs) : + MessageQueue::Data (), + m_attacker(rhs.m_attacker), + m_attackerPosition_w(rhs.m_attackerPosition_w), + m_defender(rhs.m_defender), + m_defenderPosition_w(rhs.m_defenderPosition_w), + m_weapon(rhs.m_weapon), + m_weaponName(rhs.m_weaponName), + m_armor(rhs.m_armor), + m_attackName(rhs.m_attackName), + m_rawDamage(rhs.m_rawDamage), + m_damageType(rhs.m_damageType), + m_elementalDamage(rhs.m_elementalDamage), + m_elementalDamageType(rhs.m_elementalDamageType), + m_bleedDamage(rhs.m_bleedDamage), + m_critDamage(rhs.m_critDamage), + m_blockedDamage(rhs.m_blockedDamage), + m_finalDamage(rhs.m_finalDamage), + m_hitLocation(rhs.m_hitLocation), + m_success(rhs.m_success), + m_critical(rhs.m_critical), + m_glancing(rhs.m_glancing), + m_crushing(rhs.m_crushing), + m_strikethrough(rhs.m_strikethrough), + m_strikethroughAmmount(rhs.m_strikethroughAmmount), + m_evadeResult(rhs.m_evadeResult), + m_evadeAmmount(rhs.m_evadeAmmount), + m_blockResult(rhs.m_blockResult), + m_block(rhs.m_block), + m_dodge(rhs.m_dodge), + m_parry(rhs.m_parry), + m_proc(rhs.m_proc), + m_spamMessage(rhs.m_spamMessage), + m_spamType(rhs.m_spamType) +{ +} + +//====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatSpam.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatSpam.h new file mode 100644 index 00000000..ac405d85 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatSpam.h @@ -0,0 +1,85 @@ +//====================================================================== +// +// MessageQueueCombatSpam.h +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#ifndef INCLUDED_MessageQueueCombatSpam_H +#define INCLUDED_MessageQueueCombatSpam_H + +//====================================================================== + +#include "sharedFoundation/MessageQueue.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedMath/Vector.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" +#include "Unicode.h" + +class MemoryBlockManager; + +//----------------------------------------------------------------------- + +/** + * A CombatSpam message is issued on an server object's MessageQueue if the object + * observes 'source' performing CombatSpam towards 'target'. + */ + +//---------------------------------------------------------------------- + +class MessageQueueCombatSpam : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + MessageQueueCombatSpam (const NetworkId & attacker, const Vector & attackerPosition_w, const NetworkId & defender, const Vector & defenderPosition_w, const NetworkId & weapon, const NetworkId & armor, const StringId & attackName, int rawDamage, int damageType, int elementalDamage, int elementalDamageType, int bleedDamage, int critDamage, int blockedDamage, int finalDamage, int hitLocation, bool success, bool critical, bool glancing, bool crushing, bool strikethrough, float strikethroughAmmount, bool evadeResult, float evadeAmmount, bool blockResult, int block, bool dodge, bool parry, bool proc, int spamType); + MessageQueueCombatSpam (const NetworkId & attacker, const Vector & attackerPosition_w, const NetworkId & defender, const Vector & defenderPosition_w, const StringId & weaponName, const NetworkId & armor, const StringId & attackName, int rawDamage, int damageType, int elementalDamage, int elementalDamageType, int bleedDamage, int critDamage, int blockedDamage, int finalDamage, int hitLocation, bool success, bool critical, bool glancing, bool crushing, bool strikethrough, float strikethroughAmmount, bool evadeResult, float evadeAmmount, bool blockResult, int block, bool dodge, bool parry, bool proc, int spamType); + MessageQueueCombatSpam (const Unicode::String & spamMessage, bool critical, bool glancing, bool proc, int spamType); + MessageQueueCombatSpam (const NetworkId & attacker, const Vector & attackerPosition_w, const NetworkId & defender, const Vector & defenderPosition_w, const Unicode::String & spamMessage, bool critical, bool glancing, bool proc, int spamType); + MessageQueueCombatSpam (const MessageQueueCombatSpam&); + +private: + + MessageQueueCombatSpam (); + MessageQueueCombatSpam& operator= (const MessageQueueCombatSpam&); + +public: + + const NetworkId m_attacker; + const Vector m_attackerPosition_w; + const NetworkId m_defender; + const Vector m_defenderPosition_w; + const NetworkId m_weapon; + const StringId m_weaponName; + const NetworkId m_armor; + const StringId m_attackName; + int m_rawDamage; + int m_damageType; + int m_elementalDamage; + int m_elementalDamageType; + int m_bleedDamage; + int m_critDamage; + int m_blockedDamage; + int m_finalDamage; + int m_hitLocation; + bool m_success; + bool m_critical; + bool m_glancing; + bool m_crushing; + bool m_strikethrough; + float m_strikethroughAmmount; + bool m_evadeResult; + float m_evadeAmmount; + bool m_blockResult; + int m_block; + bool m_dodge; + bool m_parry; + bool m_proc; + Unicode::String m_spamMessage; + int m_spamType; +}; + +//====================================================================== + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatSpamArchive.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatSpamArchive.cpp new file mode 100644 index 00000000..865aacd1 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatSpamArchive.cpp @@ -0,0 +1,192 @@ +//====================================================================== +// +// MessageQueueCombatSpamArchive.cpp +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueCombatSpamArchive.h" + +#include "sharedMathArchive/VectorArchive.h" +#include "sharedNetworkMessages/MessageQueueCombatSpam.h" +#include "sharedFoundation/NetworkIdArchive.h" + +namespace MessageQueueCombatSpamArchiveNamespace +{ + enum DataType + { + dt_attackDataWeaponObject, + dt_attackDataWeaponName, + dt_messageData + }; +} + +using namespace MessageQueueCombatSpamArchiveNamespace; + + +//====================================================================== + +MessageQueue::Data * MessageQueueCombatSpamArchive::get (Archive::ReadIterator & source) +{ + uint8 dataType; + NetworkId attacker; + Vector attackerPosition_w; + NetworkId defender; + Vector defenderPosition_w; + NetworkId weapon; + StringId weaponName; + NetworkId armor; + StringId attackName; + int rawDamage = 0; + int damageType = 0; + int elementalDamage = 0; + int elementalDamageType = 0; + int bleedDamage = 0; + int critDamage = 0; + int blockedDamage = 0; + int finalDamage = 0; + int hitLocation = 0; + bool success= false; + bool critical= false; + bool glancing= false; + bool crushing= false; + bool strikethrough= false; + float strikethroughAmmount= 0.0f; + bool evadeResult= false; + float evadeAmmount= 0.0f; + bool blockResult= false; + int block= 0; + bool dodge= false; + bool parry= false; + bool proc= false; + Unicode::String spamMessage; + int spamType; + + Archive::get(source, dataType); + Archive::get(source, attacker); + Archive::get(source, attackerPosition_w); + Archive::get(source, defender); + Archive::get(source, defenderPosition_w); + if (dataType == dt_attackDataWeaponObject || dataType == dt_attackDataWeaponName) + { + if (dataType == dt_attackDataWeaponObject) + Archive::get(source, weapon); + else + Archive::get(source, weaponName); + Archive::get(source, attackName); + Archive::get(source, success); + if (success) + { + Archive::get(source, armor); + Archive::get(source, rawDamage); + Archive::get(source, damageType); + Archive::get(source, elementalDamage); + Archive::get(source, elementalDamageType); + Archive::get(source, bleedDamage); + Archive::get(source, critDamage); + Archive::get(source, blockedDamage); + Archive::get(source, finalDamage); + Archive::get(source, hitLocation); + Archive::get(source, crushing); + Archive::get(source, strikethrough); + Archive::get(source, strikethroughAmmount); + Archive::get(source, evadeResult); + Archive::get(source, evadeAmmount); + Archive::get(source, blockResult); + Archive::get(source, block); + } + else + { + Archive::get(source, dodge); + Archive::get(source, parry); + } + } + else + { + Archive::get(source, spamMessage); + } + + Archive::get(source, critical); + Archive::get(source, glancing); + Archive::get(source, proc); + Archive::get(source, spamType); + + if (dataType == dt_attackDataWeaponObject) + return new MessageQueueCombatSpam(attacker, attackerPosition_w, defender, defenderPosition_w, weapon, armor, attackName, rawDamage, damageType, elementalDamage, elementalDamageType, bleedDamage, critDamage, blockedDamage, finalDamage, hitLocation, success, critical, glancing, crushing, strikethrough, strikethroughAmmount, evadeResult, evadeAmmount, blockResult, block, dodge, parry, proc, spamType); + else if (dataType == dt_attackDataWeaponName) + return new MessageQueueCombatSpam(attacker, attackerPosition_w, defender, defenderPosition_w, weaponName, armor, attackName, rawDamage, damageType, elementalDamage, elementalDamageType, bleedDamage, critDamage, blockedDamage, finalDamage, hitLocation, success, critical, glancing, crushing, strikethrough, strikethroughAmmount, evadeResult, evadeAmmount, blockResult, block, dodge, parry, proc, spamType); + else + return new MessageQueueCombatSpam(attacker, attackerPosition_w, defender, defenderPosition_w, spamMessage, critical, glancing, proc, spamType); +} + +//---------------------------------------------------------------------- + +void MessageQueueCombatSpamArchive::put (const MessageQueue::Data * source, Archive::ByteStream & target) +{ + const MessageQueueCombatSpam * const msg = dynamic_cast(source); + NOT_NULL (msg); + + if (msg) + { + uint8 dataType; + if (msg->m_spamMessage.empty()) + { + if (msg->m_weapon != NetworkId::cms_invalid) + dataType = dt_attackDataWeaponObject; + else + dataType = dt_attackDataWeaponName; + } + else + dataType = dt_messageData; + Archive::put(target, dataType); + Archive::put(target, msg->m_attacker); + Archive::put(target, msg->m_attackerPosition_w); + Archive::put(target, msg->m_defender); + Archive::put(target, msg->m_defenderPosition_w); + if (msg->m_spamMessage.empty()) + { + if (msg->m_weapon != NetworkId::cms_invalid) + Archive::put(target, msg->m_weapon); + else + Archive::put(target, msg->m_weaponName); + Archive::put(target, msg->m_attackName); + Archive::put(target, msg->m_success); + if (msg->m_success) + { + Archive::put(target, msg->m_armor); + Archive::put(target, msg->m_rawDamage); + Archive::put(target, msg->m_damageType); + Archive::put(target, msg->m_elementalDamage); + Archive::put(target, msg->m_elementalDamageType); + Archive::put(target, msg->m_bleedDamage); + Archive::put(target, msg->m_critDamage); + Archive::put(target, msg->m_blockedDamage); + Archive::put(target, msg->m_finalDamage); + Archive::put(target, msg->m_hitLocation); + Archive::put(target, msg->m_crushing); + Archive::put(target, msg->m_strikethrough); + Archive::put(target, msg->m_strikethroughAmmount); + Archive::put(target, msg->m_evadeResult); + Archive::put(target, msg->m_evadeAmmount); + Archive::put(target, msg->m_blockResult); + Archive::put(target, msg->m_block); + } + else + { + Archive::put(target, msg->m_dodge); + Archive::put(target, msg->m_parry); + } + } + else + { + Archive::put(target, msg->m_spamMessage); + } + Archive::put(target, msg->m_critical); + Archive::put(target, msg->m_glancing); + Archive::put(target, msg->m_proc); + Archive::put(target, msg->m_spamType); + } +} + +//====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatSpamArchive.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatSpamArchive.h new file mode 100644 index 00000000..41562338 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCombatSpamArchive.h @@ -0,0 +1,28 @@ +//====================================================================== +// +// MessageQueueCombatSpamArchive.h +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#ifndef INCLUDED_MessageQueueCombatSpamArchive_H +#define INCLUDED_MessageQueueCombatSpamArchive_H + +#include "Archive/ByteStream.h" +#include "sharedFoundation/MessageQueue.h" + +class MessageQueueCombatSpam; + +//====================================================================== + +class MessageQueueCombatSpamArchive +{ +public: + + static MessageQueue::Data * get (Archive::ReadIterator & source); + static void put (const MessageQueue::Data * source, Archive::ByteStream & target); +}; + +//====================================================================== + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCommandQueueEnqueue.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCommandQueueEnqueue.cpp new file mode 100644 index 00000000..01e037c9 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCommandQueueEnqueue.cpp @@ -0,0 +1,108 @@ +// ====================================================================== +// +// MessageQueueCommandQueueEnqueue.cpp +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueCommandQueueEnqueue.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +//=================================================================== + +CONTROLLER_MESSAGE_ALLOW_FROM_CLIENT_IMPLEMENTATION(MessageQueueCommandQueueEnqueue, CM_commandQueueEnqueue); + +//=================================================================== + + + + +// ---------------------------------------------------------------------- + +MessageQueueCommandQueueEnqueue::MessageQueueCommandQueueEnqueue( + uint32 sequenceId, uint32 commandHash, NetworkId const &targetId, + Unicode::String const ¶ms) : + MessageQueue::Data(), + m_sequenceId(sequenceId), + m_commandHash(commandHash), + m_targetId(targetId), + m_params(params) +{ +} + +// ---------------------------------------------------------------------- + +MessageQueueCommandQueueEnqueue::MessageQueueCommandQueueEnqueue( + MessageQueueCommandQueueEnqueue const &source) : + MessageQueue::Data(), + m_sequenceId(source.m_sequenceId), + m_commandHash(source.m_commandHash), + m_targetId(source.m_targetId), + m_params(source.m_params) +{ +} + +// ---------------------------------------------------------------------- + +uint32 MessageQueueCommandQueueEnqueue::getSequenceId() const +{ + return m_sequenceId; +} + +// ---------------------------------------------------------------------- + +uint32 MessageQueueCommandQueueEnqueue::getCommandHash() const +{ + return m_commandHash; +} + +// ---------------------------------------------------------------------- + +NetworkId const &MessageQueueCommandQueueEnqueue::getTargetId() const +{ + return m_targetId; +} + +// ---------------------------------------------------------------------- + +Unicode::String const &MessageQueueCommandQueueEnqueue::getParams() const +{ + return m_params; +} +//----------------------------------------------------------------------- + +void MessageQueueCommandQueueEnqueue::pack(const MessageQueue::Data* const data, Archive::ByteStream &target) +{ + MessageQueueCommandQueueEnqueue const* const msg = safe_cast (data); + + if (msg) + { + Archive::put(target, msg->getSequenceId()); + Archive::put(target, msg->getCommandHash()); + Archive::put(target, msg->getTargetId()); + Archive::put(target, msg->getParams()); + } +} +//----------------------------------------------------------------------- + +MessageQueue::Data* MessageQueueCommandQueueEnqueue::unpack(Archive::ReadIterator &source) +{ + uint32 sequenceId; + uint32 commandHash; + NetworkId targetId; + Unicode::String params; + + Archive::get(source, sequenceId); + Archive::get(source, commandHash); + Archive::get(source, targetId); + Archive::get(source, params); + + return new MessageQueueCommandQueueEnqueue(sequenceId, commandHash, targetId, params); +} + +//----------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCommandQueueEnqueue.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCommandQueueEnqueue.h new file mode 100644 index 00000000..489c7ec6 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCommandQueueEnqueue.h @@ -0,0 +1,51 @@ +// ====================================================================== +// +// MessageQueueCommandQueueEnqueue.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_MessageQueueCommandQueueEnqueue_H +#define INCLUDED_MessageQueueCommandQueueEnqueue_H + +// ====================================================================== + +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; +// ====================================================================== + +class MessageQueueCommandQueueEnqueue: public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + + +public: + + MessageQueueCommandQueueEnqueue(uint32 sequenceId, uint32 commandHash, + NetworkId const &targetId, Unicode::String const ¶ms); + MessageQueueCommandQueueEnqueue(const MessageQueueCommandQueueEnqueue &source); + + uint32 getSequenceId() const; + uint32 getCommandHash() const; + NetworkId const &getTargetId() const; + Unicode::String const &getParams() const; + +private: + MessageQueueCommandQueueEnqueue(); + MessageQueueCommandQueueEnqueue &operator=(const MessageQueueCommandQueueEnqueue &source); + + uint32 m_sequenceId; + uint32 m_commandHash; + NetworkId m_targetId; + Unicode::String m_params; +}; + +// ---------------------------------------------------------------------- + +// ====================================================================== + +#endif // INCLUDED_MessageQueueCommandQueueEnqueue_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCommandQueueRemove.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCommandQueueRemove.cpp new file mode 100644 index 00000000..b4d6f8bf --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCommandQueueRemove.cpp @@ -0,0 +1,102 @@ +// ====================================================================== +// +// MessageQueueCommandQueueRemove.cpp +// +// Copyright 2003 Sony Online Entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueCommandQueueRemove.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +// ====================================================================== + +CONTROLLER_MESSAGE_ALLOW_FROM_CLIENT_IMPLEMENTATION(MessageQueueCommandQueueRemove, CM_commandQueueRemove); + +//=================================================================== + +MessageQueueCommandQueueRemove::MessageQueueCommandQueueRemove(uint32 sequenceId, float waitTime, int status, int statusDetail) : + MessageQueue::Data(), + m_sequenceId(sequenceId), + m_waitTime(waitTime), + m_status(status), + m_statusDetail(statusDetail) +{ +} + +// ---------------------------------------------------------------------- + +MessageQueueCommandQueueRemove::MessageQueueCommandQueueRemove(MessageQueueCommandQueueRemove const &source) : + MessageQueue::Data(), + m_sequenceId(source.m_sequenceId), + m_waitTime(source.m_waitTime), + m_status(source.m_status), + m_statusDetail(source.m_statusDetail) +{ +} + +// ---------------------------------------------------------------------- + +uint32 MessageQueueCommandQueueRemove::getSequenceId() const +{ + return m_sequenceId; +} + +// ---------------------------------------------------------------------- + +float MessageQueueCommandQueueRemove::getWaitTime() const +{ + return m_waitTime; +} + +// ---------------------------------------------------------------------- + +int MessageQueueCommandQueueRemove::getStatus() const +{ + return m_status; +} + +// ---------------------------------------------------------------------- + +int MessageQueueCommandQueueRemove::getStatusDetail() const +{ + return m_statusDetail; +} + +// ---------------------------------------------------------------------- + +void MessageQueueCommandQueueRemove::pack(const MessageQueue::Data* const data, Archive::ByteStream &target) +{ + MessageQueueCommandQueueRemove const* const msg = safe_cast (data); + + if (msg) + { + Archive::put(target, msg->getSequenceId()); + Archive::put(target, msg->getWaitTime()); + Archive::put(target, msg->getStatus()); + Archive::put(target, msg->getStatusDetail()); + } +} + +// ---------------------------------------------------------------------- + +MessageQueue::Data* MessageQueueCommandQueueRemove::unpack(Archive::ReadIterator &source) +{ + uint32 sequenceId; + float waitTime; + int status, statusDetail; + + Archive::get(source, sequenceId); + Archive::get(source, waitTime); + Archive::get(source, status); + Archive::get(source, statusDetail); + + return new MessageQueueCommandQueueRemove(sequenceId, waitTime, status, statusDetail); +} + +// ====================================================================== + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCommandQueueRemove.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCommandQueueRemove.h new file mode 100644 index 00000000..185283dd --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCommandQueueRemove.h @@ -0,0 +1,50 @@ +// ====================================================================== +// +// MessageQueueCommandQueueRemove.h +// +// Copyright 2002 Sony Online Entertainment +// +// ====================================================================== + +#ifndef INCLUDED_MessageQueueCommandQueueRemove_H +#define INCLUDED_MessageQueueCommandQueueRemove_H + +// ====================================================================== + +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +// ====================================================================== + +class MemoryBlockManager; + +// ====================================================================== + +class MessageQueueCommandQueueRemove: public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + MessageQueueCommandQueueRemove(uint32 sequenceId, float waitTime, int status, int statusDetail); + MessageQueueCommandQueueRemove(MessageQueueCommandQueueRemove const &source); + + uint32 getSequenceId() const; + float getWaitTime() const; + int getStatus() const; + int getStatusDetail() const; + +private: + MessageQueueCommandQueueRemove(); + MessageQueueCommandQueueRemove &operator=(MessageQueueCommandQueueRemove const &source); + + uint32 m_sequenceId; + float m_waitTime; + int m_status; + int m_statusDetail; +}; + +// ====================================================================== + +#endif // INCLUDED_MessageQueueCommandQueueRemove_H + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftCustomization.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftCustomization.cpp new file mode 100644 index 00000000..6443eacf --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftCustomization.cpp @@ -0,0 +1,89 @@ +//======================================================================== +// +// MessageQueueCraftCustomization.cpp +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueCraftCustomization.h" + +#include "sharedObject/Object.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +//=================================================================== + +CONTROLLER_MESSAGE_ALLOW_FROM_CLIENT_IMPLEMENTATION(MessageQueueCraftCustomization, CM_setCustomizationData); + +//=================================================================== + + +/** + * Class destructor. + */ +MessageQueueCraftCustomization::~MessageQueueCraftCustomization() +{ +} + + +void MessageQueueCraftCustomization::pack(const MessageQueue::Data* const data, Archive::ByteStream & target) +{ + const MessageQueueCraftCustomization* const msg = safe_cast (data); + if (msg) + { + Archive::put(target, msg->getName()); + int8 temp8 = static_cast(msg->getAppearance()); + Archive::put(target, temp8); + Archive::put(target, msg->getItemCount()); + int count = msg->getCustomization().size(); + temp8 = static_cast(count); + Archive::put(target, temp8); + for (int i = 0; i < count; ++i) + { + const Crafting::CustomValue & custom = msg->getCustomization()[i]; + Archive::put(target, custom.property); + Archive::put(target, custom.value); + } + } +} + +//---------------------------------------------------------------------- + +MessageQueue::Data* MessageQueueCraftCustomization::unpack(Archive::ReadIterator & source) +{ +int8 temp8; +Unicode::String name; +int property, value, itemCount; + + UNREF(source); + + MessageQueueCraftCustomization * msg = new MessageQueueCraftCustomization(); + NOT_NULL(msg); + + Archive::get(source, name); + msg->setName(name); + + Archive::get(source, temp8); + msg->setAppearance(temp8); + + Archive::get(source, itemCount); + msg->setItemCount(itemCount); + + Archive::get(source, temp8); + int count = temp8; + for (int i = 0; i < count; ++i) + { + Archive::get(source, property); + Archive::get(source, value); + msg->addCustomization(property, value); + } + + return msg; +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftCustomization.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftCustomization.h new file mode 100644 index 00000000..912785ea --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftCustomization.h @@ -0,0 +1,101 @@ +//======================================================================== +// +// MessageQueueCraftCustomization.h +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + + +#ifndef INCLUDED_MessageQueueCraftCustomization_H +#define INCLUDED_MessageQueueCraftCustomization_H + +#include "sharedFoundation/MessageQueue.h" +#include "sharedGame/CraftingData.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; + +class MessageQueueCraftCustomization : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + explicit MessageQueueCraftCustomization(void); + virtual ~MessageQueueCraftCustomization(); + + const Unicode::String & getName(void) const; + int getAppearance(void) const; + const std::vector & getCustomization(void) const; + int getItemCount(void) const; + + void setName(const Unicode::String & name); + void setAppearance(int appearance); + void addCustomization(int property, int value); + void setItemCount(int count); + +private: + Unicode::String m_name; + int m_appearance; + std::vector m_customization; + int m_itemCount; +}; + + +//---------------------------------------------------------------------- + +inline MessageQueueCraftCustomization::MessageQueueCraftCustomization(void) : + MessageQueue::Data(), + m_name(), + m_appearance(-1), + m_customization(), + m_itemCount(1) +{ +} + +inline const Unicode::String & MessageQueueCraftCustomization::getName(void) const +{ + return m_name; +} + +inline int MessageQueueCraftCustomization::getAppearance(void) const +{ + return m_appearance; +} + +inline const std::vector & MessageQueueCraftCustomization::getCustomization(void) const +{ + return m_customization; +} + +inline int MessageQueueCraftCustomization::getItemCount(void) const +{ + return m_itemCount; +} + +inline void MessageQueueCraftCustomization::setName(const Unicode::String & name) +{ + m_name = name; +} + +inline void MessageQueueCraftCustomization::setAppearance(int appearance) +{ + m_appearance = appearance; +} + +inline void MessageQueueCraftCustomization::addCustomization(int property, int value) +{ + m_customization.push_back(Crafting::CustomValue(property, value)); +} + +inline void MessageQueueCraftCustomization::setItemCount(int count) +{ + m_itemCount = count; +} + +//---------------------------------------------------------------------- + + +#endif // INCLUDED_MessageQueueCraftCustomization_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftEmptySlot.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftEmptySlot.cpp new file mode 100644 index 00000000..dba86276 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftEmptySlot.cpp @@ -0,0 +1,69 @@ +//======================================================================== +// +// MessageQueueCraftEmptySlot.cpp +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueCraftEmptySlot.h" + +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +//=================================================================== + +CONTROLLER_MESSAGE_ALLOW_FROM_CLIENT_IMPLEMENTATION(MessageQueueCraftEmptySlot, CM_emptySchematicSlotMessage); + +//---------------------------------------------------------------------- + +MessageQueueCraftEmptySlot::MessageQueueCraftEmptySlot (int slot, const NetworkId & targetContainer, uint8 sequenceId) : +m_slot (slot), +m_targetContainer (targetContainer), +m_sequenceId (sequenceId) +{ +} + +//---------------------------------------------------------------------- + +/** + * Class destructor. + */ +MessageQueueCraftEmptySlot::~MessageQueueCraftEmptySlot () +{ +} + +//---------------------------------------------------------------------- + +void MessageQueueCraftEmptySlot::pack (const MessageQueue::Data* const data, Archive::ByteStream & target) +{ + const MessageQueueCraftEmptySlot* const msg = safe_cast (data); + if (msg) + { + Archive::put(target, msg->getSlot ()); + Archive::put(target, msg->getTargetContainer ()); + Archive::put(target, msg->getSequenceId ()); + } +} + +//----------------------------------------------------------------------- + +MessageQueue::Data* MessageQueueCraftEmptySlot::unpack (Archive::ReadIterator & source) +{ + int slot = 0; + uint8 sequenceId = 0; + NetworkId targetContainer; + + Archive::get(source, slot); + Archive::get(source, targetContainer); + Archive::get(source, sequenceId); + + return new MessageQueueCraftEmptySlot(slot, targetContainer, sequenceId); +} + +//---------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftEmptySlot.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftEmptySlot.h new file mode 100644 index 00000000..c272fa71 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftEmptySlot.h @@ -0,0 +1,65 @@ +//======================================================================== +// +// MessageQueueCraftEmptySlot.h +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + + +#ifndef INCLUDED_MessageQueueCraftEmptySlot_H +#define INCLUDED_MessageQueueCraftEmptySlot_H + +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; + +class MessageQueueCraftEmptySlot : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + MessageQueueCraftEmptySlot (int slot, const NetworkId & targetContainer, uint8 sequenceId); + virtual ~MessageQueueCraftEmptySlot (); + + int getSlot () const; + uint8 getSequenceId () const; + const NetworkId & getTargetContainer () const; + +private: + int m_slot; + NetworkId m_targetContainer; + uint8 m_sequenceId; + +private: + MessageQueueCraftEmptySlot (const MessageQueueCraftEmptySlot &); + MessageQueueCraftEmptySlot & operator= (const MessageQueueCraftEmptySlot &); +}; + +//---------------------------------------------------------------------- + +inline int MessageQueueCraftEmptySlot::getSlot () const +{ + return m_slot; +} + +//---------------------------------------------------------------------- + +inline uint8 MessageQueueCraftEmptySlot::getSequenceId () const +{ + return m_sequenceId; +} + +//---------------------------------------------------------------------- + +inline const NetworkId & MessageQueueCraftEmptySlot::getTargetContainer () const +{ + return m_targetContainer; +} + +//---------------------------------------------------------------------- + +#endif // INCLUDED_MessageQueueCraftEmptySlot_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftExperiment.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftExperiment.cpp new file mode 100644 index 00000000..512c9e02 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftExperiment.cpp @@ -0,0 +1,80 @@ +//======================================================================== +// +// MessageQueueCraftExperiment.cpp +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueCraftExperiment.h" + +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +//=================================================================== + +CONTROLLER_MESSAGE_ALLOW_FROM_CLIENT_IMPLEMENTATION(MessageQueueCraftExperiment, CM_experimentMessage); + +//=================================================================== + + +/** + * Class destructor. + */ +MessageQueueCraftExperiment::~MessageQueueCraftExperiment() +{ +} // MessageQueueCraftExperiment::~MessageQueueCraftExperiment +//---------------------------------------------------------------------- +void MessageQueueCraftExperiment::pack(const MessageQueue::Data* const data, Archive::ByteStream & target) +{ + const MessageQueueCraftExperiment* const msg = safe_cast (data); + if (msg) + { + Archive::put (target, msg->getSequenceId()); + + const std::vector & experiments = + msg->getExperiments(); + int count = experiments.size(); + Archive::put (target, count); + std::vector::const_iterator iter; + for (iter = experiments.begin(); iter != experiments.end(); ++iter) + { + Archive::put (target, (*iter).attributeIndex); + Archive::put (target, (*iter).experimentPoints); + } + + Archive::put(target, msg->getCoreLevel()); + } +} + +//----------------------------------------------------------------------- +MessageQueue::Data* MessageQueueCraftExperiment::unpack(Archive::ReadIterator & source) +{ + uint8 sequenceId; + Archive::get(source, sequenceId); + MessageQueueCraftExperiment* const msg = new MessageQueueCraftExperiment(sequenceId); + NOT_NULL(msg); + + int count; + int attribute, points; + int corelevel; + Archive::get(source, count); + for (int i = 0; i < count; ++i) + { + Archive::get(source, attribute); + Archive::get(source, points); + msg->addExperiment(attribute, points); + } + + Archive::get(source, corelevel); + msg->setCoreLevel(corelevel); + + return msg; +} + +//---------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftExperiment.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftExperiment.h new file mode 100644 index 00000000..52b45613 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftExperiment.h @@ -0,0 +1,98 @@ +//======================================================================== +// +// MessageQueueCraftExperiment.h +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + + +#ifndef INCLUDED_MessageQueueCraftExperiment_H +#define INCLUDED_MessageQueueCraftExperiment_H + +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; + +class MessageQueueCraftExperiment : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + struct ExperimentInfo + { + const int attributeIndex; // which attribute is being experiemnted + const int experimentPoints; // how many experiment points are allocated + + ExperimentInfo(int attribute, int points) : + attributeIndex(attribute), + experimentPoints(points) + { + } + + private: + ExperimentInfo & operator = (const ExperimentInfo &); + }; + +public: + + MessageQueueCraftExperiment(uint8 sequenceId); + virtual ~MessageQueueCraftExperiment(); + + void addExperiment(int attribute, int points); + const std::vector & getExperiments(void) const; + int getTotalPoints(void) const; + uint8 getSequenceId(void) const; + void setCoreLevel(int level); + int getCoreLevel(void) const; + +private: + std::vector m_experiments; + int m_totalPoints; + uint8 m_sequenceId; + int m_coreLevel; +}; + + +inline MessageQueueCraftExperiment::MessageQueueCraftExperiment(uint8 sequenceId) : + m_totalPoints(0), + m_sequenceId(sequenceId), + m_coreLevel(0) +{ +} // MessageQueueCraftExperiment::MessageQueueCraftExperiment() + +inline void MessageQueueCraftExperiment::addExperiment(int attribute, int points) +{ + m_experiments.push_back(ExperimentInfo(attribute, points)); + m_totalPoints += points; +} // MessageQueueCraftExperiment::addIngredient + +inline const std::vector & + MessageQueueCraftExperiment::getExperiments(void) const +{ + return m_experiments; +} // MessageQueueCraftExperiment::getExperiments + +inline int MessageQueueCraftExperiment::getTotalPoints(void) const +{ + return m_totalPoints; +} // MessageQueueCraftExperiment::getTotalPoints + +inline uint8 MessageQueueCraftExperiment::getSequenceId(void) const +{ + return m_sequenceId; +} // MessageQueueCraftExperiment::getSequenceId + +inline void MessageQueueCraftExperiment::setCoreLevel(int level) +{ + m_coreLevel = level; +} + +inline int MessageQueueCraftExperiment::getCoreLevel() const +{ + return m_coreLevel; +} +#endif // INCLUDED_MessageQueueCraftExperiment_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftFillSlot.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftFillSlot.cpp new file mode 100644 index 00000000..91c0dc53 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftFillSlot.cpp @@ -0,0 +1,63 @@ +//======================================================================== +// +// MessageQueueCraftFillSlot.cpp +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueCraftFillSlot.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +//=================================================================== + +CONTROLLER_MESSAGE_ALLOW_FROM_CLIENT_IMPLEMENTATION(MessageQueueCraftFillSlot, CM_fillSchematicSlotMessage); + +//=================================================================== + + + +/** + * Class destructor. + */ +MessageQueueCraftFillSlot::~MessageQueueCraftFillSlot() +{ +} // MessageQueueCraftFillSlot::~MessageQueueCraftFillSlot + +//----------------------------------------------------------------------- + +void MessageQueueCraftFillSlot::pack (const MessageQueue::Data* const data, Archive::ByteStream & target) +{ + const MessageQueueCraftFillSlot* const msg = safe_cast (data); + if (msg) + { + Archive::put(target, msg->getIngredient()); + Archive::put(target, msg->getSlot()); + Archive::put(target, msg->getOption()); + Archive::put(target, msg->getSequenceId()); + } +} + +//----------------------------------------------------------------------- + +MessageQueue::Data* MessageQueueCraftFillSlot::unpack(Archive::ReadIterator & source) +{ + NetworkId ingredient; + int slot, option; + uint8 sequenceId; + + Archive::get(source, ingredient); + Archive::get(source, slot); + Archive::get(source, option); + Archive::get(source, sequenceId); + + return new MessageQueueCraftFillSlot(ingredient, slot, option, sequenceId); +} + +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftFillSlot.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftFillSlot.h new file mode 100644 index 00000000..9b552b20 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftFillSlot.h @@ -0,0 +1,74 @@ +//======================================================================== +// +// MessageQueueCraftFillSlot.h +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + + +#ifndef INCLUDED_MessageQueueCraftFillSlot_H +#define INCLUDED_MessageQueueCraftFillSlot_H + +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; + +class MessageQueueCraftFillSlot : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + MessageQueueCraftFillSlot(const NetworkId & ingredient, int slot, int option, uint8 sequenceId); + virtual ~MessageQueueCraftFillSlot(); + + const NetworkId & getIngredient(void) const; + int getSlot(void) const; + int getOption(void) const; + uint8 getSequenceId(void) const; + +private: + NetworkId m_ingredient; + int m_slot; + int m_option; + uint8 m_sequenceId; + +private: + MessageQueueCraftFillSlot (const MessageQueueCraftFillSlot &); + MessageQueueCraftFillSlot & operator= (const MessageQueueCraftFillSlot &); +}; + + +inline MessageQueueCraftFillSlot::MessageQueueCraftFillSlot(const NetworkId & ingredient, int slot, int option, uint8 sequenceId) : + m_ingredient(ingredient), + m_slot(slot), + m_option(option), + m_sequenceId(sequenceId) +{ +} // MessageQueueCraftFillSlot::MessageQueueCraftFillSlot + +inline const NetworkId & MessageQueueCraftFillSlot::getIngredient(void) const +{ + return m_ingredient; +} // MessageQueueCraftFillSlot::getIngredient + +inline int MessageQueueCraftFillSlot::getSlot(void) const +{ + return m_slot; +} // MessageQueueCraftFillSlot::getSlot + +inline int MessageQueueCraftFillSlot::getOption(void) const +{ + return m_option; +} // MessageQueueCraftFillSlot::getOption + +inline uint8 MessageQueueCraftFillSlot::getSequenceId(void) const +{ + return m_sequenceId; +} // MessageQueueCraftFillSlot::getSequenceId + + +#endif // INCLUDED_MessageQueueCraftFillSlot_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftIngredients.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftIngredients.cpp new file mode 100644 index 00000000..fc0fc49c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftIngredients.cpp @@ -0,0 +1,73 @@ +//======================================================================== +// +// MessageQueueCraftIngredients.cpp +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueCraftIngredients.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +//=================================================================== + +CONTROLLER_MESSAGE_IMPLEMENTATION(MessageQueueCraftIngredients, CM_ingredientsHopperMessage); + +//=================================================================== + + + +/** + * Class destructor. + */ +MessageQueueCraftIngredients::~MessageQueueCraftIngredients() +{ +} // MessageQueueCraftIngredients::~MessageQueueCraftIngredients + +void MessageQueueCraftIngredients::pack(const MessageQueue::Data* const data, Archive::ByteStream & target) +{ + const MessageQueueCraftIngredients* const msg = safe_cast (data); + if (msg) + { + int count = msg->getIngredientCount(); + Archive::put (target, count); + for (int i = 0; i < count; ++i) + { + const MessageQueueCraftIngredients::Ingredient & ingredient = msg->getIngredient(i); + uint8 type = static_cast(ingredient.type); + Archive::put (target, ingredient.name); + Archive::put (target, type); + Archive::put (target, ingredient.quantity); + } + } +} + +//----------------------------------------------------------------------- + + +MessageQueue::Data* MessageQueueCraftIngredients::unpack(Archive::ReadIterator & source) +{ + MessageQueueCraftIngredients* const msg = new MessageQueueCraftIngredients(); + NOT_NULL(msg); + + int count; + Unicode::String name; + uint8 type; + int quantity; + + Archive::get(source, count); + for (int i = 0; i < count; ++i) + { + Archive::get(source, name); + Archive::get(source, type); + Archive::get(source, quantity); + msg->addIngredient(name, static_cast(type), quantity); + } + return msg; +} + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftIngredients.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftIngredients.h new file mode 100644 index 00000000..9c4e3546 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftIngredients.h @@ -0,0 +1,98 @@ +//======================================================================== +// +// MessageQueueCraftIngredients.h +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + + +#ifndef INCLUDED_MessageQueueCraftIngredients_H +#define INCLUDED_MessageQueueCraftIngredients_H + +#include "sharedFoundation/MessageQueue.h" +#include "sharedGame/CraftingData.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; +class MessageQueueCraftIngredients : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + typedef Crafting::IngredientType IngredientType; + + struct Ingredient + { + Unicode::String name; + union + { + int type; + int minValue; + }; + union + { + int quantity; + int maxValue; + }; + + Ingredient::Ingredient(const Unicode::String & _name, IngredientType _type, int _quantity) : + name(_name), + type(_type), + quantity(_quantity) + { + } + + Ingredient::Ingredient(const Unicode::String & _name, int _minValue, int _maxValue) : + name(_name), + minValue(_minValue), + maxValue(_maxValue) + { + } + }; + +public: + + MessageQueueCraftIngredients(void); + virtual ~MessageQueueCraftIngredients(); + + void addIngredient(const Unicode::String & name, IngredientType type, int quantity); + void addSchematicAttribute(const Unicode::String & name, int minValue, int maxValue); + int getIngredientCount(void) const; + const Ingredient & getIngredient(int index) const; + +private: + std::vector m_ingredients; +}; + + +inline MessageQueueCraftIngredients::MessageQueueCraftIngredients() +{ +} // MessageQueueCraftIngredients::MessageQueueCraftIngredients() + +inline void MessageQueueCraftIngredients::addIngredient(const Unicode::String & name, IngredientType type, int quantity) +{ + m_ingredients.push_back(Ingredient(name, type, quantity)); +} // MessageQueueCraftIngredients::addIngredient + +inline void MessageQueueCraftIngredients::addSchematicAttribute(const Unicode::String & name, int minValue, int maxValue) +{ + m_ingredients.push_back(Ingredient(name, minValue, maxValue)); +} // MessageQueueCraftIngredients::addSchematicAttribute + +inline int MessageQueueCraftIngredients::getIngredientCount(void) const +{ + return m_ingredients.size(); +} // MessageQueueCraftIngredients::getIngredientCount + +inline const MessageQueueCraftIngredients::Ingredient & MessageQueueCraftIngredients::getIngredient(int index) const +{ + DEBUG_FATAL(index < 0 || index >= static_cast(m_ingredients.size()), + ("MessageQueueCraftIngredients::getIngredient index out of range")); + return m_ingredients.at(index); +} // MessageQueueCraftIngredients::getIngredient + + +#endif // INCLUDED_MessageQueueCraftIngredients_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftRequestSession.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftRequestSession.cpp new file mode 100644 index 00000000..e66d478b --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftRequestSession.cpp @@ -0,0 +1,57 @@ +//======================================================================== +// +// MessageQueueCraftRequestSession.cpp +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueCraftRequestSession.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +//=================================================================== + +CONTROLLER_MESSAGE_IMPLEMENTATION(MessageQueueCraftRequestSession, CM_requestCraftingSession); + +//=================================================================== + + + +/** + * Class destructor. + */ +MessageQueueCraftRequestSession::~MessageQueueCraftRequestSession() +{ +} // MessageQueueCraftRequestSession::~MessageQueueCraftRequestSession + +//---------------------------------------------------------------------- + +void MessageQueueCraftRequestSession::pack (const MessageQueue::Data* const data, Archive::ByteStream & target) +{ + const MessageQueueCraftRequestSession* const msg = safe_cast (data); + if (msg) + { + Archive::put(target, msg->getStationId()); + Archive::put(target, msg->getSequenceId()); + } +} + +//----------------------------------------------------------------------- + +MessageQueue::Data* MessageQueueCraftRequestSession::unpack (Archive::ReadIterator & source) +{ + NetworkId stationId; + uint8 sequenceId; + + Archive::get(source, stationId); + Archive::get(source, sequenceId); + + return new MessageQueueCraftRequestSession(stationId, sequenceId); +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftRequestSession.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftRequestSession.h new file mode 100644 index 00000000..d432cc0c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftRequestSession.h @@ -0,0 +1,58 @@ +//======================================================================== +// +// MessageQueueCraftRequestSession.h +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + + +#ifndef INCLUDED_MessageQueueCraftRequestSession_H +#define INCLUDED_MessageQueueCraftRequestSession_H + +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; + +class MessageQueueCraftRequestSession : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + MessageQueueCraftRequestSession(const NetworkId & stationId, uint8 sequenceId); + virtual ~MessageQueueCraftRequestSession(); + + const NetworkId & getStationId(void) const; + uint8 getSequenceId(void) const; + +private: + NetworkId m_stationId; + uint8 m_sequenceId; + +private: + MessageQueueCraftRequestSession (const MessageQueueCraftRequestSession &); + MessageQueueCraftRequestSession & operator= (const MessageQueueCraftRequestSession &); +}; + + +inline MessageQueueCraftRequestSession::MessageQueueCraftRequestSession(const NetworkId & stationId, uint8 sequenceId) : + m_stationId(stationId), + m_sequenceId(sequenceId) +{ +} // MessageQueueCraftRequestSession::MessageQueueCraftRequestSession + +inline const NetworkId & MessageQueueCraftRequestSession::getStationId(void) const +{ + return m_stationId; +} // MessageQueueCraftRequestSession::getStationId + +inline uint8 MessageQueueCraftRequestSession::getSequenceId(void) const +{ + return m_sequenceId; +} // MessageQueueCraftRequestSession::getSequenceId + + +#endif // INCLUDED_MessageQueueCraftRequestSession_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftSelectSchematic.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftSelectSchematic.cpp new file mode 100644 index 00000000..5386dbdd --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftSelectSchematic.cpp @@ -0,0 +1,55 @@ +//======================================================================== +// +// MessageQueueCraftSelectSchematic.cpp +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueCraftSelectSchematic.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +//=================================================================== + +CONTROLLER_MESSAGE_IMPLEMENTATION(MessageQueueCraftSelectSchematic, CM_selectDraftSchematic); + +//=================================================================== + + + +/** + * Class destructor. + */ +MessageQueueCraftSelectSchematic::~MessageQueueCraftSelectSchematic() +{ +} // MessageQueueCraftSelectSchematic::~MessageQueueCraftSelectSchematic + + +void MessageQueueCraftSelectSchematic::pack (const MessageQueue::Data* const data, Archive::ByteStream & target) +{ + const MessageQueueCraftSelectSchematic* const msg = safe_cast (data); + if (msg) + { + Archive::put(target, msg->getSchematic()); + } +} + +//----------------------------------------------------------------------- + + +MessageQueue::Data* MessageQueueCraftSelectSchematic::unpack(Archive::ReadIterator & source) +{ + int schematic; + + Archive::get(source, schematic); + + return new MessageQueueCraftSelectSchematic(schematic); +} + +//---------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftSelectSchematic.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftSelectSchematic.h new file mode 100644 index 00000000..4f4e71f5 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCraftSelectSchematic.h @@ -0,0 +1,55 @@ +//======================================================================== +// +// MessageQueueCraftSelectSchematic.h +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + + +#ifndef INCLUDED_MessageQueueCraftSelectSchematic_H +#define INCLUDED_MessageQueueCraftSelectSchematic_H + +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; +//---------------------------------------------------------------------- + +class MessageQueueCraftSelectSchematic : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + MessageQueueCraftSelectSchematic(int schematic); + virtual ~MessageQueueCraftSelectSchematic(); + + int getSchematic(void) const; + +private: + int m_schematic; + +private: + MessageQueueCraftSelectSchematic (const MessageQueueCraftSelectSchematic &); + MessageQueueCraftSelectSchematic & operator= (const MessageQueueCraftSelectSchematic &); +}; + +//---------------------------------------------------------------------- + +inline MessageQueueCraftSelectSchematic::MessageQueueCraftSelectSchematic(int schematic) : +m_schematic(schematic) +{ +} // MessageQueueCraftSelectSchematic::MessageQueueCraftSelectSchematic + +//---------------------------------------------------------------------- + +inline int MessageQueueCraftSelectSchematic::getSchematic(void) const +{ + return m_schematic; +} // MessageQueueCraftSelectSchematic::getSchematic + +//---------------------------------------------------------------------- + +#endif // INCLUDED_MessageQueueCraftSelectSchematic_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCreateSaga.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCreateSaga.cpp new file mode 100644 index 00000000..3c7ad8b4 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCreateSaga.cpp @@ -0,0 +1,122 @@ +//======================================================================== +// +// MessageQueueCreateSaga.cpp +// +// copyright 2009 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueCreateSaga.h" + +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +//=================================================================== + +CONTROLLER_MESSAGE_ALLOW_FROM_CLIENT_IMPLEMENTATION(MessageQueueCreateSaga, CM_createSaga); + +//=================================================================== + + +/** +* Class destructor. +*/ +MessageQueueCreateSaga::~MessageQueueCreateSaga() +{ +} // MessageQueueCreateSaga::~MessageQueueCreateSaga +//---------------------------------------------------------------------- +void MessageQueueCreateSaga::pack(const MessageQueue::Data* const data, Archive::ByteStream & target) +{ + const MessageQueueCreateSaga* const msg = safe_cast (data); + if (msg) + { + Archive::put(target, msg->getQuestName()); + Archive::put(target, msg->getQuestDescription()); + + const std::vector & tasks = + msg->getTasks(); + int count = static_cast(tasks.size()); + Archive::put (target, count); + std::vector::const_iterator iter; + for (iter = tasks.begin(); iter != tasks.end(); ++iter) + { + Archive::put (target, (*iter).taskType); + Archive::put (target, (*iter).numParameters); + for(int i = 0; i < (*iter).numParameters; ++i) + Archive::put (target, (*iter).parameters[i]); + } + + Archive::put(target, msg->getRewards()); + Archive::put(target, msg->isRecipe()); + Archive::put(target, msg->getRecipeOID()); + Archive::put(target, msg->getShareAmount()); + } +} + +//----------------------------------------------------------------------- +MessageQueue::Data* MessageQueueCreateSaga::unpack(Archive::ReadIterator & source) +{ + MessageQueueCreateSaga* const msg = new MessageQueueCreateSaga(); + NOT_NULL(msg); + + std::string questName; + std::string questDescription; + + Archive::get(source, questName); + + msg->setQuestName(questName); + + Archive::get(source, questDescription); + + msg->setQuestDescription(questDescription); + + int numTasks; + int taskType, numParameters; + std::string parameter; + Archive::get(source, numTasks); + msg->setTotalTasks(numTasks); + for (int i = 0; i < numTasks; ++i) + { + Archive::get(source, taskType); + Archive::get(source, numParameters); + std::string tempParam; + std::vector paramVector; + for(int j = 0; j < numParameters; ++j) + { + Archive::get(source, tempParam); + paramVector.push_back(tempParam); + } + + msg->addTask(taskType, paramVector); + } + + std::string rewards; + Archive::get(source, rewards); + msg->setRewards(rewards); + + bool recipe; + Archive::get(source, recipe); + msg->setRecipe(recipe); + + NetworkId recipeOID; + Archive::get(source, recipeOID); + msg->setRecipeOID(recipeOID); + + int shareAmount; + Archive::get(source, shareAmount); + msg->setShareAmount(shareAmount); + + return msg; +} + +void MessageQueueCreateSaga::addTask(int taskType, std::vector & parameters) +{ + m_tasks.push_back(TaskInfo(taskType, parameters)); +} + +//---------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCreateSaga.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCreateSaga.h new file mode 100644 index 00000000..b6ca6055 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCreateSaga.h @@ -0,0 +1,170 @@ +//======================================================================== +// +// MessageQueueCreateSaga.h +// +// copyright 2009 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + + +#ifndef INCLUDED_MessageQueueCreateSaga_H +#define INCLUDED_MessageQueueCreateSaga_H + +#include "sharedFoundation/MessageQueue.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; + +class MessageQueueCreateSaga : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + struct TaskInfo + { + public: + TaskInfo() + { + + } + + TaskInfo(int type, std::vector params) + { + taskType = type; + numParameters = params.size(); + for(int i = 0; i < numParameters; ++i) + parameters.push_back(params[i]); + } + + int taskType; // Saga Task Type. + + int numParameters; + std::vector parameters; + private: + TaskInfo & operator = (const TaskInfo &); + }; + +public: + + MessageQueueCreateSaga(); + virtual ~MessageQueueCreateSaga(); + + void setTotalTasks(int total); + int getTotalTasks() const; + + void addTask(int taskType, std::vector & parameters); + const std::vector & getTasks() const; + + void setQuestName(std::string name); + std::string const & getQuestName() const; + + void setQuestDescription(std::string desc); + std::string const & getQuestDescription() const; + + void setRewards(std::string rewards); + std::string const & getRewards() const; + + void setRecipe(bool recipe); + bool isRecipe() const; + + void setRecipeOID(NetworkId const & id); + NetworkId const & getRecipeOID() const; + + void setShareAmount(int amount); + int getShareAmount() const; + +private: + std::string m_questName; + std::string m_questDescription; + std::vector m_tasks; + int m_totalTasks; + std::string m_rewards; + int m_recipe; + NetworkId m_oldRecipeId; + int m_shareAmount; +}; + +inline MessageQueueCreateSaga::MessageQueueCreateSaga() +{ + +} + +inline void MessageQueueCreateSaga::setRecipeOID(NetworkId const & id) +{ + m_oldRecipeId = id; +} + +inline NetworkId const & MessageQueueCreateSaga::getRecipeOID() const +{ + return m_oldRecipeId; +} + +inline void MessageQueueCreateSaga::setRecipe(bool recipe) +{ + m_recipe = recipe; +} + +inline bool MessageQueueCreateSaga::isRecipe() const +{ + return m_recipe; +} + +inline void MessageQueueCreateSaga::setTotalTasks(int total) +{ + m_totalTasks = total; +} + +inline int MessageQueueCreateSaga::getTotalTasks() const +{ + return m_totalTasks; +} + +inline void MessageQueueCreateSaga::setShareAmount(int amount) +{ + m_shareAmount = amount; +} + +inline int MessageQueueCreateSaga::getShareAmount() const +{ + return m_shareAmount; +} + +inline const std::vector & MessageQueueCreateSaga::getTasks() const +{ + return m_tasks; +} + +inline void MessageQueueCreateSaga::setQuestName(std::string name) +{ + m_questName = name; +} + +inline std::string const & MessageQueueCreateSaga::getQuestName() const +{ + return m_questName; +} + +inline void MessageQueueCreateSaga::setQuestDescription(std::string desc) +{ + m_questDescription = desc; +} + +inline std::string const & MessageQueueCreateSaga::getQuestDescription() const +{ + return m_questDescription; +} + +inline void MessageQueueCreateSaga::setRewards(std::string rewards) +{ + m_rewards = rewards; +} + +inline std::string const & MessageQueueCreateSaga::getRewards() const +{ + return m_rewards; +} + +#endif // INCLUDED_MessageQueueCreateSaga_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCyberneticsChangeRequest.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCyberneticsChangeRequest.cpp new file mode 100644 index 00000000..58d7567a --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCyberneticsChangeRequest.cpp @@ -0,0 +1,58 @@ +//======================================================================== +// +// MessageQueueCyberneticsChangeRequest.cpp +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueCyberneticsChangeRequest.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +//=================================================================== + +CONTROLLER_MESSAGE_ALLOW_FROM_CLIENT_IMPLEMENTATION(MessageQueueCyberneticsChangeRequest, CM_cyberneticsChangeRequest); + +//=================================================================== + +/** + * Class destructor. + */ +MessageQueueCyberneticsChangeRequest::~MessageQueueCyberneticsChangeRequest() +{ +} // MessageQueueCyberneticsChangeRequest::~MessageQueueCyberneticsChangeRequest + +//---------------------------------------------------------------------- + +void MessageQueueCyberneticsChangeRequest::pack (const MessageQueue::Data* const data, Archive::ByteStream & target) +{ + const MessageQueueCyberneticsChangeRequest* const msg = safe_cast (data); + if (msg) + { + Archive::put(target, msg->getChangeType()); + Archive::put(target, msg->getCyberneticPiece()); + Archive::put(target, msg->getTarget()); + } +} + +//----------------------------------------------------------------------- + +MessageQueue::Data* MessageQueueCyberneticsChangeRequest::unpack (Archive::ReadIterator & source) +{ + int changeTypeInt = -1; + NetworkId cyberneticPiece; + NetworkId target; + + Archive::get(source, changeTypeInt); + Archive::get(source, cyberneticPiece); + Archive::get(source, target); + + return new MessageQueueCyberneticsChangeRequest(static_cast(changeTypeInt), cyberneticPiece, target); +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCyberneticsChangeRequest.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCyberneticsChangeRequest.h new file mode 100644 index 00000000..7f6ea909 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCyberneticsChangeRequest.h @@ -0,0 +1,83 @@ +//======================================================================== +// +// MessageQueueCyberneticsChangeRequest.h +// +// copyright 2005 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + +#ifndef INCLUDED_MessageQueueCyberneticsChangeRequest_H +#define INCLUDED_MessageQueueCyberneticsChangeRequest_H + +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; + +//======================================================================== + +class MessageQueueCyberneticsChangeRequest : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + enum ChangeType + { + CT_INSTALL, + CT_UNINSTALL, + CT_REPAIR + }; + +public: + MessageQueueCyberneticsChangeRequest(ChangeType changeType, const NetworkId & cyberneticPiece, const NetworkId & npc); + virtual ~MessageQueueCyberneticsChangeRequest(); + + ChangeType getChangeType() const; + NetworkId const & getCyberneticPiece() const; + //this will be the npc id when coming from the client, then will be the player Id when forwarded to the auth server for the npc + NetworkId const & getTarget() const; + +private: + ChangeType m_changeType; + NetworkId m_cyberneticPiece; + NetworkId m_target; + +private: + MessageQueueCyberneticsChangeRequest (const MessageQueueCyberneticsChangeRequest &); + MessageQueueCyberneticsChangeRequest & operator= (const MessageQueueCyberneticsChangeRequest &); +}; + +//======================================================================== + +inline MessageQueueCyberneticsChangeRequest::MessageQueueCyberneticsChangeRequest(MessageQueueCyberneticsChangeRequest::ChangeType const changeType, NetworkId const & cyberneticPiece, const NetworkId & target) : +m_changeType(changeType), +m_cyberneticPiece(cyberneticPiece), +m_target(target) +{ +} + +//------------------------------------------------------------------------ + +inline MessageQueueCyberneticsChangeRequest::ChangeType MessageQueueCyberneticsChangeRequest::getChangeType() const +{ + return m_changeType; +} + +//------------------------------------------------------------------------ + +inline NetworkId const & MessageQueueCyberneticsChangeRequest::getCyberneticPiece() const +{ + return m_cyberneticPiece; +} + +//------------------------------------------------------------------------ + +inline NetworkId const & MessageQueueCyberneticsChangeRequest::getTarget() const +{ + return m_target; +} + +//======================================================================== + +#endif // INCLUDED_MessageQueueCyberneticsChangeRequest_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCyberneticsOpen.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCyberneticsOpen.cpp new file mode 100644 index 00000000..9b668f67 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCyberneticsOpen.cpp @@ -0,0 +1,55 @@ +//======================================================================== +// +// MessageQueueCyberneticsOpen.cpp +// +// copyright 2005 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueCyberneticsOpen.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +//=================================================================== + +CONTROLLER_MESSAGE_IMPLEMENTATION(MessageQueueCyberneticsOpen, CM_cyberneticsOpen); + +//=================================================================== + +/** + * Class destructor. + */ +MessageQueueCyberneticsOpen::~MessageQueueCyberneticsOpen() +{ +} // MessageQueueCyberneticsOpen::~MessageQueueCyberneticsOpen + +//---------------------------------------------------------------------- + +void MessageQueueCyberneticsOpen::pack (const MessageQueue::Data* const data, Archive::ByteStream & target) +{ + const MessageQueueCyberneticsOpen* const msg = safe_cast (data); + if (msg) + { + Archive::put(target, msg->getOpenType()); + Archive::put(target, msg->getNPC()); + } +} + +//----------------------------------------------------------------------- + +MessageQueue::Data* MessageQueueCyberneticsOpen::unpack (Archive::ReadIterator & source) +{ + int openTypeInt = -1; + NetworkId npc; + + Archive::get(source, openTypeInt); + Archive::get(source, npc); + + return new MessageQueueCyberneticsOpen(static_cast(openTypeInt), npc); +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCyberneticsOpen.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCyberneticsOpen.h new file mode 100644 index 00000000..cd28f54d --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueCyberneticsOpen.h @@ -0,0 +1,76 @@ +//======================================================================== +// +// MessageQueueCyberneticsOpen.h +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + + +#ifndef INCLUDED_MessageQueueCyberneticsOpen_H +#define INCLUDED_MessageQueueCyberneticsOpen_H + +#include "sharedFoundation/MessageQueue.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; + +//=================================================================== + +class MessageQueueCyberneticsOpen : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + enum OpenType + { + OT_INSTALL, + OT_UNINSTALL, + OT_REPAIR, + OT_VIEW + }; + +public: + + MessageQueueCyberneticsOpen(OpenType openType, NetworkId const & npc); + virtual ~MessageQueueCyberneticsOpen(); + + OpenType getOpenType() const; + NetworkId const & getNPC() const; + +private: + OpenType m_openType; + NetworkId m_npc; + +private: + MessageQueueCyberneticsOpen (MessageQueueCyberneticsOpen const &); + MessageQueueCyberneticsOpen & operator= (MessageQueueCyberneticsOpen const &); +}; + +//=================================================================== + +inline MessageQueueCyberneticsOpen::MessageQueueCyberneticsOpen(MessageQueueCyberneticsOpen::OpenType const openType, NetworkId const & npc) : +m_openType(openType), +m_npc(npc) +{ +} // MessageQueueCyberneticsOpen::MessageQueueCyberneticsOpen + +//---------------------------------------------------------------------- + +inline MessageQueueCyberneticsOpen::OpenType MessageQueueCyberneticsOpen::getOpenType() const +{ + return m_openType; +} + +//---------------------------------------------------------------------- + +inline NetworkId const & MessageQueueCyberneticsOpen::getNPC() const +{ + return m_npc; +} + +//=================================================================== + +#endif // INCLUDED_MessageQueueCyberneticsOpen_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDataTransform.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDataTransform.cpp new file mode 100644 index 00000000..a5e81f61 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDataTransform.cpp @@ -0,0 +1,83 @@ +// ====================================================================== +// +// MessageQueueDataTransform.cpp +// copyright 2000 Verant Interactive +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueDataTransform.h" + +#include "sharedMathArchive/TransformArchive.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +// ====================================================================== + +CONTROLLER_MESSAGE_ALLOW_FROM_CLIENT_IMPLEMENTATION (MessageQueueDataTransform, CM_netUpdateTransform); + +// ====================================================================== + +MessageQueueDataTransform::MessageQueueDataTransform (const uint32 syncStamp, const int sequenceNumber, const Transform& source, const float speed, + const float lookAtYaw, const bool useLookAtYaw) : + Data (), + m_syncStamp (syncStamp), + m_sequenceNumber (sequenceNumber), + m_transform (source), + m_speed (speed), + m_lookAtYaw (lookAtYaw), + m_useLookAtYaw (useLookAtYaw) +{ +} + +// ---------------------------------------------------------------------- + +MessageQueueDataTransform::~MessageQueueDataTransform () +{ +} + +// ---------------------------------------------------------------------- + +void MessageQueueDataTransform::pack (const MessageQueue::Data* const data, Archive::ByteStream& target) +{ + const MessageQueueDataTransform* const message = safe_cast (data); + if (message) + { + Archive::put (target, message->getSyncStamp ()); + Archive::put (target, message->getSequenceNumber ()); + Archive::put (target, message->getTransform ()); + Archive::put (target, message->getSpeed ()); + Archive::put (target, message->getLookAtYaw()); + Archive::put (target, message->getUseLookAtYaw()); + } +} + +// ---------------------------------------------------------------------- + +MessageQueue::Data* MessageQueueDataTransform::unpack (Archive::ReadIterator& source) +{ + uint32 syncStamp = 0; + Archive::get (source, syncStamp); + + int sequenceNumber = 0; + Archive::get (source, sequenceNumber); + + Transform transform; + Archive::get (source, transform); + + float speed = 0.f; + Archive::get (source, speed); + + float lookAtYaw = 0.f; + Archive::get (source, lookAtYaw); + + bool useLookAtYaw = false; + Archive::get (source, useLookAtYaw); + + return new MessageQueueDataTransform (syncStamp, sequenceNumber, transform, speed, lookAtYaw, useLookAtYaw); +} + +// ====================================================================== + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDataTransform.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDataTransform.h new file mode 100644 index 00000000..2244d233 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDataTransform.h @@ -0,0 +1,99 @@ +// ====================================================================== +// +// MessageQueueDataTransform.h +// copyright 2000 Verant Interactive +// +// ====================================================================== + +#ifndef INCLUDED_MessageQueueDataTransform_H +#define INCLUDED_MessageQueueDataTransform_H + +// ====================================================================== + +#include "sharedFoundation/MessageQueue.h" +#include "sharedMath/Transform.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; +class Transform; + +// ====================================================================== + +class MessageQueueDataTransform : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + MessageQueueDataTransform (uint32 syncStamp, int sequenceNumber, const Transform& source, float speed, const float lookAtYaw, const bool useLookAtYaw); + virtual ~MessageQueueDataTransform (); + + uint32 getSyncStamp () const; + int getSequenceNumber () const; + const Transform& getTransform () const; + float getSpeed () const; + float getLookAtYaw () const; + bool getUseLookAtYaw () const; + +private: + + MessageQueueDataTransform (); + MessageQueueDataTransform& operator= (const MessageQueueDataTransform& source); + MessageQueueDataTransform (const MessageQueueDataTransform& source); + +private: + + const uint32 m_syncStamp; + const int32 m_sequenceNumber; + const Transform m_transform; + const float m_speed; + float m_lookAtYaw; + bool m_useLookAtYaw; +}; + +// ---------------------------------------------------------------------- + +inline uint32 MessageQueueDataTransform::getSyncStamp () const +{ + return m_syncStamp; +} + +// ---------------------------------------------------------------------- + +inline int MessageQueueDataTransform::getSequenceNumber () const +{ + return m_sequenceNumber; +} + +// ---------------------------------------------------------------------- + +inline const Transform& MessageQueueDataTransform::getTransform () const +{ + return m_transform; +} + +// ---------------------------------------------------------------------- + +inline float MessageQueueDataTransform::getSpeed () const +{ + return m_speed; +} + +// ---------------------------------------------------------------------- + +inline float MessageQueueDataTransform::getLookAtYaw() const +{ + return m_lookAtYaw; +} + +// ---------------------------------------------------------------------- + +inline bool MessageQueueDataTransform::getUseLookAtYaw() const +{ + return m_useLookAtYaw; +} + + +// ====================================================================== + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDataTransformWithParent.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDataTransformWithParent.cpp new file mode 100644 index 00000000..11c6d313 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDataTransformWithParent.cpp @@ -0,0 +1,88 @@ +// ====================================================================== +// +// MessageQueueDataTransformWithParent.cpp +// copyright 2001, sony online entertainment +// +// ====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueDataTransformWithParent.h" + +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedMathArchive/TransformArchive.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +// ====================================================================== + +CONTROLLER_MESSAGE_ALLOW_FROM_CLIENT_IMPLEMENTATION (MessageQueueDataTransformWithParent, CM_netUpdateTransformWithParent); + +// ====================================================================== + +MessageQueueDataTransformWithParent::MessageQueueDataTransformWithParent (const uint32 syncStamp, const int sequenceNumber, const NetworkId& parent, const Transform& transform, const float speed, + const float lookAtYaw, const bool useLookAtYaw) : + Data (), + m_syncStamp (syncStamp), + m_sequenceNumber (sequenceNumber), + m_parent (parent), + m_transform (transform), + m_speed (speed), + m_lookAtYaw (lookAtYaw), + m_useLookAtYaw (useLookAtYaw) +{ +} + +// ---------------------------------------------------------------------- + +MessageQueueDataTransformWithParent::~MessageQueueDataTransformWithParent () +{ +} + +// ---------------------------------------------------------------------- + +void MessageQueueDataTransformWithParent::pack (const MessageQueue::Data* const data, Archive::ByteStream & target) +{ + const MessageQueueDataTransformWithParent* const message = safe_cast (data); + if (message) + { + Archive::put (target, message->getSyncStamp ()); + Archive::put (target, message->getSequenceNumber ()); + Archive::put (target, message->getParent ()); + Archive::put (target, message->getTransform ()); + Archive::put (target, message->getSpeed ()); + Archive::put (target, message->getLookAtYaw ()); + Archive::put (target, message->getUseLookAtYaw ()); + } +} + +// ---------------------------------------------------------------------- + +MessageQueue::Data* MessageQueueDataTransformWithParent::unpack (Archive::ReadIterator & source) +{ + uint32 syncStamp = 0; + Archive::get (source, syncStamp); + + int sequenceNumber = 0; + Archive::get (source, sequenceNumber); + + NetworkId parent; + Archive::get (source, parent); + + Transform transform; + Archive::get (source, transform); + + float speed = 0.f; + Archive::get (source, speed); + + float lookAtYaw = 0.f; + Archive::get (source, lookAtYaw); + + bool useLookAtYaw = false; + Archive::get (source, useLookAtYaw); + + return new MessageQueueDataTransformWithParent (syncStamp, sequenceNumber, parent, transform, speed, lookAtYaw, useLookAtYaw); +} + +// ====================================================================== + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDataTransformWithParent.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDataTransformWithParent.h new file mode 100644 index 00000000..69689c76 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDataTransformWithParent.h @@ -0,0 +1,109 @@ +// ====================================================================== +// +// MessageQueueDataTransformWithParent.h +// copyright 2001, sony online entertainment +// +// ====================================================================== + +#ifndef INCLUDED_MessageQueueDataTransformWithParent_H +#define INCLUDED_MessageQueueDataTransformWithParent_H + +// ====================================================================== + +#include "sharedFoundation/MessageQueue.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedMath/Transform.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; + +// ====================================================================== + +class MessageQueueDataTransformWithParent : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + MessageQueueDataTransformWithParent (uint32 syncStamp, int sequenceNumber, const NetworkId& parent, const Transform& transform, float speed, const float lookAtYaw, const bool lookAtYawIsValid); + virtual ~MessageQueueDataTransformWithParent (); + + uint32 getSyncStamp () const; + int getSequenceNumber () const; + const NetworkId& getParent () const; + const Transform& getTransform () const; + float getSpeed () const; + float getLookAtYaw () const; + bool getUseLookAtYaw () const; + +private: + + MessageQueueDataTransformWithParent (); + MessageQueueDataTransformWithParent& operator= (const MessageQueueDataTransformWithParent& source); + MessageQueueDataTransformWithParent (const MessageQueueDataTransformWithParent& source); + +private: + + const uint32 m_syncStamp; + const int32 m_sequenceNumber; + const NetworkId m_parent; + const Transform m_transform; + const float m_speed; + const float m_lookAtYaw; + const bool m_useLookAtYaw; +}; + +// ====================================================================== + +inline const NetworkId& MessageQueueDataTransformWithParent::getParent () const +{ + return m_parent; +} + +// ---------------------------------------------------------------------- + +inline uint32 MessageQueueDataTransformWithParent::getSyncStamp () const +{ + return m_syncStamp; +} + +// ---------------------------------------------------------------------- + +inline int MessageQueueDataTransformWithParent::getSequenceNumber () const +{ + return m_sequenceNumber; +} + +// ---------------------------------------------------------------------- + +inline const Transform& MessageQueueDataTransformWithParent::getTransform () const +{ + return m_transform; +} + +// ---------------------------------------------------------------------- + +inline float MessageQueueDataTransformWithParent::getSpeed () const +{ + return m_speed; +} + +// ---------------------------------------------------------------------- + +inline float MessageQueueDataTransformWithParent::getLookAtYaw() const +{ + return m_lookAtYaw; +} + +// ---------------------------------------------------------------------- + +inline bool MessageQueueDataTransformWithParent::getUseLookAtYaw() const +{ + return m_useLookAtYaw; +} + +// ====================================================================== + +#endif + + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSchematics.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSchematics.cpp new file mode 100644 index 00000000..aacb3757 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSchematics.cpp @@ -0,0 +1,112 @@ +//======================================================================== +// +// MessageQueueDraftSchematics.cpp +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueDraftSchematics.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" + +//=================================================================== + +CONTROLLER_MESSAGE_IMPLEMENTATION(MessageQueueDraftSchematics, CM_draftSchematicsMessage); + +//=================================================================== + + +/** +* Class destructor. +*/ +MessageQueueDraftSchematics::~MessageQueueDraftSchematics() +{ +} // MessageQueueDraftSchematics::~MessageQueueDraftSchematics + +//---------------------------------------------------------------------- + +MessageQueueDraftSchematics::MessageQueueDraftSchematics(const NetworkId & toolId, + const NetworkId & stationId) : +m_schematics (), +m_toolId (toolId), +m_stationId (stationId) +{ +} // MessageQueueDraftSchematics::MessageQueueDraftSchematics() + +//---------------------------------------------------------------------- + +void MessageQueueDraftSchematics::addSchematic(const std::pair & crc, + int category) +{ + m_schematics.push_back(SchematicData(crc.first, crc.second, category)); +} // MessageQueueDraftSchematics::addSchematic + +//---------------------------------------------------------------------- + +int MessageQueueDraftSchematics::getSchematicCount(void) const +{ + return m_schematics.size(); +} // MessageQueueDraftSchematics::getSchematicCount + +//---------------------------------------------------------------------- + +const MessageQueueDraftSchematics::SchematicData & MessageQueueDraftSchematics::getSchematic(int index) const +{ + DEBUG_FATAL(index < 0 || index >= static_cast(m_schematics.size()), + ("MessageQueueDraftSchematics::getSchematic index out of range")); + return m_schematics.at(index); +} // MessageQueueDraftSchematics::getSchematic + +//---------------------------------------------------------------------- + +void MessageQueueDraftSchematics::pack (const MessageQueue::Data* const data, Archive::ByteStream & target) +{ + const MessageQueueDraftSchematics* const msg = safe_cast (data); + if (msg) + { + Archive::put(target, msg->getToolId ()); + Archive::put(target, msg->getStationId ()); + + int count = msg->getSchematicCount(); + Archive::put(target, count); + for (int i = 0; i < count; ++i) + { + const MessageQueueDraftSchematics::SchematicData & data = msg->getSchematic(i); + Archive::put(target, data.serverCrc); + Archive::put(target, data.sharedCrc); + Archive::put(target, data.category); + } + } +} + +//----------------------------------------------------------------------- + +MessageQueue::Data* MessageQueueDraftSchematics::unpack(Archive::ReadIterator & source) +{ + NetworkId toolId, stationId; + Archive::get(source, toolId); + Archive::get(source, stationId); + + MessageQueueDraftSchematics* const msg = new MessageQueueDraftSchematics(toolId, stationId); + NOT_NULL(msg); + + int count, category; + uint32 serverCrc, sharedCrc; + Archive::get(source, count); + for (int i = 0; i < count; ++i) + { + Archive::get(source, serverCrc); + Archive::get(source, sharedCrc); + Archive::get(source, category); + msg->addSchematic(std::make_pair(serverCrc, sharedCrc), category); + } + + return msg; +} + +//---------------------------------------------------------------------- diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSchematics.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSchematics.h new file mode 100644 index 00000000..39acc351 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSchematics.h @@ -0,0 +1,73 @@ +//======================================================================== +// +// MessageQueueDraftSchematics.h +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + + +#ifndef INCLUDED_MessageQueueDraftSchematics_H +#define INCLUDED_MessageQueueDraftSchematics_H + +#include "sharedFoundation/MessageQueue.h" +#include "sharedNetworkMessages/MessageQueueDraftSchematicsData.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; +//---------------------------------------------------------------------- + +// @todo: can we get by with a single category value for the entire message? +class MessageQueueDraftSchematics : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + typedef MessageQueueDraftSchematicsData SchematicData; + + typedef stdvector::fwd SchematicVector; + +public: + + MessageQueueDraftSchematics(const NetworkId & toolId, const NetworkId & stationId); + virtual ~MessageQueueDraftSchematics(); + + void addSchematic(const std::pair & crc, int category); + int getSchematicCount(void) const; + const SchematicData & getSchematic(int index) const; + const SchematicVector & getSchematics () const; + const NetworkId & getToolId () const; + const NetworkId & getStationId () const; + +private: + SchematicVector m_schematics; + NetworkId m_toolId; + NetworkId m_stationId; +}; + +//---------------------------------------------------------------------- + +inline const MessageQueueDraftSchematics::SchematicVector & MessageQueueDraftSchematics::getSchematics () const +{ + return m_schematics; +} + +//---------------------------------------------------------------------- + +inline const NetworkId & MessageQueueDraftSchematics::getToolId () const +{ + return m_toolId; +} + +//---------------------------------------------------------------------- + +inline const NetworkId & MessageQueueDraftSchematics::getStationId () const +{ + return m_stationId; +} + +//---------------------------------------------------------------------- + + +#endif // INCLUDED_MessageQueueDraftSchematics_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSchematicsData.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSchematicsData.cpp new file mode 100644 index 00000000..c50d18c8 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSchematicsData.cpp @@ -0,0 +1,9 @@ +//====================================================================== +// +// MessageQueueDraftSchematicsData.cpp +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueDraftSchematicsData.h" diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSchematicsData.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSchematicsData.h new file mode 100644 index 00000000..170dc16e --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSchematicsData.h @@ -0,0 +1,33 @@ +//====================================================================== +// +// MessageQueueDraftSchematicsData.h +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#ifndef INCLUDED_MessageQueueDraftSchematicsData_H +#define INCLUDED_MessageQueueDraftSchematicsData_H + +//====================================================================== + +struct MessageQueueDraftSchematicsData +{ + uint32 serverCrc; + uint32 sharedCrc; + int category; + + MessageQueueDraftSchematicsData(uint32 _serverCrc, uint32 _sharedCrc, int _category); +}; + + +inline MessageQueueDraftSchematicsData::MessageQueueDraftSchematicsData( + uint32 _serverCrc, uint32 _sharedCrc, int _category) : + serverCrc(_serverCrc), + sharedCrc(_sharedCrc), + category(_category) +{ +} + +//====================================================================== + +#endif diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSlots.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSlots.cpp new file mode 100644 index 00000000..d7c820d2 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSlots.cpp @@ -0,0 +1,94 @@ +//======================================================================== +// +// MessageQueueDraftSlots.cpp +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueDraftSlots.h" + +#include "sharedFoundation/ExitChain.h" +#include "sharedFoundation/GameControllerMessage.h" +#include "sharedFoundation/MemoryBlockManager.h" +#include "sharedNetworkMessages/ControllerMessageFactory.h" +#include "sharedNetworkMessages/MessageQueueCraftIngredients.h" +#include "sharedNetworkMessages/MessageQueueDraftSlotsDataArchive.h" + +//=================================================================== + +CONTROLLER_MESSAGE_IMPLEMENTATION(MessageQueueDraftSlots, CM_draftSlotsMessage); + +//=================================================================== + +/** + * Class destructor. + */ +MessageQueueDraftSlots::~MessageQueueDraftSlots() +{ +} + +//---------------------------------------------------------------------- + +void MessageQueueDraftSlots::pack (const MessageQueue::Data* const data, Archive::ByteStream & target) +{ + const MessageQueueDraftSlots* const msg = safe_cast (data); + if (msg) + { + Archive::put (target, msg->getToolId()); + Archive::put (target, msg->getManfSchemId()); + Archive::put (target, msg->getPrototypeId()); + Archive::put (target, msg->getVolume()); + Archive::put (target, msg->canManufacture()); + + int slotCount = msg->getSlotCount(); + Archive::put (target, slotCount); + + for (int i = 0; i < slotCount; ++i) + { + const MessageQueueDraftSlots::Slot & slot = msg->getSlot(i); + Archive::put (target, slot); + } + } +} + +//---------------------------------------------------------------------- + +MessageQueue::Data* MessageQueueDraftSlots::unpack(Archive::ReadIterator & source) +{ + NetworkId toolId; + NetworkId manfSchemId; + NetworkId testProtoId; + int volume; + bool canManufacture; + + Archive::get(source, toolId); + Archive::get(source, manfSchemId); + Archive::get(source, testProtoId); + Archive::get(source, volume); + Archive::get(source, canManufacture); + + MessageQueueDraftSlots * const msg = new MessageQueueDraftSlots(toolId, manfSchemId); + NOT_NULL(msg); + + msg->setPrototypeId(testProtoId); + msg->setVolume(volume); + msg->setCanManufacture(canManufacture); + + MessageQueueDraftSlots::Slot slot; + + int slotCount = 0; + Archive::get(source, slotCount); + for (int i = 0; i < slotCount; ++i) + { + Archive::get(source, slot); + msg->addSlot (slot); + slot.options.clear (); + } + + return msg; +} +//----------------------------------------------------------------------- + diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSlots.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSlots.h new file mode 100644 index 00000000..8514b2f3 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSlots.h @@ -0,0 +1,181 @@ +//======================================================================== +// +// MessageQueueDraftSlots.h +// +// copyright 2001 Sony Online Entertainment, Inc. +// All rights reserved. +// +//======================================================================== + + +#ifndef INCLUDED_MessageQueueDraftSlots_H +#define INCLUDED_MessageQueueDraftSlots_H + +#include "sharedFoundation/MessageQueue.h" +#include "sharedFoundation/NetworkId.h" +#include "sharedNetworkMessages/MessageQueueDraftSlotsData.h" +#include "sharedNetworkMessages/ControllerMessageMacros.h" + +class MemoryBlockManager; +//---------------------------------------------------------------------- + +class MessageQueueDraftSlots : public MessageQueue::Data +{ + CONTROLLER_MESSAGE_INTERFACE; + +public: + + typedef MessageQueueDraftSlotsData::Option Option; + typedef MessageQueueDraftSlotsData Slot; + +public: + + explicit MessageQueueDraftSlots(const NetworkId & toolId, const NetworkId & manfSchemId); + virtual ~MessageQueueDraftSlots(); + + const NetworkId & getToolId(void) const; + + void addSlot(const Slot & slot); + int getSlotCount(void) const; + const Slot & getSlot(int index) const; + + typedef stdvector::fwd SlotVector; + const SlotVector & getSlots () const; + void setSlots (const SlotVector & sv); + + void setManfSchemId (const NetworkId & id); + const NetworkId & getManfSchemId () const; + + void setPrototypeId (const NetworkId & id); + const NetworkId & getPrototypeId () const; + + void setVolume (int volume); + int getVolume () const; + + void setCanManufacture(bool canManufacture); + bool canManufacture() const; + +private: + std::vector m_slots; + NetworkId m_toolId; + NetworkId m_manfSchemId; + NetworkId m_prototypeId; + int m_volume; + bool m_canManufacture; +}; + + +//---------------------------------------------------------------------- + +inline MessageQueueDraftSlots::MessageQueueDraftSlots(const NetworkId & toolId, const NetworkId & manfSchemId) : +m_slots (), +m_toolId (toolId), +m_manfSchemId (manfSchemId), +m_prototypeId (), +m_volume (1) +{ +} + +//---------------------------------------------------------------------- + +inline const NetworkId & MessageQueueDraftSlots::getToolId(void) const +{ + return m_toolId; +} + +//---------------------------------------------------------------------- + +inline void MessageQueueDraftSlots::addSlot(const MessageQueueDraftSlots::Slot & slot) +{ + m_slots.push_back(slot); +} + +//---------------------------------------------------------------------- + +inline int MessageQueueDraftSlots::getSlotCount(void) const +{ + return m_slots.size(); +} + +//---------------------------------------------------------------------- + +inline const MessageQueueDraftSlots::Slot & MessageQueueDraftSlots::getSlot(int index) const +{ + DEBUG_FATAL(index < 0 || index >= static_cast(m_slots.size()), ("MessageQueueDraftSlots::getSlot index out of range")); + return m_slots.at(index); +} + +//---------------------------------------------------------------------- + +inline void MessageQueueDraftSlots::setSlots (const SlotVector & sv) +{ + m_slots = sv; +} + +//---------------------------------------------------------------------- + +inline const MessageQueueDraftSlots::SlotVector & MessageQueueDraftSlots::getSlots () const +{ + return m_slots; +} + +//---------------------------------------------------------------------- + +inline void MessageQueueDraftSlots::setManfSchemId (const NetworkId & id) +{ + m_manfSchemId = id; +} + +//---------------------------------------------------------------------- + +inline const NetworkId & MessageQueueDraftSlots::getManfSchemId () const +{ + return m_manfSchemId; +} + +//---------------------------------------------------------------------- + +inline void MessageQueueDraftSlots::setPrototypeId (const NetworkId & id) +{ + m_prototypeId = id; +} + +//---------------------------------------------------------------------- + +inline const NetworkId & MessageQueueDraftSlots::getPrototypeId () const +{ + return m_prototypeId; +} + +//---------------------------------------------------------------------- + +inline void MessageQueueDraftSlots::setVolume (int volume) +{ + m_volume = volume; +} + +//---------------------------------------------------------------------- + +inline int MessageQueueDraftSlots::getVolume () const +{ + return m_volume; +} + +//---------------------------------------------------------------------- + +inline void MessageQueueDraftSlots::setCanManufacture(bool canManufacture) +{ + m_canManufacture = canManufacture; +} + +//---------------------------------------------------------------------- + +inline bool MessageQueueDraftSlots::canManufacture() const +{ + return m_canManufacture; +} + +//---------------------------------------------------------------------- + + +#endif // INCLUDED_MessageQueueDraftSlots_H diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSlotsData.cpp b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSlotsData.cpp new file mode 100644 index 00000000..e0c3b48c --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSlotsData.cpp @@ -0,0 +1,21 @@ +//====================================================================== +// +// MessageQueueDraftSlotsData.cpp +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#include "sharedNetworkMessages/FirstSharedNetworkMessages.h" +#include "sharedNetworkMessages/MessageQueueDraftSlotsData.h" + +//====================================================================== + +MessageQueueDraftSlotsData::MessageQueueDraftSlotsData () : +name (), +optional (false), +options (), +hardpoint () +{ +} + +//====================================================================== diff --git a/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSlotsData.h b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSlotsData.h new file mode 100644 index 00000000..9fe29f99 --- /dev/null +++ b/engine/shared/library/sharedNetworkMessages/src/shared/clientGameServer/MessageQueueDraftSlotsData.h @@ -0,0 +1,36 @@ + +//====================================================================== +// +// MessageQueueDraftSlotsData.h +// copyright (c) 2002 Sony Online Entertainment +// +//====================================================================== + +#ifndef INCLUDED_MessageQueueDraftSlotsData_H +#define INCLUDED_MessageQueueDraftSlotsData_H + +//====================================================================== + +#include "sharedNetworkMessages/MessageQueueDraftSlotsDataOption.h" +#include "StringId.h" +#include + +//---------------------------------------------------------------------- + +class MessageQueueDraftSlotsData +{ +public: + typedef MessageQueueDraftSlotsDataOption Option; + typedef stdvector