Stardew Engine
Loading...
Searching...
No Matches
WfWorld.h
Go to the documentation of this file.
1
#ifndef WFWORLD_H
2
#define WFWORLD_H
3
#include "
WfEnums.h
"
4
#include "
StringKeyHashMap.h
"
5
#include <stdbool.h>
6
7
#define MAX_LOCATION_NAME_LEN 128
8
9
10
struct
WfLocation
11
{
12
char
levelFilePath
[256];
13
bool
bIsInterior
;
14
};
15
16
struct
DrawContext
;
17
typedef
struct
DrawContext
DrawContext
;
18
19
char
*
WfWorld_GetCurrentLocationFilePath
();
20
21
void
WfWorld_AddLocation
(
const
struct
WfLocation
* pLocation,
const
char
* locationName);
22
23
void
WfWorld_LoadLocation
(
const
char
* locationName,
DrawContext
* pDC);
24
25
const
char
*
WfWorld_GetCurrentLocationName
();
26
27
const
char
*
WfWorld_GetPreviousLocationName
();
28
29
void
WfWorld_SetCurrentLocationName
(
const
char
*
name
);
30
31
void
WfWorldInit
();
32
33
void
WfWorld_ClearLocations
();
34
35
#endif
StringKeyHashMap.h
WfEnums.h
WfWorldInit
void WfWorldInit()
Definition
WfWorld.c:17
WfWorld_GetCurrentLocationName
const char * WfWorld_GetCurrentLocationName()
Definition
WfWorld.c:38
WfWorld_GetCurrentLocationFilePath
char * WfWorld_GetCurrentLocationFilePath()
Definition
WfWorld.c:78
WfWorld_ClearLocations
void WfWorld_ClearLocations()
Definition
WfWorld.c:55
WfWorld_SetCurrentLocationName
void WfWorld_SetCurrentLocationName(const char *name)
Definition
WfWorld.c:48
WfWorld_AddLocation
void WfWorld_AddLocation(const struct WfLocation *pLocation, const char *locationName)
Definition
WfWorld.c:22
WfWorld_GetPreviousLocationName
const char * WfWorld_GetPreviousLocationName()
Definition
WfWorld.c:43
WfWorld_LoadLocation
void WfWorld_LoadLocation(const char *locationName, DrawContext *pDC)
Definition
WfWorld.c:27
name
const char *const name
Definition
cJSON.h:270
DrawContext
Definition
DrawContext.h:59
WfLocation
Definition
WfWorld.h:11
WfLocation::levelFilePath
char levelFilePath[256]
Definition
WfWorld.h:12
WfLocation::bIsInterior
bool bIsInterior
Definition
WfWorld.h:13
Stardew
game
include
WfWorld.h
Generated by
1.9.8