File WfBaseItemImpls.c
FileList > game > src > items > WfBaseItemImpls.c
Go to the source code of this file
#include "WfBaseItemImpls.h"#include "Log.h"
Public Functions
| Type | Name |
|---|---|
| void | WfBaseInitDef (struct WfItemDef * def) |
| void | WfBaseOnGameLayerPop (struct WfItemDef * pDef, struct GameFrameworkLayer * pLayer, DrawContext * drawContext, InputContext * inputContext) |
| void | WfBaseOnGameLayerPush (struct WfItemDef * pDef, struct GameFrameworkLayer * pLayer, DrawContext * drawContext, InputContext * inputContext) |
| void | WfBaseOnMakeCurrentItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer) |
| void | WfBaseOnStopBeingCurrentItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer) |
| bool | WfBaseOnUseItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer) |
| bool | WfBaseTryEquip (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer, enum WfEquipSlot slot, struct WfItemDef * pDef) |
| bool | WfBaseTryUnEquip (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer, enum WfEquipSlot slot, struct WfItemDef * pDef) |
Public Functions Documentation
function WfBaseInitDef
void WfBaseInitDef (
struct WfItemDef * def
)
function WfBaseOnGameLayerPop
void WfBaseOnGameLayerPop (
struct WfItemDef * pDef,
struct GameFrameworkLayer * pLayer,
DrawContext * drawContext,
InputContext * inputContext
)
function WfBaseOnGameLayerPush
void WfBaseOnGameLayerPush (
struct WfItemDef * pDef,
struct GameFrameworkLayer * pLayer,
DrawContext * drawContext,
InputContext * inputContext
)
function WfBaseOnMakeCurrentItem
void WfBaseOnMakeCurrentItem (
struct Entity2D * pPlayer,
struct GameFrameworkLayer * pLayer
)
function WfBaseOnStopBeingCurrentItem
void WfBaseOnStopBeingCurrentItem (
struct Entity2D * pPlayer,
struct GameFrameworkLayer * pLayer
)
function WfBaseOnUseItem
bool WfBaseOnUseItem (
struct Entity2D * pPlayer,
struct GameFrameworkLayer * pLayer
)
function WfBaseTryEquip
bool WfBaseTryEquip (
struct Entity2D * pPlayer,
struct GameFrameworkLayer * pLayer,
enum WfEquipSlot slot,
struct WfItemDef * pDef
)
function WfBaseTryUnEquip
bool WfBaseTryUnEquip (
struct Entity2D * pPlayer,
struct GameFrameworkLayer * pLayer,
enum WfEquipSlot slot,
struct WfItemDef * pDef
)
The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/game/src/items/WfBaseItemImpls.c