public override void Load(asStream stream) { Name = stream.GetString(32); Flags = stream.GetByte(); Unknown1 = stream.GetByte(); Unknown2 = stream.GetByte(); // ignore alignment stream.Skip(1); }
public override void Load(asStream stream) { int strLen = stream.GetByte(); Name = stream.GetString(strLen); var vertsCount = stream.GetInt(); var patchesCount = stream.GetInt(); Vertices = new short[vertsCount]; Patches = new short[patchesCount]; stream.Get(Vertices, vertsCount); stream.Get(Patches, patchesCount); }