| 1729 | } |
| 1730 | |
| 1731 | void EntitySystemHelpersBase::SystemUpdateHook(BaseSystem* system, EntityWorld& world, GameTime const& time) |
| 1732 | { |
| 1733 | auto systemId = systemToId_.find(system); |
| 1734 | assert(systemId != systemToId_.end()); |
| 1735 | auto& hooks = systemHooks_[(unsigned)systemId->second]; |
| 1736 | if (hooks.PreUpdate) { |
| 1737 | hooks.PreUpdate(this, system, time, systemId->second); |
| 1738 | } |
| 1739 | |
| 1740 | hooks.OriginalUpdateProc(system, world, time); |
| 1741 | |
| 1742 | if (hooks.PostUpdate) { |
| 1743 | hooks.PostUpdate(this, system, time, systemId->second); |
| 1744 | } |
| 1745 | } |
| 1746 | |
| 1747 | void EntitySystemHelpersBase::StaticSystemUpdateHook(BaseSystem* system, EntityWorld& world, GameTime const& time) |
| 1748 | { |
no test coverage detected