mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 02:08:20 +00:00
20 lines
365 B
C++
20 lines
365 B
C++
#include "ModifierScale.h"
|
|
|
|
nejlika::ModifierScale::ModifierScale(const nlohmann::json & json)
|
|
{
|
|
level = json["level"].get<int32_t>();
|
|
min = json["min"].get<float>();
|
|
max = json["max"].get<float>();
|
|
}
|
|
|
|
nlohmann::json nejlika::ModifierScale::ToJson() const
|
|
{
|
|
nlohmann::json json;
|
|
|
|
json["level"] = level;
|
|
json["min"] = min;
|
|
json["max"] = max;
|
|
|
|
return json;
|
|
}
|