예제 #1
0
파일: GOM.cs 프로젝트: exodus444/swtoremu2
        public void LoadBucket(Stream stream)
        {
            OmegaStream omegaStream = new OmegaStream(stream);

            omegaStream.CheckResourceHeader(1263878736U, (ushort)2, (ushort)2);
            for (int index = 0; index < 2; ++index)
            {
                uint length = omegaStream.ReadUInt();
                this.Parse((Stream) new MemoryStream(omegaStream.ReadBytes(length)));
            }
        }
예제 #2
0
        public void LoadBucket(Stream stream)
        {
            OmegaStream stream2 = new OmegaStream(stream);

            stream2.CheckResourceHeader(0x4b554250, 2, 2);
            for (int i = 0; i < 2; i++)
            {
                uint   length = stream2.ReadUInt();
                byte[] buffer = stream2.ReadBytes(length);
                this.Parse(new MemoryStream(buffer));
            }
        }