public static partial void FillBinaryTeachesCustom(MutagenFrame frame, IBookInternal item) { if ((((int)item.Flags) & SpellFlag) > 0) { item.Teaches = new BookSpell() { Spell = new FormLink <ISpellGetter>(FormLinkBinaryTranslation.Instance.Parse(frame)) }; } else if ((((int)item.Flags) & SkillFlag) > 0) { item.Teaches = new BookSkill { Skill = (Skill)frame.ReadInt32() }; } else { item.Teaches = new BookTeachesNothing() { RawContent = frame.ReadUInt32() }; } }
public static partial void FillBinaryFlagsCustom(MutagenFrame frame, IBookInternal item) { item.Flags = (Book.Flag)frame.ReadUInt8(); }