Class EntityPool<TEntity>
Inheritance
System.Object
EntityPool<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.Client.dll
Syntax
public abstract class EntityPool<TEntity> : IEntityPool<TEntity>, IReadOnlyEntityPool<TEntity> where TEntity : class, IEntity
Type Parameters
Constructors
|
Improve this Doc
View Source
EntityPool(IEntityFactory<TEntity>)
Declaration
public EntityPool(IEntityFactory<TEntity> entityFactory)
Parameters
Fields
|
Improve this Doc
View Source
_entityFactory
Declaration
protected IEntityFactory<TEntity> _entityFactory
Field Value
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 |
|
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 |
|
IntPtr |
entityPointer |
|
System.UInt32 |
id |
|
Returns
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
Get(IntPtr)
Declaration
public TEntity Get(IntPtr entityPointer)
Parameters
Type |
Name |
Description |
IntPtr |
entityPointer |
|
Returns
|
Improve this Doc
View Source
GetAllEntities()
Declaration
public IReadOnlyCollection<TEntity> GetAllEntities()
Returns
Type |
Description |
IReadOnlyCollection<TEntity> |
|
|
Improve this Doc
View Source
GetEntitiesArray()
Declaration
public KeyValuePair<IntPtr, TEntity>[] GetEntitiesArray()
Returns
Type |
Description |
KeyValuePair<IntPtr, TEntity>[] |
|
|
Improve this Doc
View Source
GetId(IntPtr)
Declaration
protected abstract uint GetId(IntPtr highestPointer)
Parameters
Type |
Name |
Description |
IntPtr |
highestPointer |
|
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 |
|
IntPtr |
entityPointer |
|
Returns
|
Improve this Doc
View Source
GetOrCreate(ICore, IntPtr, UInt32)
Declaration
public TEntity GetOrCreate(ICore core, IntPtr entityPointer, uint entityId)
Parameters
Type |
Name |
Description |
ICore |
core |
|
IntPtr |
entityPointer |
|
System.UInt32 |
entityId |
|
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 |
IntPtr |
entityPointer |
|
Returns
Type |
Description |
System.Boolean |
|
Implements