public void SetSettingScreenPriority(uint priority) { SettingDataBase data = GameTableManager.Instance.GetTableItem <SettingDataBase>(priority); if (data != null) { //草地扰动 bool grassIsOpen = (data.GrassMoveGrade != 0) ? true : false; IMapSystem mapSys = ClientGlobal.Instance().GetMapSystem(); mapSys.EnableGrassForce(grassIsOpen); Engine.IRenderSystem rs = Engine.RareEngine.Instance().GetRenderSystem(); if (rs != null) { //实时阴影 rs.SetShadowLevel((Engine.ShadowLevel)data.RealTime_Shadow); //特效等级 rs.effectLevel = (int)data.ParticleGrade; } //同屏人数 Client.IEntitySystem es = Client.ClientGlobal.Instance().GetEntitySystem(); int value = (int)data.PlayerNum; if (es != null) { if (value > MAX_PLAYER || value < MIN_PLAYER) { value = MIN_PLAYER; } es.MaxPlayer = value; } } }
public void SetRenderShadow() { int nShadowLevel = ClientGlobal.Instance().gameOption.GetInt("Render", "shadow", 0); Engine.IRenderSystem rs = Engine.RareEngine.Instance().GetRenderSystem(); if (rs != null) { rs.SetShadowLevel((Engine.ShadowLevel)nShadowLevel); } }