Ejemplo n.º 1
0
        public void WriteToFile(XBinWriter writer)
        {
            writer.PushObjectPtr("DecalGroupPatternPtr");
            writer.PushObjectPtr("DecalPatternPtr");
            writer.PushObjectPtr("GfxGlassBreakTypePtr");
            writer.PushObjectPtr("GfxGlassMatTemplatePtr");
            writer.PushObjectPtr("MultiDecalPatternPtr");

            // Write DecalGroupPattern table
            writer.FixUpObjectPtr("DecalGroupPatternPtr");
            writer.Write(0xC);
            DecalGroupPattern.WriteToFile(writer);

            // Write DecalPattern table
            writer.FixUpObjectPtr("DecalPatternPtr");
            writer.Write(0x10);
            DecalPattern.WriteToFile(writer);

            // Write GfxGlassBreakTypePtr table
            writer.FixUpObjectPtr("GfxGlassBreakTypePtr");
            writer.Write(0xC);
            GfxGlassBreakType.WriteToFile(writer);

            // Write GfxGlassMatTemplate table
            writer.FixUpObjectPtr("GfxGlassMatTemplatePtr");
            writer.Write(0xC);
            GfxGlassMatTemplate.WriteToFile(writer);

            // Write MultiDecalPattern table
            writer.FixUpObjectPtr("MultiDecalPatternPtr");
            writer.Write(0xC);
            MultiDecalPattern.WriteToFile(writer);
        }
Ejemplo n.º 2
0
        public void WriteToFile(XBinWriter writer)
        {
            writer.PushObjectPtr("GuiInputMapPtr");
            writer.PushObjectPtr("FlashInputMapPtr");
            writer.PushObjectPtr("GuiFontMapPtr");
            writer.PushObjectPtr("GuiSoundMapPtr");
            writer.PushObjectPtr("GuiLanguageMapPtr");

            // Write GuiInputMap table
            writer.FixUpObjectPtr("GuiInputMapPtr");
            writer.Write(0xC);
            GuiInputMap.WriteToFile(writer);

            // Write FlashInputMap table
            writer.FixUpObjectPtr("FlashInputMapPtr");
            writer.Write(0xC);
            FlashInputMap.WriteToFile(writer);

            // Write GuiFontMap table
            writer.FixUpObjectPtr("GuiFontMapPtr");
            writer.Write(0xC);
            GuiFontMap.WriteToFile(writer);

            // Write GuiSoundMap table
            writer.FixUpObjectPtr("GuiSoundMapPtr");
            writer.Write(0xC);
            GuiSoundMap.WriteToFile(writer);

            // Write GuiLanguageMap table
            writer.FixUpObjectPtr("GuiLanguageMapPtr");
            writer.Write(0xC);
            GuiLanguageMap.WriteToFile(writer);
        }
Ejemplo n.º 3
0
        public void WriteToFile(XBinWriter writer)
        {
            writer.PushObjectPtr("Command_VehicleOffset");
            writer.Write(Instances.Length); // Two because its an array
            writer.Write(Instances.Length); // Two because its an array
            writer.Write((uint)SlotType);
            writer.PushStringPtr(SDSName);
            writer.PushStringPtr(QuotaID);
            writer.Write(GUID);
            writer.Write(SlotID);

            writer.FixUpObjectPtr("Command_VehicleOffset");
            foreach (var Instance in Instances)
            {
                Instance.WriteToFile(writer);
            }
        }