Class LimitedGrid
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: AltV.Net.EntitySync.SpatialPartitions
Assembly: AltV.Net.EntitySync.dll
Syntax
public class LimitedGrid : Grid2
Constructors
| Improve this Doc View SourceLimitedGrid(Int32, Int32, Int32, Int32, Int32, Int32, Int32)
The constructor of the grid spatial partition algorithm
Declaration
public LimitedGrid(int maxX, int maxY, int areaSize, int xOffset, int yOffset, int limit, int distance = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxX | The max x value |
System.Int32 | maxY | The max y value |
System.Int32 | areaSize | The Size of a grid area |
System.Int32 | xOffset | |
System.Int32 | yOffset | |
System.Int32 | limit | |
System.Int32 | distance |
Methods
| Improve this Doc View SourceFind(Vector3, Int32)
Declaration
public override IList<IEntity> Find(Vector3 position, int dimension)
Parameters
Type | Name | Description |
---|---|---|
System.Numerics.Vector3 | position | |
System.Int32 | dimension |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<IEntity> |