Class ColShapeModule
Requires a lock in entity pool and concurrent dictionary for looping, only use with AltV.Net.Async together
Inheritance
System.Object
ColShapeModule
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.ColShape
Assembly: AltV.Net.ColShape.dll
Syntax
public class ColShapeModule
Constructors
| Improve this Doc View SourceColShapeModule(Int32)
Init col shape module areaSize of 1 requires 10gb ram areaSize of 10 requires 100mb ram areaSize of 100 requires 1mb ram
Declaration
public ColShapeModule(int areaSize = 100)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | areaSize | Larger area size => more ram, less cpu usage |
Methods
| Improve this Doc View SourceAdd(IColShape)
Declaration
public void Add(IColShape colShape)
Parameters
| Type | Name | Description |
|---|---|---|
| IColShape | colShape |
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 |
GetAllPlayers()
Declaration
public virtual IEnumerable<KeyValuePair<IntPtr, IPlayer>> GetAllPlayers()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.IntPtr, IPlayer>> |
GetAllVehicles()
Declaration
public virtual IEnumerable<KeyValuePair<IntPtr, IVehicle>> GetAllVehicles()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.IntPtr, IVehicle>> |
Remove(IColShape)
Declaration
public void Remove(IColShape colShape)
Parameters
| Type | Name | Description |
|---|---|---|
| IColShape | colShape |
Shutdown()
Declaration
public void Shutdown()