コード例 #1
0
            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);
            }
コード例 #2
0
 static partial void WriteBinaryFlagsCustom(MutagenWriter writer, IWeaponDataGetter item)
 {
     writer.Write((ushort)item.Flags);
 }