ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
DemoGameState Struct Reference

Classes

struct  MapInfo

Public Attributes

std::mutex mtx
DemoScene scene = DEMO_SCENE_LOGIN
std::atomic< int > loginState {0}
int area = 1
std::string playerName
int64_t roleId = 0
DemoShape selected = DEMO_SHAPE_NONE
float posX = 320.0f
float posY = 240.0f
float angle = 0.0f
bool isPlayInit = false
bool m_wait_init = false
bool m_map_ready = false
bool show_fog = true
uint32_t m_map_ver = 0
ngl::obstacles m_map_data
bool is_spectator = false
float spectator_camera_x = 0.0f
float spectator_camera_y = 0.0f
int64_t spectator_follow_id = 0
bool spectator_free_camera = true
int32_t last_sent_angle = 0
int32_t last_sent_speed = 0
std::map< int64_t, DemoOtherPlayerotherPlayers
std::vector< MapInfoavailable_maps
int32_t selected_mapid = 0
DemoControlMode control_mode = DEMO_CTRL_MANUAL
DemoControlSubScene control_sub = DEMO_CTRLSUB_MENU
float move_speed = 200.0f
std::vector< std::pair< float, float > > path_world
int32_t path_idx = 0
float path_camera_x = 0.0f
float path_camera_y = 0.0f
float random_change_cd = 0.0f
int32_t random_target_speed = 0
float random_target_angle = 0.0f
float random_stuck_check_cd = 0.0f
float random_last_check_x = 0.0f
float random_last_check_y = 0.0f

The documentation for this struct was generated from the following file: