mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-22 22:07:59 +01:00
16 lines
No EOL
373 B
C#
16 lines
No EOL
373 B
C#
// Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
// GameDataEditor.FlagExtensions
|
|
using System;
|
|
|
|
namespace GameDataEditor
|
|
{
|
|
public static class FlagExtensions
|
|
{
|
|
public static bool IsSet(this Enum variable, Enum flag)
|
|
{
|
|
ulong num = Convert.ToUInt64(variable);
|
|
ulong num2 = Convert.ToUInt64(flag);
|
|
return (num & num2) == num2;
|
|
}
|
|
}
|
|
} |