mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-08-01 12:50:36 +00:00
chore: replace all usages of removed ClassUtils macros
This commit is contained in:
@@ -31,7 +31,7 @@ namespace menu
|
||||
{
|
||||
}
|
||||
|
||||
_NODISCARD MatcherFactoryWrapper<SimpleParserValue> ScriptStrictNumeric() const
|
||||
[[nodiscard]] MatcherFactoryWrapper<SimpleParserValue> ScriptStrictNumeric() const
|
||||
{
|
||||
return And({
|
||||
MatcherFactoryWrapper<SimpleParserValue>(std::make_unique<MenuMatcherScriptNumeric>())
|
||||
@@ -64,7 +64,7 @@ namespace menu
|
||||
});
|
||||
}
|
||||
|
||||
_NODISCARD MatcherFactoryWrapper<SimpleParserValue> ScriptNumeric() const
|
||||
[[nodiscard]] MatcherFactoryWrapper<SimpleParserValue> ScriptNumeric() const
|
||||
{
|
||||
return Or({
|
||||
ScriptStrictNumeric(),
|
||||
@@ -81,7 +81,7 @@ namespace menu
|
||||
});
|
||||
}
|
||||
|
||||
_NODISCARD MatcherFactoryWrapper<SimpleParserValue> ScriptStrictInt() const
|
||||
[[nodiscard]] MatcherFactoryWrapper<SimpleParserValue> ScriptStrictInt() const
|
||||
{
|
||||
return And({
|
||||
MatcherFactoryWrapper<SimpleParserValue>(std::make_unique<MenuMatcherScriptInt>())
|
||||
@@ -100,7 +100,7 @@ namespace menu
|
||||
});
|
||||
}
|
||||
|
||||
_NODISCARD MatcherFactoryWrapper<SimpleParserValue> ScriptChar(const char c) const
|
||||
[[nodiscard]] MatcherFactoryWrapper<SimpleParserValue> ScriptChar(const char c) const
|
||||
{
|
||||
return Or({
|
||||
Char(c),
|
||||
@@ -118,7 +118,7 @@ namespace menu
|
||||
});
|
||||
}
|
||||
|
||||
_NODISCARD MatcherFactoryWrapper<SimpleParserValue> ScriptInt() const
|
||||
[[nodiscard]] MatcherFactoryWrapper<SimpleParserValue> ScriptInt() const
|
||||
{
|
||||
return Or({
|
||||
ScriptStrictInt(),
|
||||
@@ -136,7 +136,7 @@ namespace menu
|
||||
});
|
||||
}
|
||||
|
||||
_NODISCARD MatcherFactoryWrapper<SimpleParserValue> ScriptText() const
|
||||
[[nodiscard]] MatcherFactoryWrapper<SimpleParserValue> ScriptText() const
|
||||
{
|
||||
return Or({
|
||||
Type(SimpleParserValueType::STRING),
|
||||
@@ -154,12 +154,12 @@ namespace menu
|
||||
});
|
||||
}
|
||||
|
||||
_NODISCARD MatcherFactoryWrapper<SimpleParserValue> ScriptKeyword(std::string keyword) const
|
||||
[[nodiscard]] MatcherFactoryWrapper<SimpleParserValue> ScriptKeyword(std::string keyword) const
|
||||
{
|
||||
return KeywordIgnoreCase(std::move(keyword));
|
||||
}
|
||||
|
||||
_NODISCARD MatcherFactoryWrapper<SimpleParserValue> ScriptColor() const
|
||||
[[nodiscard]] MatcherFactoryWrapper<SimpleParserValue> ScriptColor() const
|
||||
{
|
||||
return And({
|
||||
ScriptStrictNumeric(),
|
||||
@@ -169,7 +169,7 @@ namespace menu
|
||||
});
|
||||
}
|
||||
|
||||
_NODISCARD MatcherFactoryWrapper<SimpleParserValue> ScriptLocalVarIntOrLiteral() const
|
||||
[[nodiscard]] MatcherFactoryWrapper<SimpleParserValue> ScriptLocalVarIntOrLiteral() const
|
||||
{
|
||||
return Or({
|
||||
And({
|
||||
@@ -182,7 +182,7 @@ namespace menu
|
||||
});
|
||||
}
|
||||
|
||||
_NODISCARD MatcherFactoryWrapper<SimpleParserValue> ScriptLocalVarBoolOrLiteral() const
|
||||
[[nodiscard]] MatcherFactoryWrapper<SimpleParserValue> ScriptLocalVarBoolOrLiteral() const
|
||||
{
|
||||
return Or({
|
||||
And({
|
||||
|
||||
Reference in New Issue
Block a user