MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / PlaceEntity

Method PlaceEntity

src/plugin/kernel/src/AFCContainer.cpp:313–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313bool AFCContainer::PlaceEntity(const uint32_t index, std::shared_ptr<AFIEntity> pEntity)
314{
315 if (!entity_data_list_.insert(index, pEntity).second)
316 {
317 return false;
318 }
319
320 if (current_index_ < index)
321 {
322 current_index_ = index;
323 }
324
325 return true;
326}
327
328void AFCContainer::OnContainerPlace(const uint32_t index, std::shared_ptr<AFIEntity> pEntity)
329{

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected