public bool forceSet(string mapName, int eventId, string code, bool value) { string key = GameSelfSwitches.key(mapName, eventId, GameSelfSwitches.code(code)); this[key] = value; return(value); }
/// <summary> /// 123 独立开关操作 /// A /// true /// </summary> /// <returns></returns> public bool command_setSelfSwitch() { Debug.Log(string.Format("command_setSelfSwitch")); string code = this.currentParam[0].Trim().ToUpper(); bool value = bool.Parse(this.currentParam[1]); string key = GameSelfSwitches.key(this.mapName, this.eventId, GameSelfSwitches.code(code)); GameTemp.gameSelfSwitches[key] = value; GameTemp.gameMap.needRefresh = true; return(true); }