Browse Source

Move plNetObjectDebugger NetClient -> NetCommon.

Darryl Pogue 10 years ago
parent
commit
760377016c
  1. 2
      Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommandsNet.cpp
  2. 3
      Sources/Plasma/PubUtilLib/plModifier/plSDLModifier.cpp
  3. 2
      Sources/Plasma/PubUtilLib/plNetClient/CMakeLists.txt
  4. 2
      Sources/Plasma/PubUtilLib/plNetClient/plNetCliAgeJoiner.cpp
  5. 2
      Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp
  6. 2
      Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgrSend.cpp
  7. 2
      Sources/Plasma/PubUtilLib/plNetCommon/CMakeLists.txt
  8. 20
      Sources/Plasma/PubUtilLib/plNetCommon/plNetObjectDebugger.cpp
  9. 0
      Sources/Plasma/PubUtilLib/plNetCommon/plNetObjectDebugger.h
  10. 2
      Sources/Plasma/PubUtilLib/plUnifiedTime/plClientUnifiedTime.cpp

2
Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommandsNet.cpp

@ -55,7 +55,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plgDispatch.h" #include "plgDispatch.h"
#include "plAgeLoader/plAgeLoader.h" #include "plAgeLoader/plAgeLoader.h"
#include "plNetClient/plNetObjectDebugger.h" #include "plNetCommon/plNetObjectDebugger.h"
#include "plNetClient/plNetClientMgr.h" #include "plNetClient/plNetClientMgr.h"
#include "plNetClient/plNetLinkingMgr.h" #include "plNetClient/plNetLinkingMgr.h"
#include "plAgeLoader/plResPatcher.h" #include "plAgeLoader/plResPatcher.h"

3
Sources/Plasma/PubUtilLib/plModifier/plSDLModifier.cpp

@ -46,10 +46,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnSceneObject/plSceneObject.h" #include "pnSceneObject/plSceneObject.h"
#include "pnMessage/plSDLModifierMsg.h" #include "pnMessage/plSDLModifierMsg.h"
#include "plNetCommon/plNetObjectDebugger.h"
#include "plNetMessage/plNetMessage.h" #include "plNetMessage/plNetMessage.h"
#include "plSDL/plSDL.h" #include "plSDL/plSDL.h"
#include "plNetClient/plNetClientMgr.h"
#include "plNetClient/plNetObjectDebugger.h"
plSDLModifier::plSDLModifier() : fStateCache(nil), fSentOrRecvdState(false) plSDLModifier::plSDLModifier() : fStateCache(nil), fSentOrRecvdState(false)
{ {

2
Sources/Plasma/PubUtilLib/plNetClient/CMakeLists.txt

@ -19,7 +19,6 @@ set(plNetClient_SOURCES
plNetClientMsgHandler.cpp plNetClientMsgHandler.cpp
plNetClientMsgScreener.cpp plNetClientMsgScreener.cpp
plNetLinkingMgr.cpp plNetLinkingMgr.cpp
plNetObjectDebugger.cpp
plNetVoiceList.cpp plNetVoiceList.cpp
) )
@ -33,7 +32,6 @@ set(plNetClient_HEADERS
plNetClientMsgHandler.h plNetClientMsgHandler.h
plNetClientMsgScreener.h plNetClientMsgScreener.h
plNetLinkingMgr.h plNetLinkingMgr.h
plNetObjectDebugger.h
plNetVoiceList.h plNetVoiceList.h
) )

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

@ -50,7 +50,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plNetCliAgeJoiner.h" #include "plNetCliAgeJoiner.h"
#include "plNetClientMgr.h" #include "plNetClientMgr.h"
#include "plNetLinkingMgr.h" #include "plNetLinkingMgr.h"
#include "plNetObjectDebugger.h" #include "plNetCommon/plNetObjectDebugger.h"
#include "pnSceneObject/plSceneObject.h" #include "pnSceneObject/plSceneObject.h"
#include "pnSceneObject/plCoordinateInterface.h" #include "pnSceneObject/plCoordinateInterface.h"

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

@ -47,7 +47,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plPhysical.h" #include "plPhysical.h"
#include "plNetClientMsgHandler.h" #include "plNetClientMsgHandler.h"
#include "plNetLinkingMgr.h" #include "plNetLinkingMgr.h"
#include "plNetObjectDebugger.h" #include "plNetCommon/plNetObjectDebugger.h"
#include "pnUtils/pnUtils.h" #include "pnUtils/pnUtils.h"
#include "plProduct.h" #include "plProduct.h"

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

@ -43,7 +43,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsResMgr.h" #include "hsResMgr.h"
#include "plNetClientMgr.h" #include "plNetClientMgr.h"
#include "plCreatableIndex.h" #include "plCreatableIndex.h"
#include "plNetObjectDebugger.h" #include "plNetCommon/plNetObjectDebugger.h"
#include "pnNetCommon/plSynchedObject.h" #include "pnNetCommon/plSynchedObject.h"
#include "pnNetCommon/plSDLTypes.h" #include "pnNetCommon/plSDLTypes.h"

2
Sources/Plasma/PubUtilLib/plNetCommon/CMakeLists.txt

@ -10,6 +10,7 @@ set(plNetCommon_SOURCES
plNetCommonHelpers.cpp plNetCommonHelpers.cpp
plNetMember.cpp plNetMember.cpp
plNetMsgScreener.cpp plNetMsgScreener.cpp
plNetObjectDebugger.cpp
plNetServerSessionInfo.cpp plNetServerSessionInfo.cpp
plSpawnPointInfo.cpp plSpawnPointInfo.cpp
) )
@ -23,6 +24,7 @@ set(plNetCommon_HEADERS
plNetMember.h plNetMember.h
plNetMsgHandler.h plNetMsgHandler.h
plNetMsgScreener.h plNetMsgScreener.h
plNetObjectDebugger.h
plNetServerSessionInfo.h plNetServerSessionInfo.h
plSpawnPointInfo.h plSpawnPointInfo.h
) )

20
Sources/Plasma/PubUtilLib/plNetClient/plNetObjectDebugger.cpp → Sources/Plasma/PubUtilLib/plNetCommon/plNetObjectDebugger.cpp

@ -51,10 +51,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plNetClient/plNetClientMgr.h" #include "plNetClient/plNetClientMgr.h"
#include "plAgeLoader/plAgeLoader.h" #include "plAgeLoader/plAgeLoader.h"
plNetObjectDebugger::DebugObject::DebugObject(const char* objName, plLocation& loc, uint32_t flags) : plNetObjectDebugger::DebugObject::DebugObject(const char* objName, plLocation& loc, uint32_t flags) :
fLoc(loc), fLoc(loc),
fFlags(flags) fFlags(flags)
{ {
std::string tmp = objName; std::string tmp = objName;
hsStrLower((char*)tmp.c_str()); hsStrLower((char*)tmp.c_str());
fObjName = tmp; fObjName = tmp;
@ -102,7 +102,7 @@ bool plNetObjectDebugger::DebugObject::StringMatches(const char* str) const
// if both objName and pageName are provided, and this object has page info, // if both objName and pageName are provided, and this object has page info,
// return true if object matches both string and location. // return true if object matches both string and location.
// else just return true if object matches string // else just return true if object matches string
// //
bool plNetObjectDebugger::DebugObject::ObjectMatches(const char* objName, const char* pageName) bool plNetObjectDebugger::DebugObject::ObjectMatches(const char* objName, const char* pageName)
{ {
if (!objName) if (!objName)
@ -143,9 +143,9 @@ plNetObjectDebugger::plNetObjectDebugger() : fStatusLog(nil), fDebugging(false)
{ {
} }
plNetObjectDebugger::~plNetObjectDebugger() plNetObjectDebugger::~plNetObjectDebugger()
{ {
ClearAllDebugObjects(); ClearAllDebugObjects();
delete fStatusLog; delete fStatusLog;
} }
@ -155,8 +155,8 @@ plNetObjectDebugger::~plNetObjectDebugger()
plNetObjectDebugger* plNetObjectDebugger::GetInstance() plNetObjectDebugger* plNetObjectDebugger::GetInstance()
{ {
static plNetObjectDebugger gNetObjectDebugger; static plNetObjectDebugger gNetObjectDebugger;
if (plNetObjectDebuggerBase::GetInstance()==nil) if (plNetObjectDebuggerBase::GetInstance() == nullptr)
plNetObjectDebuggerBase::SetInstance(&gNetObjectDebugger); plNetObjectDebuggerBase::SetInstance(&gNetObjectDebugger);
return &gNetObjectDebugger; return &gNetObjectDebugger;
@ -169,7 +169,7 @@ void plNetObjectDebugger::ICreateStatusLog() const
{ {
if (!fStatusLog) if (!fStatusLog)
{ {
fStatusLog = plStatusLogMgr::GetInstance().CreateStatusLog(40, "NetObject.log", fStatusLog = plStatusLogMgr::GetInstance().CreateStatusLog(40, "NetObject.log",
plStatusLog::kFilledBackground | plStatusLog::kAlignToTop | plStatusLog::kTimestamp ); plStatusLog::kFilledBackground | plStatusLog::kAlignToTop | plStatusLog::kTimestamp );
} }
} }

0
Sources/Plasma/PubUtilLib/plNetClient/plNetObjectDebugger.h → Sources/Plasma/PubUtilLib/plNetCommon/plNetObjectDebugger.h

2
Sources/Plasma/PubUtilLib/plUnifiedTime/plClientUnifiedTime.cpp

@ -45,7 +45,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plClientUnifiedTime.h" #include "plClientUnifiedTime.h"
#if 0 #if 0
#include "plNetClient/plNetObjectDebugger.h" #include "plNetCommon/plNetObjectDebugger.h"
#include "plNetClient/plNetClientMgr.h" #include "plNetClient/plNetClientMgr.h"
#endif #endif

Loading…
Cancel
Save