Constructor
| 35 | |
| 36 | // Constructor |
| 37 | ColliderComponents::ColliderComponents(MemoryAllocator& allocator) |
| 38 | :Components(allocator, sizeof(Entity) + sizeof(Entity) + sizeof(Collider*) + sizeof(int32) + |
| 39 | sizeof(Transform) + sizeof(CollisionShape*) + sizeof(unsigned short) + |
| 40 | sizeof(unsigned short) + sizeof(Transform) + sizeof(Array<uint64>) + sizeof(bool) + |
| 41 | sizeof(bool) + sizeof(bool) + sizeof(bool) + sizeof(Material), 15 * GLOBAL_ALIGNMENT) { |
| 42 | |
| 43 | } |
| 44 | |
| 45 | // Allocate memory for a given number of components |
| 46 | void ColliderComponents::allocate(uint32 nbComponentsToAllocate) { |
nothing calls this directly
no outgoing calls
no test coverage detected