File WfEquipableItem.c
FileList > game > src > items > WfEquipableItem.c
Go to the source code of this file
#include "WfEquipableItem.h"
#include <stdbool.h>
#include <string.h>
#include "StringKeyHashMap.h"
#include "WfPlayer.h"
#include "Log.h"
#include "AssertLib.h"
Classes
Public Attributes
Public Functions
Public Static Functions
Public Attributes Documentation
variable gEquipableItems
struct HashMap gEquipableItems;
Public Functions Documentation
function WfEquipableMakeCurrentItem
void WfEquipableMakeCurrentItem (
struct Entity2D * pPlayer,
struct GameFrameworkLayer * pLayer
)
function WfEquipableOnUseItem
bool WfEquipableOnUseItem (
struct Entity2D * pPlayer,
struct GameFrameworkLayer * pLayer
)
function WfEquipableStopBeingCurrentItem
void WfEquipableStopBeingCurrentItem (
struct Entity2D * pPlayer,
struct GameFrameworkLayer * pLayer
)
function WfEquipableTryEquip
bool WfEquipableTryEquip (
struct Entity2D * pPlayer,
struct GameFrameworkLayer * pLayer,
enum WfEquipSlot slot,
struct WfItemDef * pDef
)
function WfEquipableTryUnEquip
bool WfEquipableTryUnEquip (
struct Entity2D * pPlayer,
struct GameFrameworkLayer * pLayer,
enum WfEquipSlot slot,
struct WfItemDef * pDef
)
function WfInitEquipable
void WfInitEquipable (
struct WfItemDef * pDef
)
Public Static Functions Documentation
function GetAnimationSetForDef
static struct WfAnimationSet GetAnimationSetForDef (
struct WfItemDef * pDef
)
function GetEquipSlot
static enum WfEquipSlot GetEquipSlot (
const char * equipSlotName
)
function PopulateAnimationSetLayerFromName
static void PopulateAnimationSetLayerFromName (
struct WfAnimationSetLayer * pLayer,
const char * name
)
The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/game/src/items/WfEquipableItem.c