Class BaseObjectPool<TBaseObject>
Inheritance
System.Object
BaseObjectPool<TBaseObject>
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.dll
Syntax
public abstract class BaseObjectPool<TBaseObject> : IBaseObjectPool<TBaseObject>, IReadOnlyBaseObjectPool<TBaseObject> where TBaseObject : IBaseObject
Type Parameters
Name |
Description |
TBaseObject |
|
Constructors
|
Improve this Doc
View Source
BaseObjectPool(IBaseObjectFactory<TBaseObject>)
Declaration
protected BaseObjectPool(IBaseObjectFactory<TBaseObject> entityFactory)
Parameters
Methods
|
Improve this Doc
View Source
Add(TBaseObject)
Declaration
public void Add(TBaseObject entity)
Parameters
Type |
Name |
Description |
TBaseObject |
entity |
|
|
Improve this Doc
View Source
Create(ICore, IntPtr, UInt32)
Declaration
public TBaseObject Create(ICore core, IntPtr entityPointer, uint id)
Parameters
Type |
Name |
Description |
ICore |
core |
|
System.IntPtr |
entityPointer |
|
System.UInt32 |
id |
|
Returns
Type |
Description |
TBaseObject |
|
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
ForEach(IAsyncBaseObjectCallback<TBaseObject>)
Declaration
public async Task ForEach(IAsyncBaseObjectCallback<TBaseObject> asyncBaseObjectCallback)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
ForEach(IBaseObjectCallback<TBaseObject>)
Declaration
public void ForEach(IBaseObjectCallback<TBaseObject> baseObjectCallback)
Parameters
|
Improve this Doc
View Source
Get(IntPtr)
Declaration
public TBaseObject Get(IntPtr entityPointer)
Parameters
Type |
Name |
Description |
System.IntPtr |
entityPointer |
|
Returns
Type |
Description |
TBaseObject |
|
|
Improve this Doc
View Source
GetAllObjects()
Declaration
public IReadOnlyCollection<TBaseObject> GetAllObjects()
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<TBaseObject> |
|
|
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
GetObjectsArray()
Declaration
public KeyValuePair<IntPtr, TBaseObject>[] GetObjectsArray()
Returns
Type |
Description |
System.Collections.Generic.KeyValuePair<System.IntPtr, TBaseObject>[] |
|
|
Improve this Doc
View Source
GetOrCreate(ICore, IntPtr)
Declaration
public TBaseObject GetOrCreate(ICore core, IntPtr entityPointer)
Parameters
Type |
Name |
Description |
ICore |
core |
|
System.IntPtr |
entityPointer |
|
Returns
Type |
Description |
TBaseObject |
|
|
Improve this Doc
View Source
GetOrCreate(ICore, IntPtr, UInt32)
Declaration
public TBaseObject GetOrCreate(ICore core, IntPtr entityPointer, uint entityId)
Parameters
Type |
Name |
Description |
ICore |
core |
|
System.IntPtr |
entityPointer |
|
System.UInt32 |
entityId |
|
Returns
Type |
Description |
TBaseObject |
|
|
Improve this Doc
View Source
OnAdd(TBaseObject)
Declaration
public virtual void OnAdd(TBaseObject entity)
Parameters
Type |
Name |
Description |
TBaseObject |
entity |
|
|
Improve this Doc
View Source
OnRemove(TBaseObject)
Declaration
public virtual void OnRemove(TBaseObject entity)
Parameters
Type |
Name |
Description |
TBaseObject |
entity |
|
|
Improve this Doc
View Source
Remove(TBaseObject)
Declaration
public bool Remove(TBaseObject entity)
Parameters
Type |
Name |
Description |
TBaseObject |
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 |
|
|
Improve this Doc
View Source
SetEntityNoLongerExists(TBaseObject)
Declaration
public static void SetEntityNoLongerExists(TBaseObject entity)
Parameters
Type |
Name |
Description |
TBaseObject |
entity |
|
Implements