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(); }
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); }