Esempio n. 1
0
            partial void IDParseCustomParse(OverlayStream stream, int offset)
            {
                var subMeta = stream.ReadSubrecord();

                this.Type = subMeta.RecordTypeInt switch
                {
                    // ALST
                    0x54534C41 => QuestAlias.TypeEnum.Reference,
                    // ALLS
                    0x534C4C41 => QuestAlias.TypeEnum.Location,
                    _ => throw new NotImplementedException(),
                };
                this.ID = stream.ReadUInt32();
            }
Esempio n. 2
0
            public partial ParseResult IDParseCustomParse(OverlayStream stream, int offset, PreviousParse lastParsed)
            {
                var subMeta = stream.ReadSubrecord();

                this.Type = subMeta.RecordTypeInt switch
                {
                    // ALST
                    0x54534C41 => QuestAlias.TypeEnum.Reference,
                    // ALLS
                    0x534C4C41 => QuestAlias.TypeEnum.Location,
                    _ => throw new NotImplementedException(),
                };
                this.ID = stream.ReadUInt32();
                return(lastParsed);
            }