mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-03-22 10:15:22 -05:00
37 lines
772 B
C
37 lines
772 B
C
#ifndef POKEPLATINUM_LOCATION_H
|
|
#define POKEPLATINUM_LOCATION_H
|
|
|
|
#include "savedata.h"
|
|
|
|
#define WARP_ID_NONE -1
|
|
|
|
enum FaceDirection {
|
|
FACE_UP = 0,
|
|
FACE_DOWN,
|
|
FACE_LEFT,
|
|
FACE_RIGHT,
|
|
};
|
|
|
|
typedef struct Location {
|
|
int mapId;
|
|
int warpId;
|
|
int x;
|
|
int z;
|
|
int faceDirection;
|
|
} Location;
|
|
|
|
static inline void Location_Set(Location *location, int mapId, int warpId, int x, int z, int faceDirection)
|
|
{
|
|
location->mapId = mapId;
|
|
location->warpId = warpId;
|
|
location->x = x;
|
|
location->z = z;
|
|
location->faceDirection = faceDirection;
|
|
}
|
|
|
|
void SetPlayerStartLocation(Location *outLocation);
|
|
void SetPlayerFirstRespawnLocation(Location *outLocation);
|
|
void InitPlayerStartLocation(SaveData *saveData);
|
|
|
|
#endif // POKEPLATINUM_LOCATION_H
|