This commit is contained in:
aozhiwei 2022-12-22 16:47:14 +08:00
parent 5a5e8fddcb
commit 7db4770845
2 changed files with 13 additions and 2 deletions

View File

@ -3,7 +3,14 @@
#include "mt/Param.h"
IMPL_TABLE(mt::Param)
mt::Param::S mt::Param::s_;
namespace mt
{
void Param::StaticPostInit()
{
s_.gas_inactive_time = 100;
}
}

View File

@ -10,7 +10,7 @@ namespace mt
"parameter@parameter.csv",
"param_name")
public:
static struct {
struct S {
int gas_inactive_time = 10;
float kill_param = 0.0f;
float rank_param = 0.0f;
@ -84,7 +84,11 @@ namespace mt
int inwater_oxygen_recover = 0;
int revive_time = 15;
} s;
};
static void StaticPostInit();
static const S& s() { return s_; };
private:
static S s_;
};
}