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

Method unpackData

Engine/source/forest/forestItem.cpp:185–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void ForestItemData::unpackData(BitStream* stream)
186{
187 Parent::unpackData(stream);
188
189 String localName;
190 stream->read( &localName );
191 setInternalName( localName );
192
193 UNPACKDATA_ASSET(Shape);
194
195 mCollidable = stream->readFlag();
196
197 stream->read( &mRadius );
198
199 stream->read( &mMass );
200 stream->read( &mRigidity );
201 stream->read( &mTightnessCoefficient );
202 stream->read( &mDampingCoefficient );
203
204 stream->read( &mWindScale );
205 stream->read( &mTrunkBendScale );
206 stream->read( &mWindBranchAmp );
207 stream->read( &mWindDetailAmp );
208 stream->read( &mWindDetailFreq );
209}
210
211const ForestItem ForestItem::Invalid;
212

Callers

nothing calls this directly

Calls 2

readFlagMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected