static partial void WriteBinaryFlags2Custom(MutagenWriter writer, IWeaponDataGetter item) { var flags = (uint)item.Flags; // Clean lower flags flags &= WeaponDataBinaryCreateTranslation.UpperFlagMask; flags >>= WeaponDataBinaryCreateTranslation.UpperFlagShift; writer.Write(flags); }
static partial void WriteBinaryFlagsCustom(MutagenWriter writer, IWeaponDataGetter item) { writer.Write((ushort)item.Flags); }