From: <sv...@ww...> - 2004-05-31 04:10:14
|
Author: wolverine Date: 2004-05-30 21:10:07 -0700 (Sun, 30 May 2004) New Revision: 982 Modified: trunk/CSP/CSPSim/Include/Networking.h Log: added type field to the object update payload Modified: trunk/CSP/CSPSim/Include/Networking.h =================================================================== --- trunk/CSP/CSPSim/Include/Networking.h 2004-05-31 03:32:55 UTC (rev 981) +++ trunk/CSP/CSPSim/Include/Networking.h 2004-05-31 04:10:07 UTC (rev 982) @@ -151,6 +151,7 @@ public: unsigned int id; + unsigned int objectType; simdata::SimTime timeStamp; _Vector3Struct globalPosition; _Vector3Struct linearVelocity; @@ -161,6 +162,7 @@ { simdata::uint32 thisAddr = (simdata::uint32)this; simdata::uint32 idAddr = (simdata::uint32)&id; + simdata::uint32 typeAddr = (simdata::uint32)&objectType; simdata::uint32 timeStampAddr = (simdata::uint32)&timeStamp; simdata::uint32 globalPositionAddr = (simdata::uint32)&globalPosition; simdata::uint32 linearVelocityAddr = (simdata::uint32)&linearVelocity; @@ -168,6 +170,7 @@ simdata::uint32 attitudeAddr = (simdata::uint32)&attitude; printf("ObjectUpdateMessagePayload - IDOffset: %d\n", idAddr - thisAddr ); + printf("ObjectUpdateMessagePayload - TypeOffset: %d\n", typeAddr - thisAddr); printf("ObjectUpdateMessagePayload - timeStampOffset: %d\n", timeStampAddr - thisAddr ); printf("ObjectUpdateMessagePayload - globalPositionOffset: %d\n", globalPositionAddr - thisAddr ); printf("ObjectUpdateMessagePayload - linearVelocityOffset: %d\n", linearVelocityAddr - thisAddr ); |