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

Method packData

Engine/source/forest/forestItem.cpp:157–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void ForestItemData::packData(BitStream* stream)
158{
159 Parent::packData(stream);
160
161 String localName = getInternalName();
162 if ( localName.isEmpty() )
163 localName = getName();
164
165 stream->write( localName );
166
167 PACKDATA_ASSET(Shape);
168
169 stream->writeFlag( mCollidable );
170
171 stream->write( mRadius );
172
173 stream->write( mMass );
174 stream->write( mRigidity );
175 stream->write( mTightnessCoefficient );
176 stream->write( mDampingCoefficient );
177
178 stream->write( mWindScale );
179 stream->write( mTrunkBendScale );
180 stream->write( mWindBranchAmp );
181 stream->write( mWindDetailAmp );
182 stream->write( mWindDetailFreq );
183}
184
185void ForestItemData::unpackData(BitStream* stream)
186{

Callers

nothing calls this directly

Calls 4

getNameFunction · 0.50
isEmptyMethod · 0.45
writeMethod · 0.45
writeFlagMethod · 0.45

Tested by

no test coverage detected