Browse Source

Merge pull request #390 from Hoikas/plMessage-headers

PCH-ize plMessage
Joseph Davies 10 years ago
parent
commit
7e624a08a2
  1. 1
      Sources/Plasma/PubUtilLib/plAvatar/plAGAnim.cpp
  2. 1
      Sources/Plasma/PubUtilLib/plAvatar/plAGMasterMod.cpp
  3. 5
      Sources/Plasma/PubUtilLib/plMessage/CMakeLists.txt
  4. 2
      Sources/Plasma/PubUtilLib/plMessage/Pch.cpp
  5. 25
      Sources/Plasma/PubUtilLib/plMessage/Pch.h
  6. 8
      Sources/Plasma/PubUtilLib/plMessage/plAIMsg.cpp
  7. 43
      Sources/Plasma/PubUtilLib/plMessage/plAccountUpdateMsg.cpp
  8. 28
      Sources/Plasma/PubUtilLib/plMessage/plAccountUpdateMsg.h
  9. 26
      Sources/Plasma/PubUtilLib/plMessage/plAnimCmdMsg.cpp
  10. 18
      Sources/Plasma/PubUtilLib/plMessage/plAnimCmdMsg.h
  11. 10
      Sources/Plasma/PubUtilLib/plMessage/plAvCoopMsg.cpp
  12. 9
      Sources/Plasma/PubUtilLib/plMessage/plAvatarMsg.cpp
  13. 1
      Sources/Plasma/PubUtilLib/plMessage/plAvatarMsg.h
  14. 4
      Sources/Plasma/PubUtilLib/plMessage/plBulletMsg.cpp
  15. 8
      Sources/Plasma/PubUtilLib/plMessage/plCCRMsg.cpp
  16. 2
      Sources/Plasma/PubUtilLib/plMessage/plCaptureRenderMsg.cpp
  17. 7
      Sources/Plasma/PubUtilLib/plMessage/plClimbMsg.cpp
  18. 6
      Sources/Plasma/PubUtilLib/plMessage/plDynaDecalEnableMsg.cpp
  19. 5
      Sources/Plasma/PubUtilLib/plMessage/plDynamicEnvMapMsg.cpp
  20. 6
      Sources/Plasma/PubUtilLib/plMessage/plDynamicTextMsg.cpp
  21. 42
      Sources/Plasma/PubUtilLib/plMessage/plElementRefMsg.h
  22. 2
      Sources/Plasma/PubUtilLib/plMessage/plExcludeRegionMsg.h
  23. 6
      Sources/Plasma/PubUtilLib/plMessage/plInputEventMsg.cpp
  24. 48
      Sources/Plasma/PubUtilLib/plMessage/plInputIfaceMgrMsg.cpp
  25. 55
      Sources/Plasma/PubUtilLib/plMessage/plInputIfaceMgrMsg.h
  26. 31
      Sources/Plasma/PubUtilLib/plMessage/plLOSHitMsg.cpp
  27. 46
      Sources/Plasma/PubUtilLib/plMessage/plLOSHitMsg.h
  28. 5
      Sources/Plasma/PubUtilLib/plMessage/plLOSRequestMsg.cpp
  29. 4
      Sources/Plasma/PubUtilLib/plMessage/plLayRefMsg.cpp
  30. 9
      Sources/Plasma/PubUtilLib/plMessage/plLinkToAgeMsg.cpp
  31. 1
      Sources/Plasma/PubUtilLib/plMessage/plLinkToAgeMsg.h
  32. 11
      Sources/Plasma/PubUtilLib/plMessage/plListenerMsg.cpp
  33. 3
      Sources/Plasma/PubUtilLib/plMessage/plListenerMsg.h
  34. 12
      Sources/Plasma/PubUtilLib/plMessage/plLoadAgeMsg.cpp
  35. 7
      Sources/Plasma/PubUtilLib/plMessage/plLoadAvatarMsg.cpp
  36. 11
      Sources/Plasma/PubUtilLib/plMessage/plLoadCloneMsg.cpp
  37. 5
      Sources/Plasma/PubUtilLib/plMessage/plMatrixUpdateMsg.cpp
  38. 5
      Sources/Plasma/PubUtilLib/plMessage/plMultistageMsg.cpp
  39. 14
      Sources/Plasma/PubUtilLib/plMessage/plNetCommMsgs.h
  40. 7
      Sources/Plasma/PubUtilLib/plMessage/plNetVoiceListMsg.cpp
  41. 6
      Sources/Plasma/PubUtilLib/plMessage/plOneShotCallbacks.cpp
  42. 3
      Sources/Plasma/PubUtilLib/plMessage/plOneShotMsg.cpp
  43. 9
      Sources/Plasma/PubUtilLib/plMessage/plRenderRequestMsg.cpp
  44. 6
      Sources/Plasma/PubUtilLib/plMessage/plResMgrHelperMsg.h
  45. 6
      Sources/Plasma/PubUtilLib/plMessage/plRideAnimatedPhysMsg.cpp
  46. 4
      Sources/Plasma/PubUtilLib/plMessage/plRippleShapeMsg.cpp
  47. 5
      Sources/Plasma/PubUtilLib/plMessage/plSimStateMsg.cpp
  48. 7
      Sources/Plasma/PubUtilLib/plMessage/plSwimMsg.cpp
  49. 5
      Sources/Plasma/PubUtilLib/plMessage/plSynchEnableMsg.cpp
  50. 3
      Sources/Plasma/PubUtilLib/plMessage/plTransitionMsg.cpp
  51. 41
      Sources/Plasma/PubUtilLib/plMessage/plUniqueIdsMsg.h
  52. 4
      Sources/Plasma/PubUtilLib/plMessage/plVaultNotifyMsg.cpp
  53. 2
      Sources/Plasma/PubUtilLib/plNetClient/plNetCliAgeLeaver.cpp
  54. 1
      Sources/Tools/MaxComponent/plClickDragComponent.cpp
  55. 1
      Sources/Tools/MaxComponent/plResponderAnim.cpp
  56. 1
      Sources/Tools/MaxConvert/hsControlConverter.cpp

1
Sources/Plasma/PubUtilLib/plAvatar/plAGAnim.cpp

@ -55,6 +55,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsResMgr.h" #include "hsResMgr.h"
// other // other
#include "plInterp/plAnimEaseTypes.h"
#include "plMessage/plAnimCmdMsg.h" #include "plMessage/plAnimCmdMsg.h"
///////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////

1
Sources/Plasma/PubUtilLib/plAvatar/plAGMasterMod.cpp

@ -55,6 +55,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plgDispatch.h" #include "plgDispatch.h"
// other // other
#include "plInterp/plAnimEaseTypes.h"
#include "plMessage/plAnimCmdMsg.h" #include "plMessage/plAnimCmdMsg.h"
#include "pnMessage/plSDLModifierMsg.h" #include "pnMessage/plSDLModifierMsg.h"
#include "pnMessage/plSDLNotificationMsg.h" #include "pnMessage/plSDLNotificationMsg.h"

