mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
41 lines
831 B
C++
41 lines
831 B
C++
#ifndef GAME_MWDIALOGUE_SELECTWRAPPER_H
|
|
#define GAME_MWDIALOGUE_SELECTWRAPPER_H
|
|
|
|
#include <components/esm/loadinfo.hpp>
|
|
|
|
namespace MWDialogue
|
|
{
|
|
class SelectWrapper
|
|
{
|
|
const ESM::DialInfo::SelectStruct& mSelect;
|
|
|
|
public:
|
|
|
|
enum Function
|
|
{
|
|
Function_None
|
|
};
|
|
|
|
enum Type
|
|
{
|
|
Type_None,
|
|
Type_Integer,
|
|
Type_Numeric
|
|
};
|
|
|
|
public:
|
|
|
|
SelectWrapper (const ESM::DialInfo::SelectStruct& select);
|
|
|
|
Function getFunction() const;
|
|
|
|
Type getType() const;
|
|
|
|
bool selectCompare (int value) const;
|
|
|
|
bool selectCompare (float value) const;
|
|
};
|
|
}
|
|
|
|
#endif
|