/// <summary> /// 加载战场配置 /// </summary> public void LoadDefs() { Hashtable mapDef = Defs.GetMap(this.mapID); this.frameRate = mapDef.GetInt("frame_rate"); this.keyframeStep = mapDef.GetInt("keyframe_step"); this.snapshotStep = mapDef.GetInt("snapshot_step"); this.battleTime = mapDef.GetInt("timeout"); this.gladiatorTimeout = mapDef.GetInt("gladiator_timeout"); float[] arr = mapDef.GetFloatArray("gladiator_pos"); this.gladiatorPos = new FVec2(Convert.ToSingle(arr[0]), Convert.ToSingle(arr[1])); this.gladiatorRadius = mapDef.GetInt("gladiator_radius"); }