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

Method regenCells

Engine/source/forest/forestDataFile.cpp:235–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void ForestData::regenCells()
236{
237 Vector<ForestItem> items;
238 getItems( &items );
239
240 clear();
241
242 for ( U32 i=0; i < items.size(); i++ )
243 {
244 const ForestItem &item = items[i];
245 addItem( item.getKey(), item.getData(), item.getTransform(), item.getScale() );
246 }
247
248 mIsDirty = true;
249}
250
251ForestCell* ForestData::_findBucket( const Point2I &key ) const
252{

Callers 1

DefineEngineMethodFunction · 0.80

Calls 5

clearFunction · 0.50
sizeMethod · 0.45
getDataMethod · 0.45
getTransformMethod · 0.45
getScaleMethod · 0.45

Tested by

no test coverage detected