- 打卡等级:热心大叔
- 打卡总天数:94
- 打卡月天数:17
- 打卡总奖励:94
- 最近打卡:2025-01-18 01:28:20
|
3.1 变量的加载
有 2 个变量文件
const char* SYSTEM_CFG = ".\\Game.cfg";
const char* USER_CFG = "..\\Accounts\\Game.cfg";
首先加载 SYSTEM_CFG。然后检查是否直连服务器,如果是则说明也不做。如果不是直连,则加
载用户的变量。也就是用户变量仅在非直连时有效。
3.2 变量列表
参数 | 值 | GameServer_Address | 192.168.0.200 | GameServer_Port | 1231 | GameServer_ConnectDirect | 直接连 GameServer 0 | Game_EnterDirect | 单机测试 0 | Login_Area | 0 | Login_Server | 0 | User_NAME | 晴格 | User_GENDER | 0 | User_GUID | 2133513795 | User_HAIR_COLOR | 0 | User_FACE_COLOR | 0 | User_HAIR_MODEL | 0 | User_FACE_MODEL | 100 | User_FACE_ID | 18 | User_LEVEL | 1 | User_MENPAI | 13 | System_MaxFPS | 80 | Gfx_API | Direct3D | Gfx_PostFilter | Floodlighting | Camera_MinDistance | 4.0 | Camera_MaxDistance | 100.0 | Camera_Pitch | 37.0 | Camera_PitchApproch | 25.0 | Camera_FOV | 35.0 | DisableAllSound | 0 | EnableBGSound | 1 | Enable3DSound | 1 | EnableSKSound | 1 | EnableUISound | 1 | VOLUME_BG | 1.000000 | VOLUME_3D | 0.980000 | VOLUME_SK | 1.000000 | VOLUME_UI | 1.000000 | EnableLuaCrash | 1 | View_Gamma | 0 | View_Fanhunjiao | 1 | View_GroundHighLight | 0 | View_TextureQuality | 0 | View_ObjectMove | 0 | View_Aplomb | 0 | View_WaterMove | 0 | View_HumanLightmap | 0 | View_HumanHighLight | 0 | View_FullScreenLight | 0 | View_Resoution | 794,572 | View_LightmapQuality | 0 | View_ColorQuality | 1 | View_TextureFiltering | 0 | View_PolygonQuantity | 0 | View_FullScreen | 0 | Camera_Rotation | 1 | GameMoveSpeed | 5 | Camera_Parallel_Offset | 2 | Camera_Varible_Offset | 1 | User_COUNTRY | 0 | View_HumanNum | 0 |
3.2.1 GameServer_ConnectDirect
如果不是直连,则加载“..AccountsGame.cfg”
直连不保存变量
直连时 login 直接切换到 Change-Server 流程(ChangeScene),并不打开登录界面和不进入单机测试
直连时不选择脸部模型,用默认即可
3.2.2 Game_EnterDirect
单机时,人物移动速度从变量系统中获取
单机时,打开账号输入界面
CGameProcedure::s_pEventSystem->PushEvent( GE_GAMELOGIN_OPEN_COUNT_INPUT);
// 关闭系统界面
CGameProcedure::s_pEventSystem->PushEvent( GE_GAMELOGIN_CLOSE_SYSTEM_INFO);
// 关闭服务器选择界面
CGameProcedure::s_pEventSystem->PushEvent( GE_GAMELOGIN_CLOSE_SELECT_SERVER);
单机时,设置场景 ID=1(CGamePro_Enter::EnterScene)
|
|