Photon Fusion 2.0.0

Public Member Functions | Static Public Attributes | List of all members
NetworkObjectSortKeyComparer Class Reference

This class is used to compare two NetworkObject instances based on their SortKey. It implements the IComparer interface. More...

Inherits IComparer< NetworkObject >.

Public Member Functions

int Compare (NetworkObject x, NetworkObject y)
 Compares two NetworkObject instances based on their SortKey.
 

Static Public Attributes

static readonly NetworkObjectSortKeyComparer Instance = new NetworkObjectSortKeyComparer()
 An instance of the NetworkObjectSortKeyComparer class.
 

Detailed Description

This class is used to compare two NetworkObject instances based on their SortKey. It implements the IComparer interface.

Member Function Documentation

◆ Compare()

int Compare ( NetworkObject  x,
NetworkObject  y 
)

Compares two NetworkObject instances based on their SortKey.

Parameters
xThe first NetworkObject to compare.
yThe second NetworkObject to compare.
Returns
A signed integer that indicates the relative values of x and y.