-
-
Notifications
You must be signed in to change notification settings - Fork 0
StackableListPopResults
Eric Lowry edited this page Aug 7, 2024
·
2 revisions
Namespace: Lowry.Utils.CodeExtensions
public readonly struct StackableListPopResults<T>
Used to indicate when a StackableList.Pop(T) method call resulted in the item being:
- Removed from the top, and the top spot taken by another item.
- Removed from the top, but the list is now empty.
- Removed from anywhere but the top of the list.
- Not found in the list.
public T item { get {...} }
Used to store the new item at the top of the StackableList if the item that was StackableList.Pop(T)ed was previously at the top.
public StackableList<T>.PopResult result{ get {...} }
Used to store the type of result a StackableList.Pop(T) action resulted in in the form of a StackableList.PopResult.
public StackableListPopResults (T item_, StackableList<T>.PopResult result_) {...}
public string ToString () {...}
Returns: a human-readable string representing the object.
👉🏻 Download InputLayers on the Unity Asset Store!