Interface IEntityPool<TEntity>
Assembly: AltV.Net.dll
Syntax
public interface IEntityPool<TEntity> : IReadOnlyEntityPool<TEntity> where TEntity : IEntity
Type Parameters
Methods
|
Improve this Doc
View Source
Add(TEntity)
Declaration
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
|
Improve this Doc
View Source
Create(ICore, IntPtr)
Declaration
TEntity Create(ICore core, IntPtr entityPointer)
Parameters
Type |
Name |
Description |
ICore |
core |
|
System.IntPtr |
entityPointer |
|
Returns
|
Improve this Doc
View Source
Create(ICore, IntPtr, UInt32)
Declaration
TEntity Create(ICore core, IntPtr entityPointer, uint id)
Parameters
Type |
Name |
Description |
ICore |
core |
|
System.IntPtr |
entityPointer |
|
System.UInt32 |
id |
|
Returns
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
ForEach(IAsyncBaseObjectCallback<TEntity>)
Declaration
Task ForEach(IAsyncBaseObjectCallback<TEntity> asyncBaseObjectCallback)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
ForEach(IBaseObjectCallback<TEntity>)
Declaration
void ForEach(IBaseObjectCallback<TEntity> baseObjectCallback)
Parameters
|
Improve this Doc
View Source
GetEntitiesArray()
Declaration
KeyValuePair<IntPtr, TEntity>[] GetEntitiesArray()
Returns
Type |
Description |
System.Collections.Generic.KeyValuePair<System.IntPtr, TEntity>[] |
|
|
Improve this Doc
View Source
GetOrCreate(ICore, IntPtr)
Declaration
TEntity GetOrCreate(ICore core, IntPtr entityPointer)
Parameters
Type |
Name |
Description |
ICore |
core |
|
System.IntPtr |
entityPointer |
|
Returns
|
Improve this Doc
View Source
GetOrCreate(ICore, IntPtr, UInt32)
Declaration
TEntity GetOrCreate(ICore core, IntPtr entityPointer, uint entityId)
Parameters
Type |
Name |
Description |
ICore |
core |
|
System.IntPtr |
entityPointer |
|
System.UInt32 |
entityId |
|
Returns
|
Improve this Doc
View Source
OnAdd(TEntity)
Declaration
void OnAdd(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
|
Improve this Doc
View Source
OnRemove(TEntity)
Declaration
void OnRemove(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
|
Improve this Doc
View Source
Remove(TEntity)
Declaration
bool Remove(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Remove(IntPtr)
Declaration
bool Remove(IntPtr entityPointer)
Parameters
Type |
Name |
Description |
System.IntPtr |
entityPointer |
|
Returns
Type |
Description |
System.Boolean |
|