Class LemonUI::ObjectPool
ClassList > LemonUI > ObjectPool
Manager for Menus and Items.
Inherits the following classes: IEnumerable< IProcessable >
Public Properties
| Type | Name |
|---|---|
| property bool | AreAnyVisible Checks if there are objects visible on the screen. |
Public Functions
| Type | Name |
|---|---|
| void | Add (IProcessable obj) Adds the object into the pool. |
| void | ForEach< T > (Action< T > action) Performs the specified action on each element that matches T. |
| IEnumerator< IProcessable > | GetEnumerator () |
| void | HideAll () Hides all of the objects. |
| void | Process () Processes the objects and features in this pool. This needs to be called every tick. |
| void | RefreshAll () Refreshes all of the items. |
| void | Remove (IProcessable obj) Removes the object from the pool. |
Public Properties Documentation
property AreAnyVisible
bool LemonUI.ObjectPool.AreAnyVisible;
Public Functions Documentation
function Add
Adds the object into the pool.
inline void LemonUI::ObjectPool::Add (
IProcessable obj
)
Parameters:
objThe object to add.
function ForEach< T >
Performs the specified action on each element that matches T.
inline void LemonUI::ObjectPool::ForEach< T > (
Action< T > action
)
Template parameters:
TThe type to match.
Parameters:
actionThe action delegate to perform on each T.
function GetEnumerator [2/2]
IEnumerator< IProcessable > LemonUI::ObjectPool::GetEnumerator ()
function HideAll
inline void LemonUI::ObjectPool::HideAll ()
function Process
inline void LemonUI::ObjectPool::Process ()
function RefreshAll
inline void LemonUI::ObjectPool::RefreshAll ()
function Remove
Removes the object from the pool.
void LemonUI::ObjectPool::Remove (
IProcessable obj
)
Parameters:
objThe object to remove.
The documentation for this class was generated from the following file repos/LemonUI/LemonUI/ObjectPool.cs