public static TouchGirlObject Load (SecurityElement element) { TouchGirlObject touchGirlObject = new TouchGirlObject(); touchGirlObject.ID = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("TouchID"),""),-1); touchGirlObject.GirlID = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("GirlID"),""),-1); touchGirlObject.TouchType = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("TouchType"),""),-1); touchGirlObject.TouchWord = StrParser.ParseStr(element.Attribute ("TouchWord"), ""); touchGirlObject.TouchSound = StrParser.ParseStr(element.Attribute ("TouchSound"), ""); return touchGirlObject; }
public override bool Load (SecurityElement element) { if(element.Tag != "Items") return false; if(element.Children !=null) { foreach(SecurityElement childrenElement in element.Children) { TouchGirlObject touchGirlObject = TouchGirlObject.Load(childrenElement); if (!_touchGirlObjectDict.ContainsKey(touchGirlObject.ID)) _touchGirlObjectDict[touchGirlObject.ID] = touchGirlObject; } } return true; }