Без опису

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef _OAM_TYPES
  2. #define _OAM_TYPES
  3. #define objBaseAddr 0x02020630
  4. typedef struct
  5. {
  6. short color[16];
  7. } Palette16Colors;
  8. typedef struct
  9. {
  10. u8 character[1];
  11. } TextStruct; // just to have a type for texts, TODO: maybe actually define the struct if necessary
  12. typedef struct
  13. {
  14. u16 x, y;
  15. } Position;
  16. typedef struct
  17. {
  18. u8 y, flags, x, msbXFlags;
  19. u16 tileProPal, irrelevant;
  20. } OAM;
  21. typedef struct
  22. {
  23. OAM oamAttr;
  24. void *animationPtr;
  25. u8 fC, fD, fE, fF;
  26. u32 f10;
  27. u32 objectTemplate;
  28. u32 f18;
  29. void *callbackPtr;
  30. Position pos1, pos2;
  31. u8 pos3x, pos3y, animNr, animFrame, time, f2D;
  32. Position iPos, iVel;
  33. u32 derp1, derp2;
  34. u8 f42, f43, end;
  35. } Sprite;
  36. typedef struct
  37. {
  38. u16 f0, f1;
  39. u32 oam, animation, gfx, animation2;
  40. void *callback;
  41. u8 end;
  42. } OBJTemplate;
  43. #endif