util library

Classes

Array2<T>
A 2D fixed-size array of elements of type T
CharCode
Unicode code points for various special characters that also exist on code page 437.
Direction
InputBase
Base class for defining high-level logical inputs (e.g., "interact" or "move north")
Rect
Immutable 2D rectangle with integer position and size. Note that a Rect can be constructed with negative size values; this will be handled properly.
Rng
Tuple2<N, M>
Basic 2-length tuple (ordered pair)
Tuple4<I, J, K, L>
TupleBase
Vec2
Standard 2D vector
VectorBase
Base class of an immutable 2D vector or direction

Enums

CompassDirection
All standard compass directions that can be represented by "unit" vectors (ignoring the fact that in an integer grid-based game, the intercardinal directions aren't true unit vectors). Also includes a none direction for convenience.

Properties

rng Rng
Globally available random number generator; uses a new seed each startup
final