1
This commit is contained in:
parent
5a5e8fddcb
commit
7db4770845
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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_;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user