Phase 1: Add a #define test

This commit is contained in:
Marc Chapman 2018-01-23 20:24:35 +00:00
parent 35d649b57e
commit 1c2effd7fa
6 changed files with 36 additions and 3 deletions

View file

@ -33,7 +33,9 @@
#include "console/consoleTypes.h"
#include "console/engineAPI.h"
#ifdef TORQUE_AFX_ENABLED
#include "afx/arcaneFX.h"
#endif
IMPLEMENT_CONOBJECT(NetObject);
@ -53,9 +55,11 @@ NetObject::NetObject()
mPrevDirtyList = NULL;
mNextDirtyList = NULL;
mDirtyMaskBits = 0;
#ifdef TORQUE_AFX_ENABLED
scope_id = 0;
scope_refs = 0;
scope_registered = false;
#endif
}
NetObject::~NetObject()
@ -470,6 +474,8 @@ DefineEngineMethod( NetObject, isServerObject, bool, (),,
//{
// return object->isServerObject();
//}
#ifdef TORQUE_AFX_ENABLED
U16 NetObject::addScopeRef()
{
if (scope_refs == 0)
@ -492,4 +498,4 @@ void NetObject::removeScopeRef()
onScopeIdChange();
}
}
#endif