mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 22:03:56 -07:00
Add CEntityHandle which wraps an entity_id_t and also has a pointer to a per-entity array of IComponents. QueryInterface/CmpPtr on a handle just involve a couple of pointer dereferences instead of a map lookup. This requires sizeof(void*) per registered interface type per entity, which is currently ~0.5KB per entity, which shouldn't be a problem. This was SVN commit r13825. |
||
|---|---|---|
| .. | ||
| components | ||
| docs | ||
| helpers | ||
| scripting | ||
| serialization | ||
| system | ||
| tests | ||
| MessageTypes.h | ||
| Simulation2.cpp | ||
| Simulation2.h | ||
| TypeList.h | ||