Constructor
| 34 | |
| 35 | // Constructor |
| 36 | BodyComponents::BodyComponents(MemoryAllocator& allocator) |
| 37 | :Components(allocator, sizeof(Entity) + sizeof(Body*) + sizeof(Array<Entity>) + |
| 38 | sizeof(bool) + sizeof(void*) + sizeof(bool), 6 * GLOBAL_ALIGNMENT) { |
| 39 | |
| 40 | } |
| 41 | |
| 42 | // Allocate memory for a given number of components |
| 43 | void BodyComponents::allocate(uint32 nbComponentsToAllocate) { |
nothing calls this directly
no outgoing calls
no test coverage detected