5
Sources/Plasma/PubUtilLib/plMessage/CMakeLists.txt

@ -13,7 +13,6 @@ set(plMessage_SOURCES
plCaptureRenderMsg.cpp plCaptureRenderMsg.cpp
plCCRMsg.cpp plCCRMsg.cpp
plClimbMsg.cpp plClimbMsg.cpp
plCollideMsg.cpp
plDynaDecalEnableMsg.cpp plDynaDecalEnableMsg.cpp
plDynamicEnvMapMsg.cpp plDynamicEnvMapMsg.cpp
plDynamicTextMsg.cpp plDynamicTextMsg.cpp
@ -29,7 +28,6 @@ set(plMessage_SOURCES
plLOSRequestMsg.cpp plLOSRequestMsg.cpp
plMatrixUpdateMsg.cpp plMatrixUpdateMsg.cpp
plMultistageMsg.cpp plMultistageMsg.cpp
plNetCommMsgs.cpp
plNetVoiceListMsg.cpp plNetVoiceListMsg.cpp
plOneShotCallbacks.cpp plOneShotCallbacks.cpp
plOneShotMsg.cpp plOneShotMsg.cpp
@ -67,7 +65,6 @@ set(plMessage_HEADERS
plDynaDecalEnableMsg.h plDynaDecalEnableMsg.h
plDynamicEnvMapMsg.h plDynamicEnvMapMsg.h
plDynamicTextMsg.h plDynamicTextMsg.h
plElementRefMsg.h
plExcludeRegionMsg.h plExcludeRegionMsg.h
plInputEventMsg.h plInputEventMsg.h
plInputIfaceMgrMsg.h plInputIfaceMgrMsg.h
@ -117,10 +114,10 @@ set(plMessage_HEADERS
plTimerCallbackMsg.h plTimerCallbackMsg.h
plTransitionMsg.h plTransitionMsg.h
plTriggerMsg.h plTriggerMsg.h
plUniqueIdsMsg.h
plVaultNotifyMsg.h plVaultNotifyMsg.h
) )
use_precompiled_header(Pch.h Pch.cpp plMessage_HEADERS plMessage_SOURCES)
add_library(plMessage STATIC ${plMessage_SOURCES} ${plMessage_HEADERS}) add_library(plMessage STATIC ${plMessage_SOURCES} ${plMessage_HEADERS})
source_group("Source Files" FILES ${plMessage_SOURCES}) source_group("Source Files" FILES ${plMessage_SOURCES})

2
Sources/Plasma/PubUtilLib/plMessage/plCollideMsg.cpp → Sources/Plasma/PubUtilLib/plMessage/Pch.cpp

@ -39,3 +39,5 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
#include "Pch.h"

25
Sources/Plasma/PubUtilLib/plMessage/plNetCommMsgs.cpp → Sources/Plasma/PubUtilLib/plMessage/Pch.h

@ -39,10 +39,23 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
/*****************************************************************************
*
* $/Plasma20/Sources/Plasma/PubUtilLib/plMessage/plNetCommMsgs.cpp
*
***/
#include "plNetCommMsgs.h" // Plasma CoreLib
#include "HeadSpin.h"
#include "hsBitVector.h"
#include "hsColorRGBA.h"
#include "hsFastMath.h"
#include "hsGeometry3.h"
#include "hsStream.h"
#include "plString.h"
#include "hsTemplates.h"
// Plasma Nucleus
#include "plgDispatch.h"
#include "hsResMgr.h"
#include "pnKeyedObject/plFixedKey.h"
#include "pnKeyedObject/plKey.h"
#include "pnKeyedObject/plUoid.h"
#include "pnMessage/plMessage.h"
#include "pnNetCommon/plNetApp.h"

8
Sources/Plasma/PubUtilLib/plMessage/plAIMsg.cpp

@ -42,10 +42,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#ifndef SERVER // we use stuff the server doesn't link with #ifndef SERVER // we use stuff the server doesn't link with
#ifndef NO_AV_MSGS #ifndef NO_AV_MSGS
#include "plAIMsg.h"
#include "hsResMgr.h"
#include "hsStream.h" #include "hsStream.h"
#pragma hdrstop
#include "plAIMsg.h"
#include "plAvatar/plArmatureMod.h" #include "plAvatar/plArmatureMod.h"
@ -60,8 +60,6 @@ plAIMsg::plAIMsg(const plKey& sender, const plKey& receiver): plMessage(sender,
plArmatureMod* armMod = plArmatureMod::ConvertNoRef(sender->ObjectIsLoaded()); plArmatureMod* armMod = plArmatureMod::ConvertNoRef(sender->ObjectIsLoaded());
if (armMod) if (armMod)
fBrainUserStr = armMod->GetUserStr(); fBrainUserStr = armMod->GetUserStr();
else
fBrainUserStr = "";
} }
void plAIMsg::Read(hsStream* stream, hsResMgr* mgr) void plAIMsg::Read(hsStream* stream, hsResMgr* mgr)

43
Sources/Plasma/PubUtilLib/plMessage/plAccountUpdateMsg.cpp

@ -39,18 +39,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
#include "plAccountUpdateMsg.h"
#include "hsStream.h" #include "hsStream.h"
#pragma hdrstop
plAccountUpdateMsg::plAccountUpdateMsg() #include "plAccountUpdateMsg.h"
{
fUpdateType = 0;
}
plAccountUpdateMsg::plAccountUpdateMsg(unsigned updateType)
{
fUpdateType = updateType;
}
void plAccountUpdateMsg::Read(hsStream* stream, hsResMgr* mgr) void plAccountUpdateMsg::Read(hsStream* stream, hsResMgr* mgr)
{ {
@ -67,34 +61,3 @@ void plAccountUpdateMsg::Write(hsStream* stream, hsResMgr* mgr)
stream->WriteLE32(fResult); stream->WriteLE32(fResult);
stream->WriteLE32(fPlayerInt); stream->WriteLE32(fPlayerInt);
} }
unsigned plAccountUpdateMsg::GetUpdateType()
{
return fUpdateType;
}
void plAccountUpdateMsg::SetUpdateType(unsigned type)
{
fUpdateType = type;
}
unsigned plAccountUpdateMsg::GetResult()
{
return fResult;
}
void plAccountUpdateMsg::SetResult(unsigned result)
{
fResult = result;
}
unsigned plAccountUpdateMsg::GetPlayerInt()
{
return fPlayerInt;
}
void plAccountUpdateMsg::SetPlayerInt(unsigned playerInt)
{
fPlayerInt = playerInt;
}

28
Sources/Plasma/PubUtilLib/plMessage/plAccountUpdateMsg.h

@ -61,28 +61,28 @@ public:
kChangePassword, kChangePassword,
}; };
plAccountUpdateMsg(); plAccountUpdateMsg() : fUpdateType(0), fResult(0), fPlayerInt(0) { }
plAccountUpdateMsg(unsigned updateType); plAccountUpdateMsg(uint32_t updateType) : fUpdateType(updateType), fResult(0), fPlayerInt(0) { }
CLASSNAME_REGISTER(plAccountUpdateMsg);
GETINTERFACE_ANY(plAccountUpdateMsg, plMessage);
CLASSNAME_REGISTER( plAccountUpdateMsg );
GETINTERFACE_ANY( plAccountUpdateMsg, plMessage );
void Read(hsStream* stream, hsResMgr* mgr); void Read(hsStream* stream, hsResMgr* mgr);
void Write(hsStream* stream, hsResMgr* mgr); void Write(hsStream* stream, hsResMgr* mgr);
unsigned GetUpdateType(); uint32_t GetUpdateType() const { return fUpdateType; }
void SetUpdateType(unsigned type); void SetUpdateType(uint32_t type) { fUpdateType = type; }
unsigned GetResult(); uint32_t GetResult() const { return fResult; }
void SetResult(unsigned result); void SetResult(uint32_t result) { fResult = result; }
unsigned GetPlayerInt(); uint32_t GetPlayerInt() const { return fPlayerInt; }
void SetPlayerInt(unsigned playerInt); void SetPlayerInt(uint32_t playerInt) { fPlayerInt = playerInt; }
private: private:
unsigned fUpdateType; uint32_t fUpdateType;
unsigned fResult; uint32_t fResult;
unsigned fPlayerInt; uint32_t fPlayerInt;
}; };
#endif // plAccountUpdateMsg_inc #endif // plAccountUpdateMsg_inc

