102 lines
3.1 KiB
C++
102 lines
3.1 KiB
C++
#pragma once
|
|
|
|
#include "mt/macro.h"
|
|
#include "mtb/Parameter.h"
|
|
|
|
namespace mt
|
|
{
|
|
|
|
DECLARE_NAME_TABLE(Param, mtb::Parameter,
|
|
"parameter@parameter.csv",
|
|
"param_name")
|
|
public:
|
|
struct S {
|
|
int gas_inactive_time = 10;
|
|
float kill_param = 0.0f;
|
|
float rank_param = 0.0f;
|
|
int fighting_mode = 0;
|
|
float max_oil = 0.0f;
|
|
float max_mount_horse_distance = 100.0f;
|
|
|
|
int downed_relive_recover_hp = 0;
|
|
|
|
int level0room_shua_robot_min_time = 0;
|
|
int level0room_shua_robot_max_time = 0;
|
|
int level0room_shua_robot_min_num = 0;
|
|
int level0room_shua_robot_max_num = 0;
|
|
int level0room_die_robot_min_time = 0;
|
|
int level0room_die_robot_max_time = 0;
|
|
int level0room_die_robot_min_num = 0;
|
|
int level0room_die_robot_max_num = 0;
|
|
int level0room_robot_water = 0;
|
|
int level0room_robot_protect_time = 0;
|
|
int level0room_robot_autodie_time = 0;
|
|
int level0room_robot_autodie_distance = 0;
|
|
|
|
int level1room_shua_robot_min_time = 0;
|
|
int level1room_shua_robot_max_time = 0;
|
|
int level1room_shua_robot_min_num = 0;
|
|
int level1room_shua_robot_max_num = 0;
|
|
int level1room_die_robot_min_time = 0;
|
|
int level1room_die_robot_max_time = 0;
|
|
int level1room_die_robot_min_num = 0;
|
|
int level1room_die_robot_max_num = 0;
|
|
int level1room_robot_water = 0;
|
|
int level1room_robot_autodie_time = 0;
|
|
int level1room_robot_autodie_distance = 0;
|
|
std::string level1room_born_point;
|
|
|
|
double water_move_coefficient = 0.75f;
|
|
|
|
int view_objects_out_distance = 580;
|
|
int view_objects_in_distance = 580;
|
|
|
|
int incubator_base_length = 580;
|
|
int incubator_rand_length = 100;
|
|
int incubator_canset_distance = 100;
|
|
|
|
int refresh_view_time = 8;
|
|
|
|
int teammate_kill_color = 0xFFFF00;
|
|
int teammate_bekill_color = 0xFF0000;
|
|
|
|
int self_kill_color = 0xFFFF00;
|
|
int self_bekill_color = 0xFF0000;
|
|
|
|
int map_cell_width = 64 * 8;
|
|
int bullet_planck_step_length = 15;
|
|
const mt::Hero* human_meta = nullptr;
|
|
const mt::Hero* android_meta = nullptr;
|
|
|
|
int prebattle_can_use_skill = 0;
|
|
int watchable = 0;
|
|
int prebattle_combine_team = 1;
|
|
|
|
int match_team_time = 0;
|
|
int match_robot_time = 0;
|
|
int match_choose_time = 0;
|
|
int match_lock_time = 0;
|
|
|
|
int dive_oxygen_total = 0;
|
|
int dive_oxygen_consume = 0;
|
|
int dive_hp_consume = 0;
|
|
int dive_explosion_dmg_switch = 0;
|
|
int inwater_oxygen_recover = 0;
|
|
|
|
int revive_time = 15;
|
|
|
|
int move_step_len = 80;
|
|
};
|
|
static void StaticPostInit();
|
|
static const S& s() { return s_; };
|
|
|
|
static int GetIntParam(const std::string& param_name, int def_val = 0);
|
|
static double GetFloatParam(const std::string& param_name, double def_val = 0.0f);
|
|
static std::string GetStringParam(const std::string& param_name, const char* def_val = "");
|
|
|
|
private:
|
|
static S s_;
|
|
};
|
|
|
|
}
|