Class InstanceRequestingCharacterPool
A pool subclass that asks for an instance directly, the way a project's own pool can through the protected extension point, without going through Spawn(string, float, float, float, float, float, float, float)'s gates.
Namespace: Serenity.UnityCharacter.Tests.Infrastructure
Assembly: Tests.dll
Syntax
public class InstanceRequestingCharacterPool : UnityCharacterPoolService
Constructors
InstanceRequestingCharacterPool()
Declaration
public InstanceRequestingCharacterPool()
Methods
RequestInstance(ICharacterConfig)
Requests an instance of archetype and reports whether the pool produced one.
Declaration
public bool RequestInstance(ICharacterConfig archetype)
Parameters
| Type | Name | Description |
|---|---|---|
| ICharacterConfig | archetype |
Returns
| Type | Description |
|---|---|
| bool |