No Description

save_one.h 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /****************************************************************************
  2. * Copyright (C) 2015-2017 by the SotS Team *
  3. * *
  4. * This file is part of Sovereign of the Skies. *
  5. * *
  6. * Sovereign of the Skies is free software: you can redistribute it *
  7. * and/or modify it *
  8. * under the terms of the GNU Lesser General Public License as published *
  9. * by the Free Software Foundation, either version 3 of the License, or *
  10. * (at your option) any later version provided you include a copy of the *
  11. * licence and this header. *
  12. * *
  13. * Sovereign of the Skies is distributed in the hope that it will be *
  14. * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  16. * GNU Lesser General Public License for more details. *
  17. * *
  18. * You should have received a copy of the GNU Lesser General Public *
  19. * License along with Sovereign of the Skies. *
  20. * If not, see <http://www.gnu.org/licenses/>. *
  21. ****************************************************************************/
  22. /*
  23. * File: save_one.h
  24. * Author: Sturmvogel
  25. *
  26. * Created on May 2, 2017
  27. * @brief Provides structures for save file access
  28. */
  29. #ifndef SAVE_ONE_H
  30. #define SAVE_ONE_H
  31. #include <types.h>
  32. /* === STRUCTURES === */
  33. /* === STRUCTURES === */
  34. struct lt_point
  35. {
  36. u16 x;
  37. u16 y;
  38. };
  39. struct lt_warpdata
  40. {
  41. u8 bank;
  42. u8 map;
  43. u8 warpid;
  44. u8 unknown;
  45. u16 enter_x;
  46. u16 enter_y;
  47. };
  48. struct sav_struct
  49. {
  50. struct lt_point position;
  51. struct lt_warpdata location;
  52. };
  53. extern struct sav_struct *sav_one;
  54. #endif /* SAVE_ONE_H */