示例#1
0
		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);
			}
		}
示例#2
0
文件: Grp.cs 项目: xerohour/scsharp
        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);
            }
        }