Show / Hide Table of Contents

Class ObjectPool

Manager for Menus and Items.

Inheritance
object
ObjectPool
Implements
IEnumerable<IProcessable>
IEnumerable
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: LemonUI
Assembly: LemonUI.SHVDN3.dll
Syntax
public class ObjectPool : IEnumerable<IProcessable>, IEnumerable

Constructors

View Source

ObjectPool()

Declaration
public ObjectPool()

Properties

View Source

AreAnyVisible

Checks if there are objects visible on the screen.

Declaration
public bool AreAnyVisible { get; }
Property Value
Type Description
bool

Methods

View Source

Add(IProcessable)

Adds the object into the pool.

Declaration
public void Add(IProcessable obj)
Parameters
Type Name Description
IProcessable obj

The object to add.

View Source

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.

View Source

GetEnumerator()

Declaration
public IEnumerator<IProcessable> GetEnumerator()
Returns
Type Description
IEnumerator<IProcessable>
View Source

HideAll()

Hides all of the objects.

Declaration
public void HideAll()
View Source

Process()

Processes the objects and features in this pool. This needs to be called every tick.

Declaration
public void Process()
View Source

RefreshAll()

Refreshes all of the items.

Declaration
public void RefreshAll()
View Source

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 Source

ResolutionChanged

Event triggered when the game resolution is changed.

Declaration
public event ResolutionChangedEventHandler ResolutionChanged
Event Type
Type Description
ResolutionChangedEventHandler
View Source

SafezoneChanged

Event triggered when the Safezone size option in the Display settings is changed.

Declaration
public event SafeZoneChangedEventHandler SafezoneChanged
Event Type
Type Description
SafeZoneChangedEventHandler

Implements

IEnumerable<T>
IEnumerable
  • View Source
In this article
Back to top Generated by DocFX