Ejemplo n.º 1
0
        public override void Write(BinaryWriter file)
        {
            base.Write(file);

            byte[] buffer;
            using (var ms = new MemoryStream())
                using (var bw = new BinaryWriter(ms))
                {
                    bw.WriteBit6(Data.elements.Count);
                    foreach (var cvar in Data.elements)
                    {
                        var ClassName = new CName(cr2w, null, "")
                        {
                            Value = cvar.REDType
                        };
                        ClassName.Write(bw);

                        cvar.Write(bw);
                    }
                    buffer = ms.ToArray();
                }

            file.Write(buffer.Length + 4);
            file.Write(buffer);
        }
Ejemplo n.º 2
0
        public override void Write(BinaryWriter file)
        {
            base.Write(file);

            buffername.Write(file);
            count.Write(file);
            unk.Write(file);
            buffer.Write(file);
        }
Ejemplo n.º 3
0
 public override void Write(BinaryWriter file)
 {
     lods.Write(file);
     emitters.Write(file);
     autoHideDistance.Write(file);
     autoHideRange.Write(file);
     previewBackgroundColor.Write(file);
     previewShowGrid.Write(file);
     visibleThroughWalls.Write(file);
     prewarmingTime.Write(file);
     renderingPlane.Write(file);
 }
 public override void Write(BinaryWriter file)
 {
     diffuseTexture.Write(file);
     normalTexture.Write(file);
     specularColor.Write(file);
     specularScale.Write(file);
     specularBase.Write(file);
     specularity.Write(file);
     additiveNormals.Write(file);
     diffuseRandomColor0.Write(file);
     diffuseRandomColor1.Write(file);
     subUVType.Write(file);
 }
Ejemplo n.º 5
0
            public override void Write(BinaryWriter file)
            {
                byte pieceCount = (byte)pieces.Count;

                if (pieceCount > 4)
                {
                    Debug.Print("Cannot write more than 4 pieces (" + pieceCount + ") for curve info, limiting");
                    pieceCount = 4;
                }

                someName.Write(file);
                file.Write(pieceCount);
                someByte.Write(file);

                for (var i = 0; i < pieceCount; i++)
                {
                    pieces[i].Write(file);
                }
            }
Ejemplo n.º 6
0
        public override void Write(BinaryWriter file)
        {
            base.Write(file);

            if (buffername != null)
            {
                buffername.Write(file);
            }
            if (count != null)
            {
                count.Write(file);
            }
            if (buffername != null)
            {
                unk.Write(file);
            }
            if (buffer != null)
            {
                buffer.Write(file);
            }
        }
Ejemplo n.º 7
0
 public override void Write(BinaryWriter file)
 {
     material.Write(file);
     farZ.Write(file);
     nearZ.Write(file);
     ssize.Write(file);
     depthFadePower.Write(file);
     normalFadeBias.Write(file);
     normalFadeScale.Write(file);
     doubleSided.Write(file);
     projectionMode.Write(file);
     decalLifetime.Write(file);
     decalFadeTime.Write(file);
     decalFadeInTime.Write(file);
     projectOnlyOnStatic.Write(file);
     startScale.Write(file);
     scaleTime.Write(file);
     useVerticalProjection.Write(file);
     spawnPriority.Write(file);
     autoHideDistance.Write(file);
     spawnFrequency.Write(file);
 }
Ejemplo n.º 8
0
 public override void Write(BinaryWriter file)
 {
     unk1.Write(file);
     unk2.Write(file);
     name.Write(file);
 }
Ejemplo n.º 9
0
 public override void Write(BinaryWriter file)
 {
     handlename.Write(file);
     handle.Write(file);
 }