You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
653 B
23 lines
653 B
/** |
|
* @file items/validation.h |
|
* |
|
* Interface of functions for validation of player and item data. |
|
*/ |
|
#pragma once |
|
|
|
#include <cstdint> |
|
|
|
// Forward declared structs to avoid circular dependencies |
|
struct Item; |
|
struct Player; |
|
|
|
namespace devilution { |
|
|
|
bool IsCreationFlagComboValid(uint16_t iCreateInfo); |
|
bool IsTownItemValid(uint16_t iCreateInfo, const Player &player); |
|
bool IsShopPriceValid(const Item &item); |
|
bool IsUniqueMonsterItemValid(uint16_t iCreateInfo, uint32_t dwBuff); |
|
bool IsDungeonItemValid(uint16_t iCreateInfo, uint32_t dwBuff); |
|
bool IsItemValid(const Player &player, const Item &item); |
|
|
|
} // namespace devilution
|
|
|