Esempio n. 1
0
 public override void Write(GrnBinaryWriter writer)
 {
     writer.Write((uint)this.NodeType);
     writer.Write(0);
     writer.Write(this.Offset);
     writer.Write(0L);
 }
Esempio n. 2
0
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.ParentIndex);
     writer.Write(this.Position);
     writer.Write(this.Rotation);
     writer.WriteMatrix3x3(this.Scale);
 }
Esempio n. 3
0
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.BoneIndex);
     writer.Write(this.Unknown);
     writer.Write(this.OBBMin);
     writer.Write(this.OBBMax);
 }
 public override void Write(GrnBinaryWriter writer)
 {
     writer.Write((uint)this.NodeType);
     writer.Write(0);
     writer.Write(this.Offset);
     writer.Write(0L);
 }
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.Unknown);
     for (int i = 0; i < this.TextureCoordinates.Count; ++i)
     {
         writer.Write(this.TextureCoordinates[i]);
     }
 }
Esempio n. 6
0
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.Unknown);
     for (int i = 0; i < this.TextureCoordinates.Count; ++i)
     {
         writer.Write(this.TextureCoordinates[i]);
     }
 }
        public override void WriteData(GrnBinaryWriter writer)
        {
            writer.Write(this.FormMeshIndex);
            writer.Write(this.MaterialIndex);

            for (int i = 0; i < this.ChildNodes.Count; i++)
            {
                this.ChildNodes[i].WriteData(writer);
            }
        }
        public override void WriteData(GrnBinaryWriter writer)
        {
            writer.Write(this.FormMeshIndex);
            writer.Write(this.MaterialIndex);

            for (int i = 0; i < this.ChildNodes.Count; i++)
            {
                this.ChildNodes[i].WriteData(writer);
            }
        }
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.Count);
     foreach (KeyValuePair <int, List <int> > texInd in this.TextureIndices)
     {
         writer.Write(texInd.Key);
         writer.Write(texInd.Value[0]);
         writer.Write(texInd.Value[1]);
         writer.Write(texInd.Value[2]);
     }
 }
Esempio n. 10
0
        public virtual void Write(GrnBinaryWriter writer)
        {
            writer.Write((uint)this.NodeType);
            writer.Write(this.Offset);
            writer.Write(this.NumTotalChildNodes);

            foreach (GrnNode child in this.ChildNodes)
            {
                child.Write(writer);
            }
        }
 public override void WriteData(GrnBinaryWriter writer)
 {
     for (int i = 0; i < this.Faces.Count; ++i)
     {
         for (int j = 0; j < this.Faces[i].Indices.Count; ++j)
         {
             writer.Write((Int32)this.Faces[i].Indices[j]);
         }
         for (int j = 0; j < this.Faces[i].NormalIndices.Count; ++j)
         {
             writer.Write(this.Faces[i].NormalIndices[j]);
         }
     }
 }
 public override void WriteData(GrnBinaryWriter writer)
 {
     for (int i = 0; i < this.TransformChannelIndices.Count; ++i)
     {
         writer.Write(this.TransformChannelIndices[i]);
     }
 }
 public override void WriteData(GrnBinaryWriter writer)
 {
     for (int i = 0; i < this.Normals.Count; ++i)
     {
         writer.Write(this.Normals[i]);
     }
 }
 public override void WriteData(GrnBinaryWriter writer)
 {
     for (int i = 0; i < this.Vertices.Count; ++i)
     {
         writer.Write(this.Vertices[i]);
     }
 }
 public override void WriteData(GrnBinaryWriter writer)
 {
     for (int i = 0; i < this.TransformChannelIndices.Count; ++i)
     {
         writer.Write(this.TransformChannelIndices[i]);
     }
 }
Esempio n. 16
0
        public override void WriteData(GrnBinaryWriter writer)
        {
            writer.Write(this.NumTotalChildNodes);
            if (this.NodeType == GrnNodeType.NullFrameDirectory)
            {
                writer.Write(1240936);
                writer.Write(1240936);
                writer.Write(1241292);
            }
            else
            {
                writer.Write(0);
                writer.Write(this.ParentNode.FirstChild.Offset);
                writer.Write(0);
            }

            foreach (GrnNode child in this.ChildNodes)
            {
                child.Write(writer);
            }

            foreach (GrnNode child in this.ChildNodes)
            {
                child.WriteData(writer);
            }
        }
Esempio n. 17
0
        public override void WriteData(GrnBinaryWriter writer)
        {
            writer.Write(this.NumTotalChildNodes);
            if (this.NodeType == GrnNodeType.NullFrameDirectory)
            {
                writer.Write(1240936);
                writer.Write(1240936);
                writer.Write(1241292);
            }
            else
            {
                writer.Write(0);
                writer.Write(this.ParentNode.FirstChild.Offset);
                writer.Write(0);
            }

            foreach (GrnNode child in this.ChildNodes)
            {
                child.Write(writer);
            }

            foreach (GrnNode child in this.ChildNodes)
            {
                child.WriteData(writer);
            }
        }
Esempio n. 18
0
        public virtual void WriteData(GrnBinaryWriter writer)
        {
            writer.Write(this.Data);

            foreach (GrnNode child in this.ChildNodes)
            {
                child.WriteData(writer);
            }
        }
        public override void WriteData(GrnBinaryWriter writer)
        {
            writer.Write(this.StringTableIndex);

            for (int i = 0; i < this.ChildNodes.Count; i++)
            {
                this.ChildNodes[i].WriteData(writer);
            }
        }
        public override void WriteData(GrnBinaryWriter writer)
        {
            writer.Write(this.StringTableIndex);

            for (int i = 0; i < this.ChildNodes.Count; i++)
            {
                this.ChildNodes[i].WriteData(writer);
            }
        }
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.Count);
     foreach (KeyValuePair<int, List<int>> texInd in this.TextureIndices)
     {
         writer.Write(texInd.Key);
         writer.Write(texInd.Value[0]);
         writer.Write(texInd.Value[1]);
         writer.Write(texInd.Value[2]);
     }
 }
Esempio n. 22
0
 public virtual void CreateFolderFile(string folder)
 {
     if (this.Data.Length > 0)
     {
         string fileName = System.IO.Path.Combine(folder, "data.bin");
         using (GrnBinaryWriter writer = new GrnBinaryWriter(System.IO.File.Create(fileName)))
         {
             writer.Write(this.Data);
         }
     }
 }
Esempio n. 23
0
        public override void WriteData(GrnBinaryWriter writer)
        {
            writer.Write(this.Strings.Count);

            int strLength = 0;

            foreach (string s in this.Strings)
            {
                strLength += s.Length + 1;
            }
            writer.Write(strLength);

            for (int i = 0; i < this.Strings.Count; ++i)
            {
                writer.Write(this.Strings[i]);
            }

            byte[] padding = new byte[(-strLength) & 3];
            writer.Write(padding);
        }
Esempio n. 24
0
        public override void Write(GrnBinaryWriter writer)
        {
            this.UpdateNumTotalChildNodes();
            this.UpdateOffset(0);

            writer.Write((uint)this.NodeType);
            writer.Write(this.NumTotalChildNodes);
            writer.Write(new byte[8]);
            writer.Write(this.FileLength);
            writer.Write(new byte[12]);

            foreach (GrnNode child in this.ChildNodes)
            {
                child.Write(writer);
            }

            foreach (GrnNode child in this.ChildNodes)
            {
                child.WriteData(writer);
            }
        }
Esempio n. 25
0
        public override void Write(GrnBinaryWriter writer)
        {
            this.UpdateNumTotalChildNodes();
            this.UpdateOffset(0);

            writer.Write((uint)this.NodeType);
            writer.Write(this.NumTotalChildNodes);
            writer.Write(new byte[8]);
            writer.Write(this.FileLength);
            writer.Write(new byte[12]);

            foreach (GrnNode child in this.ChildNodes)
            {
                child.Write(writer);
            }

            foreach (GrnNode child in this.ChildNodes)
            {
                child.WriteData(writer);
            }
        }
        public override void WriteData(GrnBinaryWriter writer)
        {
            writer.Write(this.Strings.Count);

            int strLength = 0;
            foreach (string s in this.Strings)
            {
                strLength += s.Length + 1;
            }
            writer.Write(strLength);

            for (int i = 0; i < this.Strings.Count; ++i)
            {
                writer.Write(this.Strings[i]);
            }

            byte[] padding = new byte[(-strLength) & 3];
            writer.Write(padding);
        }
 public override void WriteData(GrnBinaryWriter writer)
 {
     this.CalculateHighestStats();
     writer.Write(this.VertexWeights.Count);
     writer.Write(this.HighestBoneIndex);
     writer.Write(this.HighestVertexWeightCount);
     for (int i = 0; i < this.VertexWeights.Count; ++i)
     {
         writer.Write(this.VertexWeights[i].BoneIndices.Count);
         for (int j = 0; j < this.VertexWeights[i].BoneIndices.Count; ++j)
         {
             writer.Write(this.VertexWeights[i].BoneIndices[j]);
             writer.Write(this.VertexWeights[i].Weights[j]);
         }
     }
 }
        public override void WriteData(GrnBinaryWriter writer)
        {
            writer.Write(this.TransformChannelIndex);

            for (int i = 0; i < 5; ++i)
            {
                writer.Write(this.Unknown[i]);
            }

            writer.Write(this.Positions.Count);
            writer.Write(this.Rotations.Count);
            writer.Write(this.Scales.Count);

            for (int i = 0; i < 4; ++i)
            {
                writer.Write(this.Unknown2[i]);
            }

            for (int i = 0; i < this.PositionKeys.Count; ++i)
            {
                writer.Write(this.PositionKeys[i]);
            }
            for (int i = 0; i < this.RotationKeys.Count; ++i)
            {
                writer.Write(this.RotationKeys[i]);
            }
            for (int i = 0; i < this.ScaleKeys.Count; ++i)
            {
                writer.Write(this.ScaleKeys[i]);
            }

            for (int i = 0; i < this.Positions.Count; ++i)
            {
                writer.Write(this.Positions[i]);
            }
            for (int i = 0; i < this.Rotations.Count; ++i)
            {
                writer.Write(this.Rotations[i]);
            }
            for (int i = 0; i < this.Scales.Count; ++i)
            {
                writer.WriteMatrix3x3(this.Scales[i]);
            }
        }
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.Unknown);
     writer.Write(this.TextureMapIndex);
     writer.Write(this.Unknown2);
 }
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.DataExtensionIndex);
 }
