mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-26 07:27:18 +00:00
33 lines
499 B
C++
33 lines
499 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include "json.hpp"
|
|
|
|
namespace nejlika
|
|
{
|
|
|
|
class ModifierScale
|
|
{
|
|
public:
|
|
ModifierScale() = default;
|
|
|
|
ModifierScale(int32_t level, float min, float max) : level(level), min(min), max(max) {}
|
|
|
|
ModifierScale(const nlohmann::json& json);
|
|
|
|
nlohmann::json ToJson() const;
|
|
|
|
int32_t GetLevel() const { return level; }
|
|
|
|
float GetMin() const { return min; }
|
|
|
|
float GetMax() const { return max; }
|
|
|
|
private:
|
|
int32_t level = 0;
|
|
float min = 0.0f;
|
|
float max = 0.0f;
|
|
};
|
|
|
|
} |