IdentifiedOwnedPoolTInstance, TOwner Class |
Namespace: SampSharp.GameMode.Pools
public abstract class IdentifiedOwnedPool<TInstance, TOwner> : Disposable, IIdentifiable, IOwnable<TOwner> where TInstance : IdentifiedOwnedPool<TInstance, TOwner> where TOwner : class, IIdentifiable
The IdentifiedOwnedPoolTInstance, TOwner type exposes the following members.
Name | Description | |
---|---|---|
![]() | IdentifiedOwnedPoolTInstance, TOwner |
Initializes a new instance of the IdentifiedOwnedPoolTInstance, TOwner 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.) |
![]() | Owner |
Gets the owner of this instance.
|
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
IdentifiedOwnedPoolTInstance, TOwner.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Initialize | |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | Of |
Gets a collection of instanced owned by the specified owner.
|
![]() ![]() | 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.) |