| 39 | } |
| 40 | |
| 41 | AnimationStateMachine::AnimationStateMachine(Allocator &a |
| 42 | , ResourceManager &rm |
| 43 | , UnitManager &um |
| 44 | , SpriteAnimationPlayer &sprite_player |
| 45 | , MeshAnimationPlayer &mesh_player |
| 46 | , World &world |
| 47 | ) |
| 48 | : _marker(ANIMATION_STATE_MACHINE_MARKER) |
| 49 | , _resource_manager(&rm) |
| 50 | , _unit_manager(&um) |
| 51 | , _map(a) |
| 52 | , _machines(a) |
| 53 | , _events(a) |
| 54 | , _sprite_animation_player(&sprite_player) |
| 55 | , _mesh_animation_player(&mesh_player) |
| 56 | , _world(&world) |
| 57 | { |
| 58 | _unit_destroy_callback.destroy = unit_destroyed_callback_bridge; |
| 59 | _unit_destroy_callback.user_data = this; |
| 60 | _unit_destroy_callback.node.next = NULL; |
| 61 | _unit_destroy_callback.node.prev = NULL; |
| 62 | um.register_destroy_callback(&_unit_destroy_callback); |
| 63 | } |
| 64 | |
| 65 | AnimationStateMachine::~AnimationStateMachine() |
| 66 | { |
nothing calls this directly
no test coverage detected