1
This commit is contained in:
parent
5a5e8fddcb
commit
7db4770845
@ -3,7 +3,14 @@
|
|||||||
#include "mt/Param.h"
|
#include "mt/Param.h"
|
||||||
|
|
||||||
IMPL_TABLE(mt::Param)
|
IMPL_TABLE(mt::Param)
|
||||||
|
mt::Param::S mt::Param::s_;
|
||||||
|
|
||||||
namespace mt
|
namespace mt
|
||||||
{
|
{
|
||||||
|
|
||||||
|
void Param::StaticPostInit()
|
||||||
|
{
|
||||||
|
s_.gas_inactive_time = 100;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ namespace mt
|
|||||||
"parameter@parameter.csv",
|
"parameter@parameter.csv",
|
||||||
"param_name")
|
"param_name")
|
||||||
public:
|
public:
|
||||||
static struct {
|
struct S {
|
||||||
int gas_inactive_time = 10;
|
int gas_inactive_time = 10;
|
||||||
float kill_param = 0.0f;
|
float kill_param = 0.0f;
|
||||||
float rank_param = 0.0f;
|
float rank_param = 0.0f;
|
||||||
@ -84,7 +84,11 @@ namespace mt
|
|||||||
int inwater_oxygen_recover = 0;
|
int inwater_oxygen_recover = 0;
|
||||||
|
|
||||||
int revive_time = 15;
|
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