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

Method pack

Engine/source/environment/decalRoad.cpp:87–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85};
86
87void DecalRoadNodeEvent::pack(NetConnection* conn, BitStream* stream)
88{
89 Parent::pack( conn, stream );
90
91 stream->writeInt( mPositions.size(), 16 );
92
93 for (U32 i=0; i<mPositions.size(); ++i)
94 {
95 mathWrite( *stream, mPositions[i] );
96 stream->write( mWidths[i] );
97 }
98}
99
100void DecalRoadNodeEvent::unpack(NetConnection* conn, BitStream* stream)
101{

Callers

nothing calls this directly

Calls 4

mathWriteFunction · 0.85
writeIntMethod · 0.80
sizeMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected