Helpers Class
Definition
Section titled “Definition”General code helpers.
public static class HelpersInheritance object
Methods
Section titled “Methods”HasFlag(in int, in int)
Section titled “HasFlag(in int, in int)”Checks for the presense of a flag in a value.
public static bool HasFlag(in int value, in int flag)Parameters
Section titled “Parameters”value int
The value.
flag int
The flag.
Returns
Section titled “Returns”bool
true when the flag exists in the value; otherwise false.
SetFlag(int, int)
Section titled “SetFlag(int, int)”Sets a flag in a value.
public static int SetFlag(int value, int flag)Parameters
Section titled “Parameters”value int
The value.
flag int
The flag.
Returns
Section titled “Returns”int
A new value with the flag added.
UnsetFlag(int, int)
Section titled “UnsetFlag(int, int)”Removes a flag from a value.
public static int UnsetFlag(int value, int flag)Parameters
Section titled “Parameters”value int
The value.
flag int
The flag.
Returns
Section titled “Returns”int
A new value with the flag removed.