Interface IBaseObjectPool<TBaseObject>
Assembly: AltV.Net.dll
Syntax
public interface IBaseObjectPool<TBaseObject> : IReadOnlyBaseObjectPool<TBaseObject> where TBaseObject : IBaseObject
Type Parameters
Name |
Description |
TBaseObject |
|
Methods
|
Improve this Doc
View Source
Add(TBaseObject)
Declaration
void Add(TBaseObject entity)
Parameters
Type |
Name |
Description |
TBaseObject |
entity |
|
|
Improve this Doc
View Source
Create(ICore, IntPtr, UInt32)
Declaration
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
Task ForEach(IAsyncBaseObjectCallback<TBaseObject> asyncBaseObjectCallback)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
ForEach(IBaseObjectCallback<TBaseObject>)
Declaration
void ForEach(IBaseObjectCallback<TBaseObject> baseObjectCallback)
Parameters
|
Improve this Doc
View Source
GetObjectsArray()
Declaration
KeyValuePair<IntPtr, TBaseObject>[] GetObjectsArray()
Returns
Type |
Description |
System.Collections.Generic.KeyValuePair<System.IntPtr, TBaseObject>[] |
|
|
Improve this Doc
View Source
GetOrCreate(ICore, IntPtr)
Declaration
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
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
Remove(TBaseObject)
Declaration
bool Remove(TBaseObject entity)
Parameters
Type |
Name |
Description |
TBaseObject |
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 |
|