26
Sources/Plasma/PubUtilLib/plMessage/plAnimCmdMsg.cpp

@ -40,9 +40,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#include "HeadSpin.h"
#include "plAnimCmdMsg.h"
#include "hsStream.h" #include "hsStream.h"
#pragma hdrstop
#include "plAnimCmdMsg.h"
plAnimCmdMsg::~plAnimCmdMsg() plAnimCmdMsg::~plAnimCmdMsg()
{ {
@ -114,16 +115,6 @@ plAGCmdMsg::~plAGCmdMsg()
ClearCmd(); ClearCmd();
} }
void plAGCmdMsg::SetAnimName(const plString &name)
{
fAnimName = name;
}
plString plAGCmdMsg::GetAnimName()
{
return fAnimName;
}
void plAGCmdMsg::Read(hsStream* stream, hsResMgr* mgr) void plAGCmdMsg::Read(hsStream* stream, hsResMgr* mgr)
{ {
plMessage::IMsgRead(stream, mgr); plMessage::IMsgRead(stream, mgr);
@ -150,14 +141,3 @@ void plAGCmdMsg::Write(hsStream* stream, hsResMgr* mgr)
stream->WriteSafeString(fAnimName); stream->WriteSafeString(fAnimName);
} }
/////////////////////////////////////////////////////////////////////////////////////
void plAGDetachCallbackMsg::SetAnimName(const plString &name)
{
fAnimName = name;
}
plString plAGDetachCallbackMsg::GetAnimName()
{
return fAnimName;
}

18
Sources/Plasma/PubUtilLib/plMessage/plAnimCmdMsg.h

@ -45,11 +45,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnMessage/plMessageWithCallbacks.h" #include "pnMessage/plMessageWithCallbacks.h"
#include "hsBitVector.h" #include "hsBitVector.h"
#include "hsTemplates.h"
#include "hsGeometry3.h"
#include "plString.h" #include "plString.h"
#include "plInterp/plAnimEaseTypes.h"
#include "plInterp/plAnimTimeConvert.h"
class plAGAnimInstance; class plAGAnimInstance;
@ -112,7 +108,7 @@ public:
void SetCmd(int n) { fCmd.SetBit(n); } void SetCmd(int n) { fCmd.SetBit(n); }
void ClearCmd(); void ClearCmd();
void SetAnimName(const plString &name) { fAnimName = name; } void SetAnimName(const plString &name) { fAnimName = name; }
plString GetAnimName() { return fAnimName; } plString GetAnimName() const { return fAnimName; }
bool CmdChangesAnimTime(); // Will this command cause an update to the current anim time? bool CmdChangesAnimTime(); // Will this command cause an update to the current anim time?
void SetLoopName(const plString &name) { fLoopName = name; } void SetLoopName(const plString &name) { fLoopName = name; }
@ -166,8 +162,8 @@ public:
bool Cmd(int n) const { return fCmd.IsBitSet(n); } bool Cmd(int n) const { return fCmd.IsBitSet(n); }
void SetCmd(int n) { fCmd.SetBit(n); } void SetCmd(int n) { fCmd.SetBit(n); }
void ClearCmd() { fCmd.Clear(); } void ClearCmd() { fCmd.Clear(); }
void SetAnimName(const plString &name); void SetAnimName(const plString& name) { fAnimName = name; }
plString GetAnimName(); plString GetAnimName() const { return fAnimName; }
float fBlend; float fBlend;
float fBlendRate; float fBlendRate;
@ -209,13 +205,13 @@ public:
CLASSNAME_REGISTER( plAGDetachCallbackMsg ); CLASSNAME_REGISTER( plAGDetachCallbackMsg );
GETINTERFACE_ANY( plAGDetachCallbackMsg, plEventCallbackMsg ); GETINTERFACE_ANY( plAGDetachCallbackMsg, plEventCallbackMsg );
// These aren't meant to go across the net, so no IO necessary. // These aren't meant to go across the net, so no IO necessary.
void Read(hsStream* stream, hsResMgr* mgr) {} void Read(hsStream* stream, hsResMgr* mgr) {}
void Write(hsStream* stream, hsResMgr* mgr) {} void Write(hsStream* stream, hsResMgr* mgr) {}
void SetAnimName(const plString &name); void SetAnimName(const plString& name) { fAnimName = name; }
plString GetAnimName(); plString GetAnimName() const { return fAnimName; }
}; };

10
Sources/Plasma/PubUtilLib/plMessage/plAvCoopMsg.cpp

@ -42,12 +42,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#ifndef SERVER #ifndef SERVER
#ifndef NO_AV_MSGS #ifndef NO_AV_MSGS
// singular
#include "plAvCoopMsg.h"
// global
#include "hsStream.h" #include "hsStream.h"
#include "hsResMgr.h" #include "hsResMgr.h"
#pragma hdrstop
// singular
#include "plAvCoopMsg.h"
// other // other
#include "plAvatar/plAvatarMgr.h" #include "plAvatar/plAvatarMgr.h"
@ -100,7 +100,7 @@ void plAvCoopMsg::Read(hsStream *stream, hsResMgr *mgr)
plMessage::IMsgRead(stream, mgr); plMessage::IMsgRead(stream, mgr);
if(stream->ReadBool()) if(stream->ReadBool())
fCoordinator = reinterpret_cast<plCoopCoordinator *>(mgr->ReadCreatable(stream)); fCoordinator = plCoopCoordinator::ConvertNoRef(mgr->ReadCreatable(stream));
fInitiatorID = stream->ReadLE32(); fInitiatorID = stream->ReadLE32();
fInitiatorSerial = stream->ReadLE16(); fInitiatorSerial = stream->ReadLE16();

