18 enum class Type : uchar {
25 using Value = ::std::variant<::std::monostate, bool, int, float>;
31 ::ll::TypedStorage<1, 1, bool> mSuccess;
32 ::ll::TypedStorage<8, 32, ::std::string> mErrorDescription;
33 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mErrorParameters;
51 using ValidateValueCallback =
57 ::ll::TypedStorage<1, 1, bool> mShouldSave;
58 ::ll::TypedStorage<1, 1, ::GameRule::Type> mType;
59 ::ll::TypedStorage<4, 8, ::std::variant<::std::monostate, bool, int, float>> mValue;
60 ::ll::TypedStorage<8, 32, ::std::string> mName;
61 ::ll::TypedStorage<1, 1, bool> mAllowUseInCommand;
62 ::ll::TypedStorage<1, 1, bool> mAllowUseInScripting;
63 ::ll::TypedStorage<1, 1, bool> mIsDefaultSet;
64 ::ll::TypedStorage<1, 1, bool> mRequiresCheats;
65 ::ll::TypedStorage<1, 1, bool> mCanBeModifiedByPlayer;
71 mValidateValueCallback;
85 MCAPI
GameRule(::std::string
const& name,
bool canBeModifiedByPlayer);
87 MCAPI ::GameRule& _setDefaultValue(
bool b);
89 MCAPI ::GameRule& _setDefaultValue(
int i);
91 MCAPI ::std::string getLowercaseName()
const;
95 MCAPI ::GameRule& operator=(
::GameRule const&);
97 MCAPI
bool operator==(
::GameRule const& other)
const;
99 MCAPI
void resetType(::GameRule::Type type);
109 MCAPI ::GameRule& setValidateValueCallback(
124 MCAPI
void* $ctor(::std::string
const& name,
bool canBeModifiedByPlayer);