File WfBasicBow.c
File List > game > src > items > WfBasicBow.c
Go to the documentation of this file
#include "WfBasicBow.h"
#include "WfItem.h"
#include <stdlib.h>
static void OnMakeCurrentItem(struct Entity2D* pPlayer, struct GameFrameworkLayer* pLayer)
{
}
static void OnStopBeingCurrentItem(struct Entity2D* pPlayer, struct GameFrameworkLayer* pLayer)
{
}
static bool OnUseItem(struct Entity2D* pPlayer, struct GameFrameworkLayer* pLayer)
{
return true;
}
static bool TryEquip(struct Entity2D* pPlayer, struct GameFrameworkLayer* pLayer, enum WfEquipSlot slot)
{
return false;
}
static struct WfItemDef gDef =
{
.UISpriteName = "basic-bow",
.pUserData = NULL,
.onMakeCurrent = &OnMakeCurrentItem,
.onStopBeingCurrent = &OnStopBeingCurrentItem,
.onUseItem = &OnUseItem,
.onTryEquip = &TryEquip,
.pickupSpriteName = "basic-bow",
};
void WfAddBasicBowDef()
{
WfAddItemDef(&gDef);
}