| 42 | namespace level |
| 43 | { |
| 44 | Level *create(Allocator &a, const LevelResource *level_resource) |
| 45 | { |
| 46 | Level *l = (Level *)a.allocate(sizeof(*l) + level_resource->num_units*sizeof(UnitId)); |
| 47 | return new (l) Level(level_resource, (UnitId *)&l[1]); |
| 48 | } |
| 49 | |
| 50 | void destroy(Allocator &a, Level *level) |
| 51 | { |
no test coverage detected