onilink_

Untitled

Nov 14th, 2019
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. template<int frames, unsigned... states>
  2. struct MonsterMountState
  3. {
  4.     std::array<od::Vec2, frames> offsets;
  5.     std::array<unsigned, sizeof...(states)> associated_states;
  6. };
  7.  
  8. template<typename Monster, typename... States>
  9. struct MonsterMount
  10. {
  11.     std::tuple<States...> states;
  12.    
  13.     od::Vec2 offset(unsigned state) const
  14.     {
  15.         for(const auto& mount_state: states) {
  16.            
  17.         }
  18.        
  19.         return {};
  20.     }
  21. };
Advertisement
Add Comment
Please, Sign In to add comment