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

Method pack

Engine/source/environment/river.cpp:146–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144};
145
146void RiverNodeEvent::pack(NetConnection* conn, BitStream* stream)
147{
148 Parent::pack( conn, stream );
149
150 stream->writeInt( mPositions.size(), 16 );
151
152 for (U32 i=0; i<mPositions.size(); ++i)
153 {
154 mathWrite( *stream, mPositions[i] );
155 stream->write( mWidths[i] );
156 stream->write( mDepths[i] );
157 mathWrite( *stream, mNormals[i] );
158 }
159}
160
161void RiverNodeEvent::unpack(NetConnection* conn, BitStream* stream)
162{

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