Class Grid3
Inheritance
System.Object
Grid3
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()
Assembly: AltV.Net.EntitySync.dll
Syntax
public class Grid3 : SpatialPartition
Constructors
|
Improve this Doc
View Source
Grid3(Int32, Int32, Int32, Int32, Int32)
The constructor of the grid spatial partition algorithm
Declaration
public Grid3(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 |
|
Fields
|
Improve this Doc
View Source
areaSize
Declaration
protected readonly int areaSize
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
entityAreas
Declaration
protected readonly List<IEntity>[][] entityAreas
Field Value
Type |
Description |
System.Collections.Generic.List<IEntity>[][] |
|
|
Improve this Doc
View Source
maxX
Declaration
protected readonly int maxX
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
maxXAreaIndex
Declaration
protected readonly int maxXAreaIndex
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
maxY
Declaration
protected readonly int maxY
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
maxYAreaIndex
Declaration
protected readonly int maxYAreaIndex
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
xOffset
Declaration
protected readonly int xOffset
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
yOffset
Declaration
protected readonly int yOffset
Field Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
Add(IEntity)
Declaration
public override void Add(IEntity entity)
Parameters
Type |
Name |
Description |
IEntity |
entity |
|
Overrides
|
Improve this Doc
View Source
CanSeeOtherDimension(Int32, Int32)
Declaration
protected static bool CanSeeOtherDimension(int dimension, int otherDimension)
Parameters
Type |
Name |
Description |
System.Int32 |
dimension |
|
System.Int32 |
otherDimension |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Find(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 Source
GetEntityCount()
Declaration
public ulong GetEntityCount()
Returns
Type |
Description |
System.UInt64 |
|
|
Improve this Doc
View Source
Remove(IEntity)
Declaration
public override void Remove(IEntity entity)
Parameters
Type |
Name |
Description |
IEntity |
entity |
|
Overrides
|
Improve this Doc
View Source
UpdateEntityDimension(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 Source
UpdateEntityPosition(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 Source
UpdateEntityRange(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 |
|
Overrides