Class Grid
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 Grid : SpatialPartition
Constructors
| Improve this Doc View SourceGrid(Int32, Int32, Int32, Int32, Int32)
The constructor of the grid spatial partition algorithm
Declaration
public Grid(int maxX, int maxY, int areaSize, int xOffset, int yOffset)
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 |
Methods
| Improve this Doc View SourceAdd(IEntity)
Declaration
public override void Add(IEntity entity)
Parameters
| Type | Name | Description |
|---|---|---|
| IEntity | entity |
Overrides
| 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> |
Overrides
| Improve this Doc View SourceRemove(IEntity)
Declaration
public override void Remove(IEntity entity)
Parameters
| Type | Name | Description |
|---|---|---|
| IEntity | entity |
Overrides
| Improve this Doc View SourceUpdateEntityDimension(IEntity, Int32, Int32)
Declaration
public override void UpdateEntityDimension(IEntity entity, int oldDimension, int newDimension)
Parameters
| Type | Name | Description |
|---|---|---|
| IEntity | entity | |
| System.Int32 | oldDimension | |
| System.Int32 | newDimension |
Overrides
| Improve this Doc View SourceUpdateEntityPosition(IEntity, in Vector3, in Vector3)
Declaration
public override void UpdateEntityPosition(IEntity entity, in Vector3 oldPosition, in Vector3 newPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| IEntity | entity | |
| System.Numerics.Vector3 | oldPosition | |
| System.Numerics.Vector3 | newPosition |
Overrides
| Improve this Doc View SourceUpdateEntityRange(IEntity, UInt32, UInt32)
Declaration
public override void UpdateEntityRange(IEntity entity, uint oldRange, uint newRange)
Parameters
| Type | Name | Description |
|---|---|---|
| IEntity | entity | |
| System.UInt32 | oldRange | |
| System.UInt32 | newRange |