Files
UmaViewer/Assets/Scripts/umamusume/Gallop/DereScript/Cutt/extension/LiveTimelineKeyAttribute_Ext.cs
T
2023-01-20 07:13:54 +08:00

31 lines
992 B
C#

namespace Cutt
{
public static class LiveTimelineKeyAttribute_Ext
{
public static bool hasFlag(this LiveTimelineKeyAttribute This, LiveTimelineKeyAttribute bit)
{
return (This & bit) != (LiveTimelineKeyAttribute)0;
}
public static LiveTimelineKeyAttribute addFlag(this LiveTimelineKeyAttribute This, LiveTimelineKeyAttribute bit, bool on)
{
if (on)
{
return This | bit;
}
return This & ~bit;
}
public static int GetHighWord(this LiveTimelineKeyAttribute This)
{
return (int)This >> 16;
}
public static LiveTimelineKeyAttribute SetHighWord(this LiveTimelineKeyAttribute This, int val)
{
LiveTimelineKeyAttribute liveTimelineKeyAttribute = (LiveTimelineKeyAttribute)(val << 16);
return liveTimelineKeyAttribute | (This & LiveTimelineKeyAttribute.KeyCommonBitMask);
}
}
}