mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 01:24:07 +00:00
20 lines
485 B
C++
20 lines
485 B
C++
#include "GeneralStat.h"
|
|
|
|
#include <vector>
|
|
|
|
#include "minecraft/stats/Stat.h"
|
|
#include "minecraft/stats/Stats.h"
|
|
|
|
class StatFormatter;
|
|
|
|
GeneralStat::GeneralStat(int id, const std::string& name,
|
|
StatFormatter* formatter)
|
|
: Stat(id, name, formatter) {}
|
|
|
|
GeneralStat::GeneralStat(int id, const std::string& name) : Stat(id, name) {}
|
|
|
|
Stat* GeneralStat::postConstruct() {
|
|
Stat::postConstruct();
|
|
Stats::generalStats->push_back(this);
|
|
return this;
|
|
} |