Class EntryResponserUtility
Provides extension methods and utilities for resolving and interacting with IEntryResponser components.
public static class EntryResponserUtility
Inheritance
Methods
ObjectPoolFactory(MsgPanelPresenter, MsgPresenter, int, int)
Creates an ObjectPool for MsgPresenter instances, using the provided MsgPanelPresenter as the factory and manager for message instantiation, reuse, release, and destruction.
public static ObjectPool<MsgPresenter> ObjectPoolFactory(this MsgPanelPresenter message_panel, MsgPresenter prefab, int defaultSize = 5, int maxSize = 10)
Parameters
| Name | Type | Description |
|---|---|---|
message_panel | MsgPanelPresenter | The MsgPanelPresenter responsible for creating and managing message instances. |
prefab | MsgPresenter | The prefab of the MsgPresenter to be pooled and reused. |
defaultSize | int | The default capacity the stack will be created with. |
maxSize | int | The maximum size of the pool. When the pool reaches the max size then any further instances returned to the pool will be ignored and can be garbage collected. This can be used to prevent the pool growing to a very large size. |
Returns
ObjectPool<MsgPresenter> — A configured ObjectPool instance for managing pooled MsgPresenter objects.