mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
24 lines
447 B
C++
24 lines
447 B
C++
#ifndef OPENMW_MECHANICS_LEVELLEDLIST_H
|
|
#define OPENMW_MECHANICS_LEVELLEDLIST_H
|
|
|
|
#include <components/misc/rng.hpp>
|
|
|
|
#include <optional>
|
|
|
|
namespace ESM
|
|
{
|
|
struct LevelledListBase;
|
|
class RefId;
|
|
}
|
|
|
|
namespace MWMechanics
|
|
{
|
|
|
|
/// @return ID of resulting item, or empty if none
|
|
ESM::RefId getLevelledItem(
|
|
const ESM::LevelledListBase* levItem, bool creature, Misc::Rng::Generator& prng, std::optional<int> level = {});
|
|
|
|
}
|
|
|
|
#endif
|