Photon Fusion 2.0.4

Static Public Member Functions | List of all members
NetworkObjectFlagsExtensions Class Reference

Extension methods for the NetworkObjectFlags enum. More...

Static Public Member Functions

static int GetVersion (this NetworkObjectFlags flags)
 Returns the version of the flags. More...
 
static bool IsIgnored (this NetworkObjectFlags flags)
 Check if the flags are ignored. More...
 
static bool IsVersionCurrent (this NetworkObjectFlags flags)
 Check if the flags are the current version. More...
 
static NetworkObjectFlags SetCurrentVersion (this NetworkObjectFlags flags)
 Sets the flags to the current version. More...
 
static NetworkObjectFlags SetIgnored (this NetworkObjectFlags flags, bool value)
 Sets the ignored flag on the flags. More...
 

Detailed Description

Extension methods for the NetworkObjectFlags enum.

Member Function Documentation

◆ GetVersion()

static int GetVersion ( this NetworkObjectFlags  flags)
static

Returns the version of the flags.

Parameters
flagsThe flags to get the version of.
Returns
The version of the flags.

◆ IsIgnored()

static bool IsIgnored ( this NetworkObjectFlags  flags)
static

Check if the flags are ignored.

Parameters
flagsThe flags to check.
Returns
True if the flags are ignored, false otherwise.

◆ IsVersionCurrent()

static bool IsVersionCurrent ( this NetworkObjectFlags  flags)
static

Check if the flags are the current version.

Parameters
flagsThe flags to check.
Returns
True if the flags are the current version, false otherwise.

◆ SetCurrentVersion()

static NetworkObjectFlags SetCurrentVersion ( this NetworkObjectFlags  flags)
static

Sets the flags to the current version.

Parameters
flagsThe flags to set.
Returns
The flags with the version set to the current version.

◆ SetIgnored()

static NetworkObjectFlags SetIgnored ( this NetworkObjectFlags  flags,
bool  value 
)
static

Sets the ignored flag on the flags.

Parameters
flagsFlags to set the ignored flag on.
valueIgnored flag value.
Returns
The flags with the ignored flag set to the given value.