Interface IBaseObjectPool<TBaseObject>
Assembly: AltV.Net.Client.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 |
|
IntPtr |
entityPointer |
|
System.UInt32 |
id |
|
Returns
Type |
Description |
TBaseObject |
|
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
GetObjectsArray()
Declaration
KeyValuePair<IntPtr, TBaseObject>[] GetObjectsArray()
Returns
Type |
Description |
KeyValuePair<IntPtr, TBaseObject>[] |
|
|
Improve this Doc
View Source
GetOrCreate(ICore, IntPtr)
Declaration
TBaseObject GetOrCreate(ICore core, IntPtr entityPointer)
Parameters
Type |
Name |
Description |
ICore |
core |
|
IntPtr |
entityPointer |
|
Returns
Type |
Description |
TBaseObject |
|
|
Improve this Doc
View Source
GetOrCreate(ICore, IntPtr, UInt32)
Declaration
TBaseObject GetOrCreate(ICore core, IntPtr entityPointer, uint id)
Parameters
Type |
Name |
Description |
ICore |
core |
|
IntPtr |
entityPointer |
|
System.UInt32 |
id |
|
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 |
IntPtr |
entityPointer |
|
Returns
Type |
Description |
System.Boolean |
|