Beispiel #1
0
 public void CopyTo(asStream stream)
 {
     stream.Put(R);
     stream.Put(G);
     stream.Put(B);
     stream.Put(A);
 }
Beispiel #2
0
        public override void Save(asStream stream)
        {
            stream.PutString(Name, 32);

            stream.Put(Flags);

            stream.Put(Unknown1);
            stream.Put(Unknown2);

            // alignment
            stream.Put((byte)0);
        }
Beispiel #3
0
        public override void Save(asStream stream)
        {
            stream.PutString(Name, 32);

            Emission.CopyTo(stream);

            Ambient.CopyTo(stream);
            Diffuse.CopyTo(stream);

            Specular.CopyTo(stream);

            stream.Put(Shininess);
            stream.Put(Reserved);
        }
Beispiel #4
0
        public override void Save(asStream stream)
        {
            var strLen = (byte)(Name.Length + 1);

            stream.Put(strLen);
            stream.PutString(Name, strLen);

            var vertsCount   = (Vertices != null) ? Vertices.Length : 0;
            var patchesCount = (Patches != null) ? Patches.Length : 0;

            stream.Put(vertsCount);
            stream.Put(patchesCount);

            stream.Put(Vertices);
            stream.Put(Patches);
        }
Beispiel #5
0
        public override void Save(asStream stream)
        {
            stream.Put(Vertex);

            var norms = new[] {
                Normals.X,
                Normals.Y,
                Normals.Z
            };

            stream.Put(norms, 3);

            stream.Put(SMap);
            stream.Put(TMap);

            stream.Put(Color);
        }
Beispiel #6
0
        public override void Save(asStream stream)
        {
            stream.PutString(Name, 32);

            stream.Put(Friction);
            stream.Put(Elasticity);
            stream.Put(Drag);

            stream.Put(BumpHeight);
            stream.Put(BumpWidth);

            stream.Put(SinkDepth);
            stream.Put(PtxRate);

            stream.Put(Type);
            stream.Put(Sound);

            Velocity.CopyTo(stream);
            PtxColor.CopyTo(stream);
        }
Beispiel #7
0
        public override void Save(asStream stream)
        {
            stream.Put(Resolution);
            stream.Put(Stride);
            stream.Put(Unknown);
            stream.Put(Flags);

            stream.Put(Material);
            stream.Put(Texture);
            stream.Put(Physics);

            foreach (var vertex in Vertices)
            {
                vertex.Save(stream);
            }

            stream.PutString(UserData);
        }
Beispiel #8
0
 public void CopyTo(asStream stream)
 {
     stream.Put(X);
     stream.Put(Y);
     stream.Put(Z);
 }