public void ReadFromStream (Stream stream) { this.stream = stream; frame_count = Util.ReadWord (stream); width = Util.ReadWord (stream); height = Util.ReadWord (stream); for (int i = 0; i < frame_count; i ++) { FrameTabEntry entry = new FrameTabEntry (); entry.xOffset = Util.ReadByte (stream); entry.yOffset = Util.ReadByte (stream); entry.unknown1 = Util.ReadByte (stream); entry.unknown2 = Util.ReadByte (stream); entry.pFrameData = Util.ReadDWord (stream); entries.Add (entry); } }
public void ReadFromStream(Stream stream) { this.stream = stream; frame_count = Util.ReadWord(stream); width = Util.ReadWord(stream); height = Util.ReadWord(stream); for (int i = 0; i < frame_count; i++) { FrameTabEntry entry = new FrameTabEntry(); entry.xOffset = Util.ReadByte(stream); entry.yOffset = Util.ReadByte(stream); entry.unknown1 = Util.ReadByte(stream); entry.unknown2 = Util.ReadByte(stream); entry.pFrameData = Util.ReadDWord(stream); entries.Add(entry); } }