Esempio n. 31
0
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.ParentIndex);
     writer.Write(this.Position);
     writer.Write(this.Rotation);
     writer.Write(this.Scale);
 }
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.Unknown);
     writer.Write(this.StringTableIndex);
 }
 public override void WriteData(GrnBinaryWriter writer)
 {
     this.CalculateHighestStats();
     writer.Write(this.VertexWeights.Count);
     writer.Write(this.HighestBoneIndex);
     writer.Write(this.HighestVertexWeightCount);
     for (int i = 0; i < this.VertexWeights.Count; ++i)
     {
         writer.Write(this.VertexWeights[i].BoneIndices.Count);
         for (int j = 0; j < this.VertexWeights[i].BoneIndices.Count; ++j)
         {
             writer.Write(this.VertexWeights[i].BoneIndices[j]);
             writer.Write(this.VertexWeights[i].Weights[j]);
         }
     }
 }
        public override void WriteData(GrnBinaryWriter writer)
        {
            writer.Write(this.TransformChannelIndex);

            for (int i = 0; i < 5; ++i)
            {
                writer.Write(this.Unknown[i]);
            }

            writer.Write(this.Positions.Count);
            writer.Write(this.Rotations.Count);
            writer.Write(this.Scales.Count);

            for (int i = 0; i < 4; ++i)
            {
                writer.Write(this.Unknown2[i]);
            }

            for (int i = 0; i < this.PositionKeys.Count; ++i)
            {
                writer.Write(this.PositionKeys[i]);
            }
            for (int i = 0; i < this.RotationKeys.Count; ++i)
            {
                writer.Write(this.RotationKeys[i]);
            }
            for (int i = 0; i < this.ScaleKeys.Count; ++i)
            {
                writer.Write(this.ScaleKeys[i]);
            }

            for (int i = 0; i < this.Positions.Count; ++i)
            {
                writer.Write(this.Positions[i]);
            }
            for (int i = 0; i < this.Rotations.Count; ++i)
            {
                writer.Write(this.Rotations[i]);
            }
            for (int i = 0; i < this.Scales.Count; ++i)
            {
                writer.Write(this.Scales[i]);
            }
        }
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.DataExtensionIndex);
 }
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.Width);
     writer.Write(this.Height);
     writer.Write(this.Unknown);
 }
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.Unknown);
     writer.Write(this.TextureMapIndex);
     writer.Write(this.Unknown2);
 }
Esempio n. 38
0
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.Unknown);
     writer.Write(this.StringTableIndex);
 }
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.Width);
     writer.Write(this.Height);
     writer.Write(this.Unknown);
 }
 public override void WriteData(GrnBinaryWriter writer)
 {
     for (int i = 0; i < this.Faces.Count; ++i)
     {
         for (int j = 0; j < this.Faces[i].Indices.Count; ++j)
         {
             writer.Write((Int32)this.Faces[i].Indices[j]);
         }
         for (int j = 0; j < this.Faces[i].NormalIndices.Count; ++j)
         {
             writer.Write(this.Faces[i].NormalIndices[j]);
         }
     }
 }
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.BoneIndex);
     writer.Write(this.Unknown);
     writer.Write(this.OBBMin);
     writer.Write(this.OBBMax);
 }