Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _OBJECT_HPP
- #define _OBJECT_HPP
- #include <globals.hpp>
- struct Object;
- typedef void (*Object_TickCallback)(Object* obj_a);
- struct Object { //48B
- kit::u64 _user_0;
- kit::u64 _user_1;
- kit::u64 _user_2;
- Object_TickCallback funcUpdate;
- struct {
- kit::u16 hb_size_x;
- kit::u16 hb_size_y;
- kit::u8 hb_offset_x;
- kit::u8 hb_offset_y;
- };
- kit::s16 x;
- kit::s16 y;
- kit::u16 type;
- };
- //tbd: finish adding hitbox offsets so that the collision box can be
- // different than the sprites bounding box
- #endif /* _OBJECT_HPP */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement