MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getClientObject

Function getClientObject

Engine/modules/Verve/Torque3D/VMotion.cpp:41–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39//-----------------------------------------------------------------------------
40
41NetObject *getClientObject( NetObject *pObject )
42{
43 if ( !pObject )
44 {
45 return NULL;
46 }
47
48 NetConnection *toServer = NetConnection::getConnectionToServer();
49 NetConnection *toClient = NetConnection::getLocalClientConnection();
50 if ( !toServer || !toClient )
51 {
52 return NULL;
53 }
54
55 const S32 ghostIndex = toClient->getGhostIndex( pObject );
56 if ( ghostIndex == -1 )
57 {
58 return NULL;
59 }
60
61 return toServer->resolveGhost( ghostIndex );
62}
63
64void _attachPathObject( VPath *pPath, SceneObject *pObject, const bool &pForward, const bool &pRelative, const S32 &pStartNodeIndex, const S32 &pEndNodeIndex, const String &pOrientation, const String &pOrientationData )
65{

Callers 9

attachPathObjectMethod · 0.70
detachPathObjectMethod · 0.70
setPathObjectActiveMethod · 0.70
setPathObjectInterpMethod · 0.70
setPathObjectOffsetMethod · 0.70
setPathObjectSpeedMethod · 0.70
setPathObjectForwardMethod · 0.70
setPathObjectNodeMethod · 0.70
setPathObjectEndNodeMethod · 0.70

Calls 2

getGhostIndexMethod · 0.80
resolveGhostMethod · 0.80

Tested by

no test coverage detected