9
Sources/Plasma/PubUtilLib/plMessage/plAvatarMsg.cpp

@ -41,17 +41,16 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#ifndef NO_AV_MSGS #ifndef NO_AV_MSGS
#include "plAvatarMsg.h"
#include "hsResMgr.h" #include "hsResMgr.h"
#pragma hdrstop
#include "pnKeyedObject/plKey.h" #include "plAvatarMsg.h"
#include "pnSceneObject/plSceneObject.h"
#include "plMessage/plOneShotCallbacks.h" #include "plMessage/plOneShotCallbacks.h"
#include "pnSceneObject/plSceneObject.h"
#ifndef SERVER #ifndef SERVER
#include "plAvatar/plAvBrain.h" # include "plAvatar/plAvBrain.h"
#endif #endif

1
Sources/Plasma/PubUtilLib/plMessage/plAvatarMsg.h

@ -44,7 +44,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#ifndef plAvatarMsg_inc #ifndef plAvatarMsg_inc
#define plAvatarMsg_inc #define plAvatarMsg_inc
#include "pnMessage/plMessage.h"
#include "hsBitVector.h" #include "hsBitVector.h"
#include "plAvatar/plArmatureMod.h" #include "plAvatar/plArmatureMod.h"
#include "pnMessage/plEventCallbackMsg.h" #include "pnMessage/plEventCallbackMsg.h"

4
Sources/Plasma/PubUtilLib/plMessage/plBulletMsg.cpp

