Class EntityComparer
Implements
Namespace: LiteEntitySystem.Internal
Assembly: LiteEntitySystem.dll
Syntax
public class EntityComparer : IComparer<InternalEntity>
Fields
Instance
Declaration
public static readonly EntityComparer Instance
Field Value
| Type | Description |
|---|---|
| EntityComparer |
Methods
Compare(InternalEntity, InternalEntity)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Declaration
public int Compare(InternalEntity x, InternalEntity y)
Parameters
| Type | Name | Description |
|---|---|---|
| InternalEntity | x | The first object to compare. |
| InternalEntity | y | The second object to compare. |
Returns
| Type | Description |
|---|---|
| int | A signed integer that indicates the relative values of Meaning Less than zero
Zero
Greater than zero
|