Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<int frames, unsigned... states>
- struct MonsterMountState
- {
- std::array<od::Vec2, frames> offsets;
- std::array<unsigned, sizeof...(states)> associated_states;
- };
- template<typename Monster, typename... States>
- struct MonsterMount
- {
- std::tuple<States...> states;
- od::Vec2 offset(unsigned state) const
- {
- for(const auto& mount_state: states) {
- }
- return {};
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment