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:
parent
d689902de7
commit
8ddd30bbb4
2 changed files with 50 additions and 0 deletions
22
source/map_basic.h
Normal file
22
source/map_basic.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue