Add basic map pin functionality

- Define Point structure for 3D coordinates
- Add map pin type constants
- Implement placeholder functions for:
  * Player location loading
  * Map pin addition
  * Pin counting
- Foundation for Korok seed tracking
This commit is contained in:
badblocks 2023-05-18 11:49:10 -07:00
parent d689902de7
commit 8ddd30bbb4
No known key found for this signature in database
2 changed files with 50 additions and 0 deletions

22
source/map_basic.h Normal file
View file

@ -0,0 +1,22 @@
#ifndef MAP_H
#define MAP_H
#include <stdlib.h>
#include <switch.h>
#define MAP_PIN_STAR 0x1F
#define MAP_PIN_LEAF 0x22
#define MAP_PIN_EMPTY 0xFFFFFFFF
typedef struct {
u32 hash;
float x;
float y;
float z;
} Point;
void loadPlayerLocation();
void addMapPin(u32 icon, Point location);
void countMapPins();
#endif