Esempio n. 1
0
        public void LoadBucket(Stream stream)
        {
            var omegaStream = new OmegaStream(stream);

            omegaStream.CheckResourceHeader(1263878736U, 2, 2);
            for (var index = 0; index < 2; ++index)
            {
                var length = omegaStream.ReadUInt();
                Parse(new MemoryStream(omegaStream.ReadBytes(length)));
            }
        }
Esempio n. 2
0
        protected HeroType(OmegaStream stream)
        {
            Type = (HeroTypes)stream.ReadByte();
            switch (Type)
            {
            case HeroTypes.Enum:
            case HeroTypes.Class:
            case HeroTypes.NodeRef:
                Id = new DefinitionId(stream.ReadULong());
                break;

            case HeroTypes.List:
                Values = new HeroType(stream);
                break;

            case HeroTypes.LookupList:
                Indexer = new HeroType(stream);
                Values  = new HeroType(stream);
                break;
            }
        }