LazyStack<T> Class

Summary

A simple stack implementation that tracks an active index without actually adding or removing objects.
Assembly
Animancer.dll
Namespace
Animancer
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["LazyStack<T>"] class Type type-node

Syntax

public class LazyStack<T> where T : new()

Type Parameters

Name Description
T

Constructors

Name Summary
LazyStack() Creates a new Animancer.LazyStack`1 with a default internal list capacity of 16.
LazyStack(int) Creates a new Animancer.LazyStack`1 with the specified internal list capacity.

Properties

Name Value Summary
Current T
The object currently on the top of the stack.

Methods

Name Value Summary
Decrement() void
Moves to the previous object in the stack.
Increment() T
Moves to the next object in the stack.