| 104 | , _size(unitDef->get(Def::Size, Size::zero)) { } |
| 105 | |
| 106 | static inline Value* assertNotNull(Value* value) { |
| 107 | AssertUnless(value, "Value expected, got null"); |
| 108 | return value; |
| 109 | } |
| 110 | |
| 111 | Unit::Unit(String defName, String worldName, NotNull<Entity, 3> entity, const Vec2& pos, float rot) |
| 112 | : Unit( |