Impact CFX API 1.5.0
Comprehensive API documentation for Impact CFX - Collision Effects System
Loading...
Searching...
No Matches
ImpactCFX.Bitmask Class Reference

Utility class for manipulating bitmasks. More...

Static Public Member Functions

static int SetBit (this int bitmask, int pos)
 Sets the bit at the given position to 1.
 
static int UnsetBit (this int bitmask, int pos)
 Sets the bit at the given position to 0.
 
static bool IsBitSet (this int bitmask, int pos)
 Checks if the bit at the given position is set.
 

Detailed Description

Utility class for manipulating bitmasks.

Member Function Documentation

◆ IsBitSet()

static bool ImpactCFX.Bitmask.IsBitSet ( this int  bitmask,
int  pos 
)
static

Checks if the bit at the given position is set.

Parameters
bitmaskThe bitmask to change.
posThe index of the bit to unset.
Returns
If the bit at the given position is set.

◆ SetBit()

static int ImpactCFX.Bitmask.SetBit ( this int  bitmask,
int  pos 
)
static

Sets the bit at the given position to 1.

Parameters
bitmaskThe bitmask to change.
posThe index of the bit
Returns
The updated bitmask.

◆ UnsetBit()

static int ImpactCFX.Bitmask.UnsetBit ( this int  bitmask,
int  pos 
)
static

Sets the bit at the given position to 0.

Parameters
bitmaskThe bitmask to change.
posThe index of the bit to unset.
Returns
The updated bitmask.