TimeProviders#

Property in WaterRenderer

Loosely a stack for time providers.

The last WaterRenderer.TimeProvider in the list is the active one. When a WaterRenderer.TimeProvider gets added to the stack, it is bumped to the top of the list. When a WaterRenderer.TimeProvider is removed, all instances of it are removed from the stack. This is less rigid than a real stack which would be harder to use as users have to keep a close eye on the order that things are pushed/popped.

Declaration#

public Stack<ITimeProvider> TimeProviders { get; }