| 39 | //----------------------------------------------------------------------------- |
| 40 | |
| 41 | NetObject *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 | |
| 64 | void _attachPathObject( VPath *pPath, SceneObject *pObject, const bool &pForward, const bool &pRelative, const S32 &pStartNodeIndex, const S32 &pEndNodeIndex, const String &pOrientation, const String &pOrientationData ) |
| 65 | { |
no test coverage detected