Advertisement
Kitomas

object.hpp as of 2024-05-03

May 3rd, 2024
612
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.73 KB | None | 0 0
  1. #ifndef _OBJECT_HPP
  2. #define _OBJECT_HPP
  3.  
  4. #include <globals.hpp>
  5.  
  6.  
  7.  
  8.  
  9.  
  10. struct Object;
  11.  
  12. typedef void (*Object_TickCallback)(Object* obj_a);
  13.  
  14. struct Object { //48B
  15.   kit::u64               _user_0;
  16.   kit::u64               _user_1;
  17.   kit::u64               _user_2;
  18.   Object_TickCallback funcUpdate;
  19.  
  20.  
  21.   struct {
  22.     kit::u16           hb_size_x;
  23.     kit::u16           hb_size_y;
  24.     kit::u8          hb_offset_x;
  25.     kit::u8          hb_offset_y;
  26.   };
  27.  
  28.   kit::s16                     x;
  29.   kit::s16                     y;
  30.  
  31.   kit::u16                  type;
  32. };
  33. //tbd: finish adding hitbox offsets so that the collision box can be
  34.  //    different than the sprites bounding box
  35.  
  36.  
  37.  
  38.  
  39.  
  40. #endif /* _OBJECT_HPP */
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement