File WfBasicScythe.c
File List > game > src > items > WfBasicScythe.c
Go to the documentation of this file
#include "WfBasicScythe.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-scythe",
.pUserData = NULL,
.onMakeCurrent = &OnMakeCurrentItem,
.onStopBeingCurrent = &OnStopBeingCurrentItem,
.onUseItem = &OnUseItem,
.onTryEquip = &TryEquip,
.pickupSpriteName = "basic-scythe",
};
void WfAddBasicScytheDef()
{
WfAddItemDef(&gDef);
}