public override void Save(asStream stream) { stream.PutString(Name, 32); stream.Put(Flags); stream.Put(Unknown1); stream.Put(Unknown2); // alignment stream.Put((byte)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); }
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); }
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); }
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); }