Class SpatialPartition
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 abstract class SpatialPartition
Methods
| Improve this Doc View SourceAdd(IEntity)
Declaration
public abstract void Add(IEntity entity)
Parameters
Type | Name | Description |
---|---|---|
IEntity | entity |
Find(Vector3, Int32)
Declaration
public abstract 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> |
Remove(IEntity)
Declaration
public abstract void Remove(IEntity entity)
Parameters
Type | Name | Description |
---|---|---|
IEntity | entity |
UpdateEntityDimension(IEntity, Int32, Int32)
Updates the entity dimension, some algorithms might just call remove and add, depending on the possibilities
Declaration
public abstract void UpdateEntityDimension(IEntity entity, int oldDimension, int newDimension)
Parameters
Type | Name | Description |
---|---|---|
IEntity | entity | |
System.Int32 | oldDimension | |
System.Int32 | newDimension |
UpdateEntityPosition(IEntity, in Vector3, in Vector3)
Updates the entity position, some algorithms might just call remove and add, depending on the possibilities
Declaration
public abstract void UpdateEntityPosition(IEntity entity, in Vector3 oldPosition, in Vector3 newPosition)
Parameters
Type | Name | Description |
---|---|---|
IEntity | entity | |
System.Numerics.Vector3 | oldPosition | |
System.Numerics.Vector3 | newPosition |
UpdateEntityRange(IEntity, UInt32, UInt32)
Updates the entity range, some algorithms might just call remove and add, depending on the possibilities
Declaration
public abstract void UpdateEntityRange(IEntity entity, uint oldRange, uint newRange)
Parameters
Type | Name | Description |
---|---|---|
IEntity | entity | |
System.UInt32 | oldRange | |
System.UInt32 | newRange |