RoR2-ChensHelpers

Contains simple and useful helpers for RoR2 mod creators to use. Mainly caters to Chen's mods.

View on GitHub

ChensHelpers

Chen.Helpers.UnityHelpers.ListProcessor<T>

ListProcessor<T>.Process(T) Method

A method the contains the main processing logic. It is required to be implemented by the child class.
This method returns a boolean that determines the outcome of the item from the list.
Returning true will dispose of the item. Returning false will put the item back at the end of the queue.

protected abstract bool Process(T item);

Parameters

item T
Item that was dequeued from the list

Returns

System.Boolean
Return true to send a signal of a successful processing, false otherwise.