File WfPersistantGameData.h
FileList > game > include > WfPersistantGameData.h
Go to the source code of this file
#include <stdbool.h>
Classes
| Type | Name |
|---|---|
| struct | WfInventory |
| struct | WfInventoryItem |
| struct | WfPersistantData |
| struct | WfPlayerPreferences |
Public Functions
| Type | Name |
|---|---|
| bool | WfAddToInventory (struct WfInventory * pInv, int item, int quantity) |
| struct WfInventory * | WfGetInventory () |
| struct WfPersistantData * | WfGetLocalPlayerPersistantGameData () |
| struct WfPersistantData * | WfGetNetworkPlayerPersistantGameData (int playerNum) |
| struct WfInventory * | WfGetNetworkPlayersInventory (int player) |
| int | WfGetNumNetworkPlayerPersistentDataSlots () |
| struct WfPlayerPreferences * | WfGetPreferences () |
| void | WfLoadPersistantDataFile (const char * path) |
| void | WfLoadPersistantDataFileInternal (struct BinarySerializer * pBS, struct WfPersistantData * pData) |
| void | WfNewSavePersistantData () |
| void | WfPersistantDataInit () |
| void | WfSavePersistantDataFile (const char * path) |
| void | WfSavePersistantDataFileInternal (struct BinarySerializer * bs, struct WfPersistantData * pGameData) |
| void | WfSetNumNetworkPlayerPersistentDataSlots (int num) |
Macros
| Type | Name |
|---|---|
| define | VECTOR (a) a\* |
| define | WF_INVENTORY_ROW_SIZE 12 |
| define | WF_INVENTORY_SIZE_INITIAL WF\_INVENTORY\_ROW\_SIZE |
Public Functions Documentation
function WfAddToInventory
bool WfAddToInventory (
struct WfInventory * pInv,
int item,
int quantity
)
function WfGetInventory
struct WfInventory * WfGetInventory ()
function WfGetLocalPlayerPersistantGameData
struct WfPersistantData * WfGetLocalPlayerPersistantGameData ()
function WfGetNetworkPlayerPersistantGameData
struct WfPersistantData * WfGetNetworkPlayerPersistantGameData (
int playerNum
)
function WfGetNetworkPlayersInventory
struct WfInventory * WfGetNetworkPlayersInventory (
int player
)
function WfGetNumNetworkPlayerPersistentDataSlots
int WfGetNumNetworkPlayerPersistentDataSlots ()
function WfGetPreferences
struct WfPlayerPreferences * WfGetPreferences ()
function WfLoadPersistantDataFile
void WfLoadPersistantDataFile (
const char * path
)
function WfLoadPersistantDataFileInternal
void WfLoadPersistantDataFileInternal (
struct BinarySerializer * pBS,
struct WfPersistantData * pData
)
function WfNewSavePersistantData
void WfNewSavePersistantData ()
function WfPersistantDataInit
void WfPersistantDataInit ()
function WfSavePersistantDataFile
void WfSavePersistantDataFile (
const char * path
)
function WfSavePersistantDataFileInternal
void WfSavePersistantDataFileInternal (
struct BinarySerializer * bs,
struct WfPersistantData * pGameData
)
function WfSetNumNetworkPlayerPersistentDataSlots
void WfSetNumNetworkPlayerPersistentDataSlots (
int num
)
Macro Definition Documentation
define VECTOR
#define VECTOR (
a
) `a*`
define WF_INVENTORY_ROW_SIZE
#define WF_INVENTORY_ROW_SIZE `12`
define WF_INVENTORY_SIZE_INITIAL
#define WF_INVENTORY_SIZE_INITIAL `WF_INVENTORY_ROW_SIZE`
The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/game/include/WfPersistantGameData.h