Class ObjectPool
Manager for Menus and Items.
Inherited Members
Namespace: LemonUI
Assembly: LemonUI.SHVDN3.dll
Syntax
public class ObjectPool : IEnumerable<IProcessable>, IEnumerable
Constructors
View SourceObjectPool()
Declaration
public ObjectPool()
Properties
View SourceAreAnyVisible
Checks if there are objects visible on the screen.
Declaration
public bool AreAnyVisible { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
View SourceAdd(IProcessable)
Adds the object into the pool.
Declaration
public void Add(IProcessable obj)
Parameters
Type | Name | Description |
---|---|---|
IProcessable | obj | The object to add. |
ForEach<T>(Action<T>)
Performs the specified action on each element that matches T.
Declaration
public void ForEach<T>(Action<T> action)
Parameters
Type | Name | Description |
---|---|---|
Action<T> | action | The action delegate to perform on each T. |
Type Parameters
Name | Description |
---|---|
T | The type to match. |
GetEnumerator()
Declaration
public IEnumerator<IProcessable> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<IProcessable> |
HideAll()
Hides all of the objects.
Declaration
public void HideAll()
Process()
Processes the objects and features in this pool. This needs to be called every tick.
Declaration
public void Process()
RefreshAll()
Refreshes all of the items.
Declaration
public void RefreshAll()
Remove(IProcessable)
Removes the object from the pool.
Declaration
public void Remove(IProcessable obj)
Parameters
Type | Name | Description |
---|---|---|
IProcessable | obj | The object to remove. |
Events
View SourceResolutionChanged
Event triggered when the game resolution is changed.
Declaration
public event ResolutionChangedEventHandler ResolutionChanged
Event Type
Type | Description |
---|---|
ResolutionChangedEventHandler |
SafezoneChanged
Event triggered when the Safezone size option in the Display settings is changed.
Declaration
public event SafeZoneChangedEventHandler SafezoneChanged
Event Type
Type | Description |
---|---|
SafeZoneChangedEventHandler |