Ejemplo n.º 1
0
        protected override void WriteData(DataBuffer buf, FileFormat fmt)
        {
            SaveFileGTA3VC.WriteBlockHeader(buf, "GNG", SizeOfType <GangData>() - SaveFileGTA3VC.BlockHeaderSize);
            buf.Write(Gangs, MaxNumGangs);

            Debug.Assert(buf.Offset == SizeOfType <GangData>());
        }
Ejemplo n.º 2
0
        protected override void WriteData(DataBuffer buf, FileFormat fmt)
        {
            int size = SizeOfObject(this, fmt);

            SaveFileGTA3VC.WriteBlockHeader(buf, "SCR", size - SaveFileGTA3VC.BlockHeaderSize);

            buf.Write(ScriptSpace.Count);
            buf.Write(ScriptSpace);
            buf.Align4();
            buf.Write(ScriptDataSize);
            buf.Write(OnAMissionFlag);
            buf.Write(Contacts, NumContacts);
            buf.Write(Collectives, NumCollectives);
            buf.Write(NextFreeCollectiveIndex);
            buf.Write(BuildingSwaps, NumBuildingSwaps);
            buf.Write(InvisibilitySettings, NumInvisibilitySettings);
            buf.Write(UsingAMultiScriptFile);
            buf.Write((byte)0);
            buf.Write((short)0);
            buf.Write(MainScriptSize);
            buf.Write(LargestMissionScriptSize);
            buf.Write(NumberOfMissionScripts);
            buf.Write((short)0);
            buf.Write(Threads.Count);
            buf.Write(Threads, fmt);

            Debug.Assert(buf.Offset == size);
        }
Ejemplo n.º 3
0
        protected override void WriteData(DataBuffer buf, FileFormat fmt)
        {
            SaveFileGTA3VC.WriteBlockHeader(buf, "RDR", SizeOfType <RadarData>() - SaveFileGTA3VC.BlockHeaderSize);
            buf.Write(RadarBlips, MaxNumRadarBlips);

            Debug.Assert(buf.Offset == SizeOfType <RadarData>());
        }
Ejemplo n.º 4
0
        protected override void WriteData(DataBuffer buf, FileFormat fmt)
        {
            int size = SizeOfObject(this, fmt);

            SaveFileGTA3VC.WriteBlockHeader(buf, "SCR", size - SaveFileGTA3VC.BlockHeaderSize);

            buf.Write(Globals.Count * sizeof(int));
            buf.Write(Globals);
            buf.Align4();
            buf.Write(ScriptDataSize);
            buf.Write(OnAMissionFlag);
            buf.Write(LastMissionPassedTime);
            buf.Write(BuildingSwaps, NumBuildingSwaps);
            buf.Write(InvisibilitySettings, NumInvisibilitySettings);
            buf.Write(UsingAMultiScriptFile);
            buf.Write(PlayerHasMetDebbieHarry);
            buf.Write((short)0);
            buf.Write(MainScriptSize);
            buf.Write(LargestMissionScriptSize);
            buf.Write(NumberOfMissionScripts);
            buf.Write((short)0);
            buf.Write(Threads.Count);
            buf.Write(Threads, fmt);

            Debug.Assert(buf.Offset == size);
        }
Ejemplo n.º 5
0
        protected override void WriteData(DataBuffer buf, FileFormat fmt)
        {
            SaveFileGTA3VC.WriteBlockHeader(buf, "PTP", SizeOfType <PedTypeData>() - SaveFileGTA3VC.BlockHeaderSize);

            buf.Write(PedTypes, NumPedTypes);

            Debug.Assert(buf.Offset == SizeOfType <PedTypeData>());
        }
Ejemplo n.º 6
0
        protected override void WriteData(DataBuffer buf, FileFormat fmt)
        {
            SaveFileGTA3VC.WriteBlockHeader(buf, "AUD", SizeOfObject(this) - SaveFileGTA3VC.BlockHeaderSize);

            buf.Write(AudioScriptObjects.Count);
            buf.Write(AudioScriptObjects);

            Debug.Assert(buf.Offset == SizeOfObject(this));
        }
Ejemplo n.º 7
0
        protected override void WriteData(DataBuffer buf, FileFormat fmt)
        {
            SaveFileGTA3VC.WriteBlockHeader(buf, "CGN", SizeOfType <CarGeneratorData>() - SaveFileGTA3VC.BlockHeaderSize);

            buf.Write(CarGeneratorDataSize);
            buf.Write(NumberOfCarGenerators);
            buf.Write(NumberOfEnabledCarGenerators);
            buf.Write(ProcessCounter);
            buf.Write(GenerateEvenIfPlayerIsCloseCounter);
            buf.Write((short)0);
            buf.Write(CarGeneratorArraySize);
            buf.Write(CarGenerators, MaxNumCarGenerators);

            Debug.Assert(buf.Offset == SizeOfType <CarGeneratorData>());
        }
Ejemplo n.º 8
0
        protected override void WriteData(DataBuffer buf, FileFormat fmt)
        {
            SaveFileGTA3VC.WriteBlockHeader(buf, "RST", SizeOfType <RestartData>() - SaveFileGTA3VC.BlockHeaderSize);

            buf.Write(WastedRestartPoints, MaxNumWastedRestarts);
            buf.Write(BustedRestartPoints, MaxNumBustedRestarts);
            buf.Write(NumberOfWastedRestartPoints);
            buf.Write(NumberOfBustedRestartPoints);
            buf.Write(OverrideNextRestart);
            buf.Write(new byte[3]);
            buf.Write(OverrideRestartPoint);
            buf.Write(FadeInAfteNextDeath);
            buf.Write(FadeInAfteNextArrest);
            buf.Write((byte)OverrideHospitalLevel);
            buf.Write((byte)OverridePoliceStationLevel);

            Debug.Assert(buf.Offset == SizeOfType <RestartData>());
        }
Ejemplo n.º 9
0
        protected override void WriteData(DataBuffer buf, FileFormat fmt)
        {
            SaveFileGTA3VC.WriteBlockHeader(buf, "ZNS", SizeOfType <ZoneData>() - SaveFileGTA3VC.BlockHeaderSize);

            buf.Write(CurrentZoneIndex);
            buf.Write((int)CurrentLevel);
            buf.Write(FindIndex);
            buf.Write((short)0);
            buf.Write(Zones, MaxNumZones);
            buf.Write(ZoneInfo, MaxNumZoneInfos);
            buf.Write(NumberOfZones);
            buf.Write(NumberOfZoneInfos);
            buf.Write(MapZones, MaxNumMapZones);
            buf.Write(AudioZones, MaxNumAudioZones);
            buf.Write(NumberOfMapZones);
            buf.Write(NumberOfAudioZones);

            Debug.Assert(buf.Offset == SizeOfType <ZoneData>());
        }