Пример #1
0
 public void Write(BinaryWriterEx bw)
 {
     bw.WriteStringFixed(Name);
     bw.Write(GameEvent);
     bw.Write(numEntries);
     bw.Write(ptrHeaders);
 }
Пример #2
0
        public void Write(BinaryWriterEx bw)
        {
            bw.Write(ptrMeshInfo);
            bw.Write(ptrSkybox);
            bw.Write(ptrTexArray);

            bw.Write(numInstances);
            bw.Write(ptrInstances);
            bw.Write(numModels);
            bw.Write(ptrModelsPtr);

            bw.Write(unkptr3);
            bw.Write(unkptr4);
            bw.Write(ptrPickupHeadersPtrArray);
            bw.Write(unkptr5);

            bw.Write(null1);
            bw.Write(null2);

            bw.Write(cntWater);
            bw.Write(ptrWater);
            bw.Write(ptrNamedTex);
            bw.Write(ptrNamedTexArray);
            bw.Write(ptrRestartMain);

            for (int i = 0; i < someData.Length; i++)
            {
                someData[i].Write(bw);
            }

            for (int i = 0; i < startGrid.Length; i++)
            {
                startGrid[i].Write(bw);
            }

            bw.Write(somePtr4);
            bw.Write(somePtr5);
            bw.Write(ptrLowTexArray);
            backColor.Write(bw);
            bw.Write(bgMode);

            bw.Write(ptrBuildStart);
            bw.Write(ptrBuildEnd);
            bw.Write(ptrBuildType);

            bw.Write(skip);

            bw.Write(cntTrialData);
            bw.Write(ptrTrialData);
            bw.Write(cntu2);
            bw.Write(ptru2);
            bw.Write(cntSpawnPts);
            bw.Write(ptrSpawnPts);
            bw.Write(cntRestartPts);
            bw.Write(ptrRestartPts);

            bw.Write(skip2);

            for (int i = 0; i < bgColor.Length; i++)
            {
                bgColor[i].Write(bw);
            }

            bw.Write(skip2_unkPtr);

            bw.Write(cntVcolAnim);
            bw.Write(ptrVcolAnim);

            bw.Write(skip23);


            bw.Write(ptrAiNav);

            bw.Write(skip3);

            bw.Seek((int)ptrBuildStart + 4, SeekOrigin.Begin);
            bw.WriteStringFixed(DateTime.Now.ToString());

            bw.Seek((int)ptrBuildEnd + 4, SeekOrigin.Begin);
            bw.WriteStringFixed(DateTime.Now.ToString());

            bw.Seek((int)ptrBuildType + 4, SeekOrigin.Begin);
            bw.WriteStringFixed(ptrBuildTypeStr);
        }