public bool GetWeekObject(int Week_Num, out WeekObject weekObject) { weekObject = null; if (!_mWeekObjectDic.TryGetValue(Week_Num, out weekObject)) { return(false); } return(true); }
public override bool Load(SecurityElement element) { if (element.Children != null) { foreach (SecurityElement childrenElement in element.Children) { // server WeekObject weekObject = new WeekObject(); weekObject.Week_Num = StrParser.ParseDecInt(childrenElement.Attribute("Week_Num"), -1); weekObject.Difficulty_Coefficient = float.Parse(childrenElement.Attribute("Difficulty_Coefficient")); _mWeekObjectDic[weekObject.Week_Num] = weekObject; } return(true); } else { return(false); } return(true); }