🚚 Rename 'ItemStruct' to 'Item'
This commit is contained in:
parent
a207644d88
commit
bb2dfdfb73
24 changed files with 202 additions and 202 deletions
|
|
@ -35,7 +35,7 @@ void VerifyGoldSeeds(Player &player)
|
|||
|
||||
} // namespace
|
||||
|
||||
void PackItem(PkItemStruct *id, const ItemStruct *is)
|
||||
void PackItem(PkItemStruct *id, const Item *is)
|
||||
{
|
||||
memset(id, 0, sizeof(*id));
|
||||
if (is->isEmpty()) {
|
||||
|
|
@ -137,14 +137,14 @@ void PackPlayer(PlayerPack *pPack, const Player &player, bool manashield)
|
|||
}
|
||||
|
||||
/**
|
||||
* Expand a PkItemStruct in to a ItemStruct
|
||||
* Expand a PkItemStruct in to a Item
|
||||
*
|
||||
* Note: last slot of item[MAXITEMS+1] used as temporary buffer
|
||||
* find real name reference below, possibly [sizeof(item[])/sizeof(ItemStruct)]
|
||||
* find real name reference below, possibly [sizeof(item[])/sizeof(Item)]
|
||||
* @param is The source packed item
|
||||
* @param id The distination item
|
||||
*/
|
||||
void UnPackItem(const PkItemStruct *is, ItemStruct *id, bool isHellfire)
|
||||
void UnPackItem(const PkItemStruct *is, Item *id, bool isHellfire)
|
||||
{
|
||||
auto &item = Items[MAXITEMS];
|
||||
auto idx = static_cast<_item_indexes>(SDL_SwapLE16(is->idx));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue