private bool LoadArmorProtos(string ArmorPath, string HelmetPath, MSGParser FOObj) { FOCommon.Parsers.SimpleItemProtoParser ItemParser = new FOCommon.Parsers.SimpleItemProtoParser(new ArmorProto()); bool DuplicatesFound = false; ArmorProtos = ItemParser.LoadProtosFromFile(ArmorPath, FOObj, out DuplicatesFound).Cast <ArmorProto>().ToList(); ItemParser = new FOCommon.Parsers.SimpleItemProtoParser(new ArmorProto()); HelmetProtos = ItemParser.LoadProtosFromFile(HelmetPath, FOObj, out DuplicatesFound).Cast <ArmorProto>().ToList(); return(true); }
private bool LoadArmorProtos(string ArmorPath, string HelmetPath, MSGParser FOObj) { FOCommon.Parsers.SimpleItemProtoParser ItemParser = new FOCommon.Parsers.SimpleItemProtoParser(new ArmorProto()); bool DuplicatesFound=false; ArmorProtos = ItemParser.LoadProtosFromFile(ArmorPath, FOObj, out DuplicatesFound).Cast<ArmorProto>().ToList(); ItemParser = new FOCommon.Parsers.SimpleItemProtoParser(new ArmorProto()); HelmetProtos = ItemParser.LoadProtosFromFile(HelmetPath, FOObj, out DuplicatesFound).Cast<ArmorProto>().ToList(); return true; }