Table of Contents

Namespace Luny

Classes

Counter

A stateful manager for discrete integer counts (e.g., frames or heartbeats). Supports auto-repeat and progress tracking.

LunyBridgeException

Exception thrown when a bridging exception occurs in the Luny framework, such as initializing a proxy object with a null reference.

LunyEngine

LunyEngine singleton discovers and manages engine services and observers.

LunyException

Base class for all exceptions thrown by the Luny framework.

LunyLifecycleException

Exception thrown when a lifecycle-related error occurs in the Luny framework, such as singleton duplication or unexpected adapter removal.

LunyLogger

Engine-agnostic logger entry point. Delegates to an installable engine-specific logger. Default fallback logs to console until an engine replaces it. Also provides internal logging system for Luny-specific logs (opt-in).

LunyServiceException

Exception thrown when a service-related error occurs in the Luny framework, such as service not found or invalid service interface implementation.

LunyTraceLogger
SystemDoubleExtensions
SystemStringExtensions
SystemTypeExtensions
Table

Dictionary-based variable storage.

Table.ScalarVarHandle
Table.VarHandle
Table.VarHandle<T>
Timer

A stateful manager for a countdown or count-up. Supports pausing, time-scaling, and auto-repeat.

VariableChangedArgs

Structs

Alarm

A lightweight readonly struct representing a fixed point in the future. Used for high-performance polling in update loops.

LogEntry

Represents a single log entry in the internal Luny logging system. Uses FrameCount and ElapsedSeconds instead of DateTime for precise game-time tracking.

Number

A primitive type that wraps a double and provides implicit conversions from and to various types.

Stopwatch

A lightweight readonly struct that records a point in time to measure duration.

Variable
Variable<T>

Interfaces

ILunyEngine

See implementation: LunyEngine

ILunyEngineObserver

Lifecycle observer interface. To be implemented by observers of LunyEngine which wish to receive the engine-agnostic lifecycle callbacks.

ILunyLogger
ILunyObjectRegistry
ILunyObserverRegistry
ILunyServiceRegistry
ILunyServiceRegistryInternal
ITable

Dictionary-based variable storage..

Enums

LogLevel

Log message severity levels.

LunyEngineLifecycleEvents

LunyScript lifecycle events.

Variable.ValueType
Variable<T>.ValueType