IdentifiedPoolTInstance Class |
Namespace: SampSharp.GameMode.Pools
public abstract class IdentifiedPool<TInstance> : Disposable, IIdentifiable where TInstance : IdentifiedPool<TInstance>
The IdentifiedPoolTInstance type exposes the following members.
Name | Description | |
---|---|---|
IdentifiedPoolTInstance |
Initializes a new instance of the IdentifiedPoolTInstance class.
|
Name | Description | |
---|---|---|
All |
Gets a collection containing all instances.
| |
Id |
Gets the identifier of this instance.
| |
InstanceType |
The type to initialize when adding an instance to this pool by id.
| |
IsDisposed |
Gets whether this resource has been disposed.
(Inherited from Disposable.) |
Name | Description | |
---|---|---|
AssertNotDisposed |
Checks whether this instance has been disposed. If it has, it throws an exception.
(Inherited from Disposable.) | |
Contains |
Gets whether the given instance is present in the pool.
| |
Create |
Initializes a new instance with the given id.
| |
Dispose |
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Disposable.) | |
Dispose(Boolean) |
Removes this instance from the pool.
(Overrides DisposableDispose(Boolean).) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize |
Finalizes an instance of the Disposable class.
(Inherited from Disposable.) | |
Find |
Finds an instance with the given id.
| |
FindOrCreate |
Finds an instance with the given id or initializes a new one.
| |
GetAllT2 |
Gets a IReadOnlyCollectionT containing all instances of the given type within this
IdentifiedPoolTInstance.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize |
An overloadable point for initialization logic which requires the Id to be set.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Register(Type) |
Registers the type to use when initializing new instances.
| |
RegisterTRegister |
Registers the type to use when initializing new instances.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Disposed |
Occurs when this isntance has been disposed.
(Inherited from Disposable.) |