MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / update_entities

Method update_entities

samples/factory.cpp:38–46  ·  view source on GitHub ↗

loop over all entities and all their updater function (if it exists)

Source from the content-addressed store, hash-verified

36
37 // loop over all entities and all their updater function (if it exists)
38 void update_entities()
39 {
40 for (auto &entity : entities)
41 {
42 if (entity.second.updater) {
43 entity.second.updater(entity.second);
44 }
45 }
46 }
47
48
49 private:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected