コード例 #1
0
 public ItemTypeParserTest()
 {
     itemRarityParser = Substitute.For<IItemRarityParser>();
     wandDefinitions = new[]
     {
         new ItemDefinition
         {
             ItemType = ItemType.Wand,
             ItemSubTypes = new[]
             {
                 new ItemSubType {Name = "Driftwood Wand"},
                 new ItemSubType {Name = "Goat's Horn"},
                 new ItemSubType {Name = "Carved Wand"},
                 new ItemSubType {Name = "Quartz Wand"},
                 new ItemSubType {Name = "Spiraled Wand"},
                 new ItemSubType {Name = "Sage Wand"},
                 new ItemSubType {Name = "Faun's Horn"},
                 new ItemSubType {Name = "Engraved Wand"},
                 new ItemSubType {Name = "Crystal Wand"},
                 new ItemSubType {Name = "Serpent Wand"},
                 new ItemSubType {Name = "Omen Wand"},
                 new ItemSubType {Name = "Demon's Horn"},
                 new ItemSubType {Name = "Imbued Wand"},
                 new ItemSubType {Name = "Opal Wand"},
                 new ItemSubType {Name = "Tornado Wand"},
                 new ItemSubType {Name = "Prophecy Wand"}
             }
         }
     };
 }
コード例 #2
0
ファイル: ItemParser.cs プロジェクト: jand187/PoeHelper
 public ItemParser()
 {
     itemRarityParser = new ItemRarityParser();
     itemTypeParser = new ItemTypeParser(new ItemDefinition[0], itemRarityParser);
     parsers = new IParser<Item, object>[]
     {
     };
 }
コード例 #3
0
ファイル: ItemTypeParser.cs プロジェクト: jand187/PoeHelper
 public ItemTypeParser(IEnumerable<ItemDefinition> itemDefinitions, IItemRarityParser itemRarityParser)
 {
     this.itemDefinitions = itemDefinitions;
     this.itemRarityParser = itemRarityParser;
 }