public void Write(NodeWriter writer, NodeEntry node)
        {
            var data = (DSDynamicConnections)node.Value;

            writer.WritePackedInt(data.Entries.Count);
            foreach (var entry in data.Entries)
            {
                writer.Write(entry.Unknown1);
            }

            foreach (var entry in data.Entries)
            {
                writer.WritePackedString(entry.Unknown2);

                writer.WritePackedInt(entry.Unknown3.Count);
                foreach (var val in entry.Unknown3)
                {
                    writer.Write(val);
                }

                writer.WritePackedInt(entry.Unknown4.Count);
                foreach (var val in entry.Unknown4)
                {
                    writer.Write(val);
                }

                writer.Write(entry.Unknown5);
                writer.WritePackedString(entry.Unknown6);
            }
        }
예제 #2
0
        public void Write(NodeWriter writer, NodeEntry node)
        {
            var data = (DirectorSystem)node.Value;

            writer.Write(data.Unknown1);
            writer.WritePackedString(data.Unknown2);
            writer.Write(data.Unknown3);
            writer.WritePackedString(data.Unknown4);
            writer.Write(data.Unknown5);
        }
예제 #3
0
        public void Write(NodeWriter writer, NodeEntry node)
        {
            var data = (MusicSystem)node.Value;

            writer.WritePackedString(data.Unknown1);
            if (data.Unknown1 != "None")
            {
                writer.WritePackedString(data.Unknown2);
                writer.Write(data.Unknown3);
                writer.WritePackedString(data.Unknown4);
                writer.WritePackedString(data.Unknown5);
                writer.Write(data.Unknown6);
                writer.WritePackedString(data.Unknown7);
                writer.Write(data.Unknown8);
            }
        }
        public void Write(NodeWriter writer, NodeEntry node)
        {
            var data = (CharacterCustomizationAppearances)node.Value;

            writer.Write(data.DataExists);
            writer.Write(data.Unknown1);
            if (data.DataExists)
            {
                writer.Write(data.UnknownFirstBytes);

                WriteSection(writer, data.FirstSection);
                WriteSection(writer, data.SecondSection);
                WriteSection(writer, data.ThirdSection);

                writer.Write(data.StringTriples.Count);
                foreach (var st in data.StringTriples)
                {
                    WriteStringTriple(writer, st);
                }

                // Only when SaveVersion > 171
                writer.WritePackedInt(data.Strings.Count);
                foreach (var s in data.Strings)
                {
                    writer.WritePackedString(s);
                }
            }
        }
예제 #5
0
        public void Write(NodeWriter writer, NodeEntry node)
        {
            var data = (ItemDropStorage)node.Value;

            writer.WritePackedString(data.UnknownString);
            writer.Write(data.HeaderBytes);
            InventoryParser.WriteSubInventory(writer, data.Inventory);
        }
예제 #6
0
        public void Write(NodeWriter writer, NodeEntry node)
        {
            var data = (QuestDebugLogManager)node.Value;

            var text = string.Join("\n", data.Lines);

            writer.WritePackedString(text);
        }
예제 #7
0
        public void Write(NodeWriter writer, NodeEntry node)
        {
            var data = (GameSessionConfig)node.Value;

            writer.Write(data.Hash1);
            writer.Write(data.Hash2);
            writer.WritePackedString(data.TextValue);
            writer.Write(data.Hash3);
            writer.Write(data.TrailingBytes);
        }
        public void Write(NodeWriter writer, NodeEntry node)
        {
            var data = (DynamicEntityIDSystem)node.Value;

            writer.Write(data.Unknown1);
            writer.Write(data.Unk_NextEntityHash);

            writer.Write(data.Unknown4.Count);
            foreach (var pair in data.Unknown4)
            {
                writer.WritePackedString(pair.Key);
                writer.Write(pair.Value);
            }

            writer.Write(data.Unk_NextListId);
        }
        public void Write(NodeWriter writer, NodeEntry node)
        {
            var data = (ContainerManagerNPCLootBagsVer2)node.Value;

            writer.WritePackedInt(data.Entries.Count);
            foreach (var entry in data.Entries)
            {
                writer.WritePackedString(entry.Unk_BaseClassName);
                writer.Write(entry.Unknown2);
                writer.Write((byte)entry.Items.Count);
                foreach (var item in entry.Items)
                {
                    writer.Write(item.Unk1_ItemTbdId);
                    writer.Write(item.Unk1_Seed);
                    writer.Write(item.Unk2_Counter);
                    writer.Write(item.Unk2_ItemTbdId);
                    writer.Write(item.Unk2_Seed);
                }
                writer.Write(entry.EntityId);
            }
        }
예제 #10
0
        public void Write(NodeWriter writer, NodeEntry node)
        {
            var data = (RadioSystem)node.Value;

            writer.WritePackedString(data.Unknown);
        }