Photon Fusion 2.1.1

NetworkObjectFlagsExtensions Class Reference

Extension methods for the NetworkObjectFlags enum. More...

Static Public Member Functions

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

Static Public Attributes

const NetworkObjectFlags CurrentVersion = NetworkObjectFlags.V2
 Current version of NetworkObjectFlags.

Detailed Description

Extension methods for the NetworkObjectFlags enum.

Member Function Documentation

◆ GetVersion()

NetworkObjectFlags 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()

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()

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()

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()

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.