Class ParamComparer
Inheritance
System.Object
ParamComparer
Implements
System.Collections.Generic.IComparer<BulletEmitParam>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: BulletStorm.Emission
Assembly: BulletStorm.dll
Syntax
public class ParamComparer : IComparer<BulletEmitParam>
Constructors
| Improve this Doc View SourceParamComparer(ParamCompareItem, ParamCompareOrder, Single)
Create a comparer for BulletEmitParam. You can use operator '+' to add two comparer, then you get a new comparer that does the first comparision, and if the first comparision result is equal, will continue on the second comparision.
Declaration
public ParamComparer(ParamCompareItem compareItem, ParamCompareOrder order, float equalRange = 0F)
Parameters
Type | Name | Description |
---|---|---|
ParamCompareItem | compareItem | Value in the BulletEmitParam to compare |
ParamCompareOrder | order | Sorting order |
System.Single | equalRange | Difference less or equal than this will be recognized as same |
Methods
| Improve this Doc View SourceCompare(BulletEmitParam, BulletEmitParam)
Declaration
public int Compare(BulletEmitParam x, BulletEmitParam y)
Parameters
Type | Name | Description |
---|---|---|
BulletEmitParam | x | |
BulletEmitParam | y |
Returns
Type | Description |
---|---|
System.Int32 |
Operators
| Improve this Doc View SourceAddition(ParamComparer, ParamComparer)
Declaration
public static ParamComparer operator +(ParamComparer first, ParamComparer second)
Parameters
Type | Name | Description |
---|---|---|
ParamComparer | first | |
ParamComparer | second |
Returns
Type | Description |
---|---|
ParamComparer |
Implements
System.Collections.Generic.IComparer<T>