forked from teamnwah/openmw-tes3coop
45 lines
975 B
C++
45 lines
975 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,
|
|
Type_Boolean
|
|
};
|
|
|
|
public:
|
|
|
|
SelectWrapper (const ESM::DialInfo::SelectStruct& select);
|
|
|
|
Function getFunction() const;
|
|
|
|
Type getType() const;
|
|
|
|
bool IsInverted() const;
|
|
|
|
bool selectCompare (int value) const;
|
|
|
|
bool selectCompare (float value) const;
|
|
|
|
bool selectCompare (bool value) const;
|
|
};
|
|
}
|
|
|
|
#endif
|