Beispiel #1
0
    private ResourceFilesData()
    {
        ArmorData        armorData;
        WeaponsData      weaponsData;
        MiscData         miscData;
        ItemStatCostData itemStatCostData;

        using (Stream s = GetResource("ItemStatCost.txt"))
        {
            itemStatCostData = ItemStatCostData.Read(s);
        }
        using (Stream s = GetResource("Armor.txt"))
        {
            armorData = ArmorData.Read(s);
        }
        using (Stream s = GetResource("Weapons.txt"))
        {
            weaponsData = WeaponsData.Read(s);
        }
        using (Stream s = GetResource("Misc.txt"))
        {
            miscData = MiscData.Read(s);
        }

        MetaData = new MetaData(itemStatCostData, new ItemsData(armorData, weaponsData, miscData));
    }
Beispiel #2
0
    public static ItemStatCostData Read(Stream data)
    {
        var itemStatCost = new ItemStatCostData();

        itemStatCost.ReadData(data);
        return(itemStatCost);
    }
Beispiel #3
0
 public MetaData(ItemStatCostData itemsStatCost, ItemsData itemsData)
 {
     ItemStatCostData = itemsStatCost;
     ItemsData        = itemsData;
 }