This commit is contained in:
@@ -68,6 +68,11 @@ namespace Porygon::Evaluation {
|
||||
return _value;
|
||||
}
|
||||
|
||||
[[nodiscard]]
|
||||
inline double EvaluateFloat() const final {
|
||||
return static_cast<double>(_value);
|
||||
}
|
||||
|
||||
[[nodiscard]]
|
||||
inline std::u16string EvaluateString() const final{
|
||||
return Utilities::StringUtils::IntToString(_value);
|
||||
@@ -122,6 +127,11 @@ namespace Porygon::Evaluation {
|
||||
return _value;
|
||||
}
|
||||
|
||||
[[nodiscard]]
|
||||
inline long EvaluateInteger() const final {
|
||||
return static_cast<long>(_value);
|
||||
}
|
||||
|
||||
[[nodiscard]]
|
||||
inline std::u16string EvaluateString() const final{
|
||||
return Utilities::StringUtils::FloatToString(_value);
|
||||
|
||||
Reference in New Issue
Block a user