Class AsyncEntityPool<TEntity>
Inheritance
System.Object
AsyncEntityPool<TEntity>
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.Async.dll
Syntax
public abstract class AsyncEntityPool<TEntity> : IEntityPool<TEntity>, IReadOnlyEntityPool<TEntity> where TEntity : class, IEntity
Type Parameters
Constructors
|
Improve this Doc
View Source
AsyncEntityPool(IEntityFactory<TEntity>, Boolean)
Declaration
public AsyncEntityPool(IEntityFactory<TEntity> entityFactory, bool forceAsync)
Parameters
Type |
Name |
Description |
IEntityFactory<TEntity> |
entityFactory |
|
System.Boolean |
forceAsync |
|
Methods
|
Improve this Doc
View Source
Add(TEntity)
Declaration
public void Add(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
|
Improve this Doc
View Source
Create(ICore, IntPtr)
Declaration
public 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
public 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
public abstract Task ForEach(IAsyncBaseObjectCallback<TEntity> asyncBaseObjectCallback)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
ForEach(IBaseObjectCallback<TEntity>)
Declaration
public abstract void ForEach(IBaseObjectCallback<TEntity> baseObjectCallback)
Parameters
|
Improve this Doc
View Source
Get(IntPtr)
Declaration
public TEntity Get(IntPtr entityPointer)
Parameters
Type |
Name |
Description |
System.IntPtr |
entityPointer |
|
Returns
|
Improve this Doc
View Source
GetAllEntities()
Declaration
public IReadOnlyCollection<TEntity> GetAllEntities()
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<TEntity> |
|
|
Improve this Doc
View Source
GetEntitiesArray()
Declaration
public KeyValuePair<IntPtr, TEntity>[] GetEntitiesArray()
Returns
Type |
Description |
System.Collections.Generic.KeyValuePair<System.IntPtr, TEntity>[] |
|
|
Improve this Doc
View Source
GetId(IntPtr)
Declaration
public abstract uint GetId(IntPtr entityPointer)
Parameters
Type |
Name |
Description |
System.IntPtr |
entityPointer |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetOrCreate(ICore, IntPtr)
Declaration
public 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
public TEntity GetOrCreate(ICore core, IntPtr entityPointer, uint id)
Parameters
Type |
Name |
Description |
ICore |
core |
|
System.IntPtr |
entityPointer |
|
System.UInt32 |
id |
|
Returns
|
Improve this Doc
View Source
OnAdd(TEntity)
Declaration
public virtual void OnAdd(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
|
Improve this Doc
View Source
OnRemove(TEntity)
Declaration
public virtual void OnRemove(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
|
Improve this Doc
View Source
Remove(TEntity)
Declaration
public bool Remove(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Remove(IntPtr)
Declaration
public bool Remove(IntPtr entityPointer)
Parameters
Type |
Name |
Description |
System.IntPtr |
entityPointer |
|
Returns
Type |
Description |
System.Boolean |
|
Implements