@ -41,11 +41,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#include "HeadSpin.h" #include "HeadSpin.h"
#include "hsFastMath.h"
#include "hsStream.h" #include "hsStream.h"
#pragma hdrstop
#include "plBulletMsg.h" #include "plBulletMsg.h"
#include "hsFastMath.h"
void plBulletMsg::Read(hsStream* stream, hsResMgr* mgr) void plBulletMsg::Read(hsStream* stream, hsResMgr* mgr)
{ {

8
Sources/Plasma/PubUtilLib/plMessage/plCCRMsg.cpp

@ -39,11 +39,13 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
#include "hsStream.h"
#include "plCCRMsg.h"
#include "hsResMgr.h"
#include "hsStream.h"
#include "pnNetCommon/plNetApp.h" #include "pnNetCommon/plNetApp.h"
#include "plResMgr/plResManager.h" #pragma hdrstop
#include "plCCRMsg.h"
#include "plNetCommon/plNetCommon.h" #include "plNetCommon/plNetCommon.h"
void plCCRPetitionMsg::Read(hsStream* stream, hsResMgr* mgr) void plCCRPetitionMsg::Read(hsStream* stream, hsResMgr* mgr)

2
Sources/Plasma/PubUtilLib/plMessage/plCaptureRenderMsg.cpp

@ -41,6 +41,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#include "HeadSpin.h" #include "HeadSpin.h"
#pragma hdrstop
#include "plCaptureRenderMsg.h" #include "plCaptureRenderMsg.h"
#include "plGImage/plMipmap.h" #include "plGImage/plMipmap.h"

7
Sources/Plasma/PubUtilLib/plMessage/plClimbMsg.cpp

@ -39,12 +39,13 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
// singular
#include "plClimbMsg.h"
// global
#include "hsResMgr.h" #include "hsResMgr.h"
#include "hsStream.h" #include "hsStream.h"
#pragma hdrstop
#include "plClimbMsg.h"
plClimbMsg::plClimbMsg() plClimbMsg::plClimbMsg()
: fCommand(kNoCommand), : fCommand(kNoCommand),

6
Sources/Plasma/PubUtilLib/plMessage/plDynaDecalEnableMsg.cpp

@ -41,10 +41,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#include "HeadSpin.h" #include "HeadSpin.h"
#include "plDynaDecalEnableMsg.h"
#include "hsResMgr.h" #include "hsResMgr.h"
#include "hsStream.h" #include "hsStream.h"
#pragma hdrstop
#include "plDynaDecalEnableMsg.h"
plDynaDecalEnableMsg::plDynaDecalEnableMsg() plDynaDecalEnableMsg::plDynaDecalEnableMsg()
: plMessage(nil, nil, nil), : plMessage(nil, nil, nil),

5
Sources/Plasma/PubUtilLib/plMessage/plDynamicEnvMapMsg.cpp

@ -40,9 +40,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#include "plDynamicEnvMapMsg.h"
#include "hsStream.h" #include "hsStream.h"
#pragma hdrstop
#include "plDynamicEnvMapMsg.h"
void plDynamicEnvMapMsg::Read(hsStream* s, hsResMgr* mgr) void plDynamicEnvMapMsg::Read(hsStream* s, hsResMgr* mgr)
{ {

6
Sources/Plasma/PubUtilLib/plMessage/plDynamicTextMsg.cpp

@ -47,9 +47,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
#include "HeadSpin.h" #include "HeadSpin.h"
#include "plDynamicTextMsg.h"
#include "hsResMgr.h"
#include "hsBitVector.h" #include "hsBitVector.h"
#include "hsResMgr.h"
#pragma hdrstop
#include "plDynamicTextMsg.h"
void plDynamicTextMsg::SetTextColor( hsColorRGBA &c, bool blockRGB ) void plDynamicTextMsg::SetTextColor( hsColorRGBA &c, bool blockRGB )
{ {

42
Sources/Plasma/PubUtilLib/plMessage/plElementRefMsg.h

@ -1,42 +0,0 @@
/*==LICENSE==*
CyanWorlds.com Engine - MMOG client, server and tools
Copyright (C) 2011 Cyan Worlds, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Additional permissions under GNU GPL version 3 section 7
If you modify this Program, or any covered work, by linking or
combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
(or a modified version of those libraries),
containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
licensors of this Program grant you additional
permission to convey the resulting work. Corresponding Source for a
non-source form of such a combination shall include the source code for
the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
work.
You can contact Cyan Worlds, Inc. by email legal@cyan.com
or by snail mail at:
Cyan Worlds, Inc.
14617 N Newport Hwy
Mead, WA 99021
*==LICENSE==*/
// Nuked file. Delete from your source file

2
Sources/Plasma/PubUtilLib/plMessage/plExcludeRegionMsg.h

@ -69,7 +69,7 @@ public:
GETINTERFACE_ANY(plExcludeRegionMsg, plMessage); GETINTERFACE_ANY(plExcludeRegionMsg, plMessage);
void SetCmd(CmdType cmd) { fCmd = cmd; } void SetCmd(CmdType cmd) { fCmd = cmd; }
uint8_t GetCmd() { return fCmd; } uint8_t GetCmd() const { return fCmd; }
uint32_t fSynchFlags; uint32_t fSynchFlags;
// IO // IO

6
Sources/Plasma/PubUtilLib/plMessage/plInputEventMsg.cpp

@ -41,10 +41,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#include "HeadSpin.h" #include "HeadSpin.h"
#include "plInputEventMsg.h" #include "hsBitVector.h"
#include "pnKeyedObject/plKey.h" #include "pnKeyedObject/plKey.h"
#include "hsResMgr.h" #include "hsResMgr.h"
#include "hsBitVector.h" #pragma hdrstop
#include "plInputEventMsg.h"
plInputEventMsg::plInputEventMsg() : plInputEventMsg::plInputEventMsg() :
fEvent(-1) fEvent(-1)

48
Sources/Plasma/PubUtilLib/plMessage/plInputIfaceMgrMsg.cpp

@ -39,28 +39,44 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
//////////////////////////////////////////////////////////////////////////////
// // #include "hsResMgr.h"
// plInputIfaceMgrMsg // #pragma hdrstop
// Message wrapper for commands to plDynamicTextMap. //
// //
//////////////////////////////////////////////////////////////////////////////
#include "HeadSpin.h"
#include "plInputIfaceMgrMsg.h" #include "plInputIfaceMgrMsg.h"
#include "plInputCore/plInputInterface.h" #include "plInputCore/plInputInterface.h"
#include "hsResMgr.h"
#include "hsRefCnt.h"
plInputIfaceMgrMsg::~plInputIfaceMgrMsg()
{
hsRefCnt_SafeUnRef(fInterface);
}
plInputIfaceMgrMsg::~plInputIfaceMgrMsg() void plInputIfaceMgrMsg::SetIFace(plInputInterface* iface)
{ {
if( fInterface != nil ) fInterface = iface;
hsRefCnt_SafeUnRef( fInterface ); hsRefCnt_SafeRef(fInterface);
} }
void plInputIfaceMgrMsg::SetIFace( plInputInterface *iface ) void plInputIfaceMgrMsg::Read(hsStream* s, hsResMgr* mgr)
{ {
fInterface = iface; plMessage::IMsgRead(s, mgr);
hsRefCnt_SafeRef( fInterface );
s->ReadLE(&fCommand);
s->ReadLE(&fPageID);
ageName = s->ReadSafeString();
ageFileName = s->ReadSafeString();
spawnPoint = s->ReadSafeString();
fAvKey = mgr->ReadKey(s);
}
void plInputIfaceMgrMsg::Write(hsStream* s, hsResMgr* mgr)
{
plMessage::IMsgWrite(s, mgr);
s->WriteLE(fCommand);
s->WriteLE(fPageID);
s->WriteSafeString(ageName);
s->WriteSafeString(ageFileName);
s->WriteSafeString(spawnPoint);
mgr->WriteKey(s, fAvKey);
} }

55
Sources/Plasma/PubUtilLib/plMessage/plInputIfaceMgrMsg.h

@ -50,7 +50,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "HeadSpin.h" #include "HeadSpin.h"
#include "hsStream.h" #include "hsStream.h"
#include "hsResMgr.h"
#include "pnMessage/plMessage.h" #include "pnMessage/plMessage.h"
#include "pnUUID/pnUUID.h" #include "pnUUID/pnUUID.h"
@ -97,43 +96,23 @@ class plInputIfaceMgrMsg : public plMessage
CLASSNAME_REGISTER( plInputIfaceMgrMsg ); CLASSNAME_REGISTER( plInputIfaceMgrMsg );
GETINTERFACE_ANY( plInputIfaceMgrMsg, plMessage ); GETINTERFACE_ANY( plInputIfaceMgrMsg, plMessage );
virtual void Read(hsStream* s, hsResMgr* mgr) virtual void Read(hsStream* s, hsResMgr* mgr);
{ virtual void Write(hsStream* s, hsResMgr* mgr);
plMessage::IMsgRead( s, mgr );
s->ReadLE( &fCommand ); void SetAgeName(const plString& s) { ageName = s; }
s->ReadLE( &fPageID ); plString GetAgeName() const { return ageName; }
ageName = s->ReadSafeString(); void SetAgeFileName(const plString& s) { ageFileName = s; }
ageFileName = s->ReadSafeString(); plString GetAgeFileName() const { return ageFileName; }
spawnPoint = s->ReadSafeString(); void SetSpawnPoint(const plString& s) { spawnPoint = s; }
fAvKey = mgr->ReadKey(s); plString GetSpawnPoint() const { return spawnPoint; }
} void SetAgeInstanceGuid(const plUUID& guid) { ageInstanceGuid = guid; }
const plUUID& GetAgeInstanceGuid() const { return ageInstanceGuid; }
virtual void Write(hsStream* s, hsResMgr* mgr) uint8_t GetCommand() const { return fCommand; }
{ uint32_t GetPageID() const { return fPageID; }
plMessage::IMsgWrite( s, mgr ); void SetIFace(plInputInterface *iface);
s->WriteLE( fCommand ); plInputInterface* GetIFace() const { return fInterface; }
s->WriteLE( fPageID ); plKey GetAvKey() const { return fAvKey; }
s->WriteSafeString(ageName); void SetAvKey(const plKey& k ) { fAvKey = k; }
s->WriteSafeString(ageFileName);
s->WriteSafeString(spawnPoint);
mgr->WriteKey(s,fAvKey);
}
void SetAgeName(const plString& s) { ageName = s; }
plString GetAgeName() const { return ageName; }
void SetAgeFileName(const plString& s) { ageFileName = s; }
plString GetAgeFileName() const { return ageFileName; }
void SetSpawnPoint(const plString& s) { spawnPoint = s; }
plString GetSpawnPoint() const { return spawnPoint; }
void SetAgeInstanceGuid(const plUUID& guid) { ageInstanceGuid = guid; }
const plUUID& GetAgeInstanceGuid() const { return ageInstanceGuid; }
uint8_t GetCommand() const { return fCommand; }
uint32_t GetPageID() const { return fPageID; }
void SetIFace( plInputInterface *iface );
plInputInterface *GetIFace() const { return fInterface; }
plKey& GetAvKey( void ) { return fAvKey; }
const plKey& GetAvKey( void ) const { return fAvKey; }
void SetAvKey( plKey& k ) { fAvKey = k; }
}; };
#endif // _plInputIfaceMgrMsg_h #endif // _plInputIfaceMgrMsg_h

31
Sources/Plasma/PubUtilLib/plMessage/plLOSHitMsg.cpp

@ -40,19 +40,30 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#include "HeadSpin.h" #include "hsResMgr.h"
#include "hsStream.h"
#pragma hdrstop
#include "plLOSHitMsg.h" #include "plLOSHitMsg.h"
plLOSHitMsg::plLOSHitMsg() void plLOSHitMsg::Read(hsStream* stream, hsResMgr* mgr)
{ {
SetBCastFlag(plMessage::kPropagateToModifiers); plMessage::IMsgRead(stream, mgr);
fHitFlags = 0;
fObj = mgr->ReadKey(stream);
fHitPoint.Read(stream);
fNoHit = stream->ReadBool();
stream->ReadLE(&fRequestID);
stream->ReadLE(&fHitFlags);
} }
plLOSHitMsg::plLOSHitMsg(const plKey &s,
const plKey &r, void plLOSHitMsg::Write(hsStream* stream, hsResMgr* mgr)
const double* t)
: plMessage(s, r, t)
{ {
SetBCastFlag(plMessage::kPropagateToModifiers); plMessage::IMsgWrite(stream, mgr);
fHitFlags = 0;
mgr->WriteKey(stream, fObj);
fHitPoint.Write(stream);
stream->WriteBool(fNoHit);
stream->WriteLE(fRequestID);
stream->WriteLE(fHitFlags);
} }

46
Sources/Plasma/PubUtilLib/plMessage/plLOSHitMsg.h

@ -44,54 +44,34 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#define plLOSHitMsg_inc #define plLOSHitMsg_inc
#include "pnMessage/plMessage.h" #include "pnMessage/plMessage.h"
#include "hsStream.h"
#include "hsResMgr.h"
#include "hsGeometry3.h" #include "hsGeometry3.h"
class plLOSHitMsg : public plMessage class plLOSHitMsg : public plMessage
{ {
protected:
public: public:
plKey fObj; plKey fObj;
hsPoint3 fHitPoint; hsPoint3 fHitPoint;
bool fNoHit; bool fNoHit;
uint32_t fRequestID; uint32_t fRequestID;
uint32_t fHitFlags; uint32_t fHitFlags;
hsVector3 fNormal; hsVector3 fNormal;
float fDistance; float fDistance;
plLOSHitMsg(); plLOSHitMsg() : fHitFlags(0) { SetBCastFlag(plMessage::kPropagateToModifiers); }
plLOSHitMsg(const plKey &s,
const plKey &r,
const double* t);
~plLOSHitMsg(){;}
CLASSNAME_REGISTER( plLOSHitMsg );
GETINTERFACE_ANY( plLOSHitMsg, plMessage );
// IO plLOSHitMsg(const plKey& s, const plKey& r, const double* t) :
void Read(hsStream* stream, hsResMgr* mgr) fHitFlags(0),
plMessage(s, r, t)
{ {
plMessage::IMsgRead(stream, mgr); SetBCastFlag(plMessage::kPropagateToModifiers);
fObj = mgr->ReadKey(stream);
fHitPoint.Read(stream);
fNoHit = stream->ReadBool();
stream->ReadLE(&fRequestID);
stream->ReadLE(&fHitFlags);
} }
void Write(hsStream* stream, hsResMgr* mgr) CLASSNAME_REGISTER( plLOSHitMsg );
{ GETINTERFACE_ANY( plLOSHitMsg, plMessage );
plMessage::IMsgWrite(stream, mgr);
mgr->WriteKey(stream, fObj); // IO
fHitPoint.Write(stream); void Read(hsStream* stream, hsResMgr* mgr);
stream->WriteBool(fNoHit); void Write(hsStream* stream, hsResMgr* mgr);
stream->WriteLE(fRequestID);
stream->WriteLE(fHitFlags);
}
}; };

5
Sources/Plasma/PubUtilLib/plMessage/plLOSRequestMsg.cpp

@ -39,9 +39,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
#include "plLOSRequestMsg.h"
#include "hsResMgr.h" #include "hsResMgr.h"
#include "pnKeyedObject/plUoid.h" #include "pnKeyedObject/plUoid.h"
#pragma hdrstop
#include "plLOSRequestMsg.h"
plLOSRequestMsg::plLOSRequestMsg() plLOSRequestMsg::plLOSRequestMsg()
: fRequestID(0), : fRequestID(0),

4
Sources/Plasma/PubUtilLib/plMessage/plLayRefMsg.cpp

@ -41,8 +41,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#include "HeadSpin.h" #include "HeadSpin.h"
#include "plLayRefMsg.h"
#include "hsStream.h" #include "hsStream.h"
#pragma hdrstop
#include "plLayRefMsg.h"
void plLayRefMsg::Read(hsStream* stream, hsResMgr* mgr) void plLayRefMsg::Read(hsStream* stream, hsResMgr* mgr)
{ {

9
Sources/Plasma/PubUtilLib/plMessage/plLinkToAgeMsg.cpp

@ -39,14 +39,15 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
#include "hsStream.h"
#include "plLinkToAgeMsg.h"
#include "hsResMgr.h"
#include "plgDispatch.h" #include "plgDispatch.h"
#include "hsResMgr.h"
#include "hsStream.h"
#pragma hdrstop
#include "plLinkToAgeMsg.h"
#include "plNetCommon/plNetServerSessionInfo.h" #include "plNetCommon/plNetServerSessionInfo.h"
#include "plNetCommon/plNetCommon.h" #include "plNetCommon/plNetCommon.h"
#include "hsBitVector.h"
#include "pnNetCommon/plNetApp.h" #include "pnNetCommon/plNetApp.h"
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////

1
Sources/Plasma/PubUtilLib/plMessage/plLinkToAgeMsg.h

@ -42,7 +42,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#ifndef plLinkToAgeMsg_INC #ifndef plLinkToAgeMsg_INC
#define plLinkToAgeMsg_INC #define plLinkToAgeMsg_INC
#include "pnMessage/plMessageWithCallbacks.h"
#include "pnMessage/plEventCallbackMsg.h" #include "pnMessage/plEventCallbackMsg.h"
#include "plNetCommon/plNetServerSessionInfo.h" #include "plNetCommon/plNetServerSessionInfo.h"
#include "plNetCommon/plNetCommonHelpers.h" #include "plNetCommon/plNetCommonHelpers.h"

11
Sources/Plasma/PubUtilLib/plMessage/plListenerMsg.cpp

@ -41,11 +41,14 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#include "HeadSpin.h" #include "HeadSpin.h"
#include "hsStream.h"
#include "plListenerMsg.h"
#include "hsResMgr.h" #include "hsResMgr.h"
#include "hsStream.h"
#include "pnKeyedObject/plUoid.h" #include "pnKeyedObject/plUoid.h"
#include "pnKeyedObject/plFixedKey.h" #include "pnKeyedObject/plFixedKey.h"
#pragma hdrstop
#include "plListenerMsg.h"
void plListenerMsg::Read(hsStream* s, hsResMgr* mgr) void plListenerMsg::Read(hsStream* s, hsResMgr* mgr)
@ -74,10 +77,6 @@ plSetListenerMsg::plSetListenerMsg( uint8_t type, const plKey &srcKey, bool bind
Set( srcKey, type, binding ); Set( srcKey, type, binding );
} }
plSetListenerMsg::~plSetListenerMsg()
{
}
void plSetListenerMsg::Read( hsStream *s, hsResMgr *mgr ) void plSetListenerMsg::Read( hsStream *s, hsResMgr *mgr )
{ {
plMessage::IMsgRead(s, mgr); plMessage::IMsgRead(s, mgr);

3
Sources/Plasma/PubUtilLib/plMessage/plListenerMsg.h

@ -104,8 +104,7 @@ public:
plSetListenerMsg() : plMessage( nil, nil, nil ) { fType = 0; fBinding = false; } plSetListenerMsg() : plMessage( nil, nil, nil ) { fType = 0; fBinding = false; }
plSetListenerMsg( uint8_t type, const plKey &srcKey, bool binding ); plSetListenerMsg( uint8_t type, const plKey &srcKey, bool binding );
~plSetListenerMsg();
CLASSNAME_REGISTER( plSetListenerMsg ); CLASSNAME_REGISTER( plSetListenerMsg );
GETINTERFACE_ANY( plSetListenerMsg, plMessage ); GETINTERFACE_ANY( plSetListenerMsg, plMessage );

12
Sources/Plasma/PubUtilLib/plMessage/plLoadAgeMsg.cpp

@ -39,14 +39,16 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
#include "hsStream.h"
#include "plLoadAgeMsg.h"
#include "hsResMgr.h"
#include "hsBitVector.h" #include "hsBitVector.h"
#include "hsResMgr.h"
#include "hsStream.h"
#pragma hdrstop
void plLoadAgeMsg::Read(hsStream* stream, hsResMgr* mgr) #include "plLoadAgeMsg.h"
{
void plLoadAgeMsg::Read(hsStream* stream, hsResMgr* mgr)
{
plMessage::IMsgRead(stream, mgr); plMessage::IMsgRead(stream, mgr);
// read agename // read agename

7
Sources/Plasma/PubUtilLib/plMessage/plLoadAvatarMsg.cpp

@ -42,12 +42,13 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#ifndef NO_AV_MSGS #ifndef NO_AV_MSGS
#ifndef SERVER #ifndef SERVER
#include "hsStream.h"
#include "plLoadAvatarMsg.h"
#include "hsResMgr.h" #include "hsResMgr.h"
#include "hsStream.h"
#include "pnNetCommon/plNetApp.h" #include "pnNetCommon/plNetApp.h"
#include "pnNetCommon/plSynchedObject.h" #pragma hdrstop
#include "plLoadAvatarMsg.h"
#include "plAvatar/plAvatarTasks.h" #include "plAvatar/plAvatarTasks.h"

11
Sources/Plasma/PubUtilLib/plMessage/plLoadCloneMsg.cpp

@ -42,17 +42,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#ifndef NO_AV_MSGS #ifndef NO_AV_MSGS
#ifndef SERVER #ifndef SERVER
// singular #include "HeadSpin.h"
#include "plLoadAvatarMsg.h"
// global
#include "hsResMgr.h" #include "hsResMgr.h"
// other
#include "pnNetCommon/plNetApp.h" #include "pnNetCommon/plNetApp.h"
#include "HeadSpin.h" #pragma hdrstop
#include "plLoadAvatarMsg.h"
// CTOR / default // CTOR / default
plLoadCloneMsg::plLoadCloneMsg() plLoadCloneMsg::plLoadCloneMsg()

5
Sources/Plasma/PubUtilLib/plMessage/plMatrixUpdateMsg.cpp

@ -40,10 +40,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#include "HeadSpin.h"
#include "plMatrixUpdateMsg.h"
#include "hsResMgr.h" #include "hsResMgr.h"
#include "hsStream.h" #include "hsStream.h"
#pragma hdrstop
#include "plMatrixUpdateMsg.h"
void plMatrixUpdateMsg::Read(hsStream* stream, hsResMgr* mgr) void plMatrixUpdateMsg::Read(hsStream* stream, hsResMgr* mgr)
{ {

5
Sources/Plasma/PubUtilLib/plMessage/plMultistageMsg.cpp

@ -39,8 +39,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
#include "plMultistageMsg.h"
#include "hsStream.h" #include "hsStream.h"
#pragma hdrstop
#include "plMultistageMsg.h"
void plMultistageModMsg::Read(hsStream *stream, hsResMgr *mgr) void plMultistageModMsg::Read(hsStream *stream, hsResMgr *mgr)
{ {

14
Sources/Plasma/PubUtilLib/plMessage/plNetCommMsgs.h

@ -50,9 +50,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnUtils/pnUtils.h" #include "pnUtils/pnUtils.h"
#include "pnNetBase/pnNetBase.h" #include "pnNetBase/pnNbError.h"
#include "pnMessage/plMessage.h"
#include "pnNetProtocol/pnNetProtocol.h" #include "pnNetProtocol/pnNetProtocol.h"
#include "pnMessage/plMessage.h"
class plNetCommReplyMsg : public plMessage { class plNetCommReplyMsg : public plMessage {
public: public:
@ -162,14 +162,4 @@ public:
GETINTERFACE_ANY(plNetCommUnregisterAgeMsg, plMessage); GETINTERFACE_ANY(plNetCommUnregisterAgeMsg, plMessage);
}; };
class plNetCommDisconnectedMsg : public plMessage {
public:
ENetProtocol protocol;
void Read (hsStream * s, hsResMgr * mgr) { plMessage::IMsgRead(s, mgr); }
void Write (hsStream * s, hsResMgr * mgr) { plMessage::IMsgWrite(s, mgr); }
};
#endif // plNetCommMsgs_inc #endif // plNetCommMsgs_inc

7
Sources/Plasma/PubUtilLib/plMessage/plNetVoiceListMsg.cpp

@ -40,10 +40,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#include "HeadSpin.h"
#include "plNetVoiceListMsg.h"
#include "hsStream.h"
#include "hsResMgr.h" #include "hsResMgr.h"
#include "hsStream.h"
#pragma hdrstop
#include "plNetVoiceListMsg.h"
void plNetVoiceListMsg::Read(hsStream* stream, hsResMgr* mgr) void plNetVoiceListMsg::Read(hsStream* stream, hsResMgr* mgr)
{ {

6
Sources/Plasma/PubUtilLib/plMessage/plOneShotCallbacks.cpp

@ -39,10 +39,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
#include "plOneShotCallbacks.h"
#include "hsStream.h"
#include "hsResMgr.h" #include "hsResMgr.h"
#include "hsStream.h"
#pragma hdrstop
#include "plOneShotCallbacks.h"
plOneShotCallbacks::plOneShotCallbacks() plOneShotCallbacks::plOneShotCallbacks()
{ {

3
Sources/Plasma/PubUtilLib/plMessage/plOneShotMsg.cpp

@ -39,6 +39,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
#pragma hdrstop
#include "plOneShotMsg.h" #include "plOneShotMsg.h"
#include "plOneShotCallbacks.h" #include "plOneShotCallbacks.h"

9
Sources/Plasma/PubUtilLib/plMessage/plRenderRequestMsg.cpp

@ -41,11 +41,14 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#include "HeadSpin.h" #include "HeadSpin.h"
#include "plRenderRequestMsg.h"
#include "pnKeyedObject/plUoid.h"
#include "pnKeyedObject/plFixedKey.h"
#include "hsResMgr.h" #include "hsResMgr.h"
#include "pnKeyedObject/plFixedKey.h"
#include "pnKeyedObject/plUoid.h"
#pragma hdrstop
#include "plRenderRequestMsg.h"
plRenderRequestMsg::plRenderRequestMsg(plKey sender, plRenderRequestBase* req) plRenderRequestMsg::plRenderRequestMsg(plKey sender, plRenderRequestBase* req)
: plMessage(sender, nil, nil), : plMessage(sender, nil, nil),

6
Sources/Plasma/PubUtilLib/plMessage/plResMgrHelperMsg.h

@ -44,18 +44,18 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#define _plResMgrHelperMsg_h #define _plResMgrHelperMsg_h
#include "HeadSpin.h" #include "HeadSpin.h"
#include "hsStream.h"
#include "pnMessage/plMessage.h" #include "pnMessage/plMessage.h"
#include "plResMgr/plResManagerHelper.h"
class plResManagerHelper; class plResManagerHelper;
class plResPageKeyRefList;
class plResMgrHelperMsg : public plMessage class plResMgrHelperMsg : public plMessage
{ {
protected: protected:
friend class plResManagerHelper; friend class plResManagerHelper;
plResPageKeyRefList *fKeyList; plResPageKeyRefList* fKeyList;
uint8_t fCommand; uint8_t fCommand;

6
Sources/Plasma/PubUtilLib/plMessage/plRideAnimatedPhysMsg.cpp

@ -39,10 +39,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
#include "plRideAnimatedPhysMsg.h"
// global
#include "hsResMgr.h" #include "hsResMgr.h"
#include "hsStream.h" #include "hsStream.h"
#pragma hdrstop
#include "plRideAnimatedPhysMsg.h"
plRideAnimatedPhysMsg::plRideAnimatedPhysMsg() plRideAnimatedPhysMsg::plRideAnimatedPhysMsg()
:fRegion(nil) :fRegion(nil)

4
Sources/Plasma/PubUtilLib/plMessage/plRippleShapeMsg.cpp

@ -41,11 +41,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#include "HeadSpin.h" #include "HeadSpin.h"
#include "plRippleShapeMsg.h"
#include "hsResMgr.h" #include "hsResMgr.h"
#include "hsStream.h" #include "hsStream.h"
#pragma hdrstop
#include "plRippleShapeMsg.h"
plRippleShapeMsg::plRippleShapeMsg() plRippleShapeMsg::plRippleShapeMsg()
: fShape(nil) : fShape(nil)

5
Sources/Plasma/PubUtilLib/plMessage/plSimStateMsg.cpp

@ -39,8 +39,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
#include "plMessage/plSimStateMsg.h"
#include "hsResMgr.h" #include "hsResMgr.h"
#pragma hdrstop
#include "plMessage/plSimStateMsg.h"
void plSubWorldMsg::Read(hsStream *stream, hsResMgr *mgr) void plSubWorldMsg::Read(hsStream *stream, hsResMgr *mgr)
{ {

7
Sources/Plasma/PubUtilLib/plMessage/plSwimMsg.cpp

@ -39,12 +39,13 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
// singular
#include "plSwimMsg.h"
// global
#include "hsResMgr.h" #include "hsResMgr.h"
#include "hsStream.h" #include "hsStream.h"
#pragma hdrstop
#include "plSwimMsg.h"
// ctor default ------ // ctor default ------
// ------------- // -------------

5
Sources/Plasma/PubUtilLib/plMessage/plSynchEnableMsg.cpp

@ -39,8 +39,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
#include "plSynchEnableMsg.h"
#include "pnNetCommon/plNetApp.h" #include "pnNetCommon/plNetApp.h"
#pragma hdrstop
#include "plSynchEnableMsg.h"
plSynchEnableMsg::plSynchEnableMsg(bool push, bool enable) : fPush(push), fEnable(enable) plSynchEnableMsg::plSynchEnableMsg(bool push, bool enable) : fPush(push), fEnable(enable)
{ {

3
Sources/Plasma/PubUtilLib/plMessage/plTransitionMsg.cpp

@ -39,6 +39,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
#pragma hdrstop
#include "plTransitionMsg.h" #include "plTransitionMsg.h"
plTransitionMsg::~plTransitionMsg() plTransitionMsg::~plTransitionMsg()

41
Sources/Plasma/PubUtilLib/plMessage/plUniqueIdsMsg.h

@ -1,41 +0,0 @@
/*==LICENSE==*
CyanWorlds.com Engine - MMOG client, server and tools
Copyright (C) 2011 Cyan Worlds, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Additional permissions under GNU GPL version 3 section 7
If you modify this Program, or any covered work, by linking or
combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
(or a modified version of those libraries),
containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
licensors of this Program grant you additional
permission to convey the resulting work. Corresponding Source for a
non-source form of such a combination shall include the source code for
the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
work.
You can contact Cyan Worlds, Inc. by email legal@cyan.com
or by snail mail at:
Cyan Worlds, Inc.
14617 N Newport Hwy
Mead, WA 99021
*==LICENSE==*/

4
Sources/Plasma/PubUtilLib/plMessage/plVaultNotifyMsg.cpp

@ -39,9 +39,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
#include "hsStream.h" #include "hsStream.h"
#include "plVaultNotifyMsg.h" #pragma hdrstop
#include "plVaultNotifyMsg.h"
plVaultNotifyMsg::plVaultNotifyMsg() plVaultNotifyMsg::plVaultNotifyMsg()
: fType( kNothing ) : fType( kNothing )

2
Sources/Plasma/PubUtilLib/plNetClient/plNetCliAgeLeaver.cpp

@ -45,6 +45,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
* *
***/ ***/
#include "hsResMgr.h"
#include "plNetCliAgeLeaver.h" #include "plNetCliAgeLeaver.h"
#include "plNetClientMgr.h" #include "plNetClientMgr.h"
#include "plNetLinkingMgr.h" #include "plNetLinkingMgr.h"

1
Sources/Tools/MaxComponent/plClickDragComponent.cpp

@ -74,6 +74,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnMessage/plCursorChangeMsg.h" #include "pnMessage/plCursorChangeMsg.h"
#include "pnMessage/plEventCallbackMsg.h" #include "pnMessage/plEventCallbackMsg.h"
#include "plMessage/plAnimCmdMsg.h" #include "plMessage/plAnimCmdMsg.h"
#include "plInterp/plAnimEaseTypes.h"
#include "MaxConvert/plConvert.h" #include "MaxConvert/plConvert.h"

1
Sources/Tools/MaxComponent/plResponderAnim.cpp

@ -69,6 +69,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnSceneObject/plAudioInterface.h" #include "pnSceneObject/plAudioInterface.h"
#include "pnMessage/plSoundMsg.h" #include "pnMessage/plSoundMsg.h"
#include "plInterp/plAnimEaseTypes.h"
#include "MaxMain/plPlasmaRefMsgs.h" #include "MaxMain/plPlasmaRefMsgs.h"
enum enum

1
Sources/Tools/MaxConvert/hsControlConverter.cpp

@ -61,6 +61,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "MaxMain/plMaxNode.h" #include "MaxMain/plMaxNode.h"
#include "hsMaxLayerBase.h" #include "hsMaxLayerBase.h"
#include "plInterp/plAnimEaseTypes.h"
#include "plInterp/plController.h" #include "plInterp/plController.h"
#include "plInterp/hsInterp.h" #include "plInterp/hsInterp.h"
#include "MaxExport/plErrorMsg.h" #include "MaxExport/plErrorMsg.h"

Loading…
Cancel
Save