Exemple #1
0
 public static void WriteModableItemData(BinaryWriter writer, ItemData.ModableItemData data)
 {
     writer.Write(data.TdbId1);
     writer.Write(data.Unknown2);
     writer.Write(data.Unknown3);
     WriteItemModData(writer, data.RootNode);
 }
Exemple #2
0
        public static ItemData.ModableItemData ReadModableItemData(BinaryReader reader)
        {
            var result = new ItemData.ModableItemData();

            result.TdbId1   = reader.ReadTweakDbId();
            result.Unknown2 = reader.ReadUInt32();
            result.Unknown3 = reader.ReadSingle();
            result.RootNode = ReadKind2DataNode(reader);

            return(result);
        }
        private void FillPartsList(ItemData.ModableItemData mid)
        {
            var parts = new List <ItemData.ItemModData>();

            //parts.Add(mid.RootNode);
            foreach (var part in mid.RootNode.Children)
            {
                parts.Add(part);
            }

            partListBox.Items.Clear();
            partListBox.Items.Add("<Item>");
            partListBox.Items.AddRange(parts.ToArray());
        }