indigo.shared

Type members

Classlikes

final
final
class BoundaryLocator(animationsRegister: AnimationsRegister, fontRegister: FontRegister, dynamicText: DynamicText)
Companion
object
Companion
class
object CacheKey
final
final
class FrameContext[StartUpData](val gameTime: GameTime, val dice: Dice, val inputState: InputState, val boundaryLocator: BoundaryLocator, _startUpData: => StartUpData)

The FrameContext is the context in which the current frame will be processed. In includes values that are unique to this frame, and also globally available services.

The FrameContext is the context in which the current frame will be processed. In includes values that are unique to this frame, and also globally available services.

Value Params
boundaryLocator

A service that can be interrogated for the calculated dimensions of screen elements.

dice

A pseudo-random number generator, made predictable / reproducible by being seeded on the current running time.

gameTime

A sampled instance of time that you should use everywhere that you need a time value.

inputState

A snapshot of the state of the various input methods, also allows input mapping of combinations of inputs.

startUpData

A read only reference to any and all data created during start up / set up.

A very, very simple logger that logs to the Browsers console with a few standard headers and the log message.

A very, very simple logger that logs to the Browsers console with a few standard headers and the log message.

sealed
trait Outcome[+A]

An Outcome represents the result of some part of a frame update. It contains a value or an error (exception), and optionally a list of events to be processed on the next frame.

An Outcome represents the result of some part of a frame update. It contains a value or an error (exception), and optionally a list of events to be processed on the next frame.

Companion
object
object Outcome
Companion
class
sealed
Companion
object
object PowerOfTwo
Companion
class
final
class QuickCache[A](cache: HashMap[CacheKey, A])
Companion
object
object QuickCache
Companion
class
sealed
trait Startup[+SuccessType] extends Product with Serializable

The Startup data type describes either a successful or failed start up sequence. It can hold a value, as well as new shaders, animations and fonts to be added to Indigo's registers. A new Startup instance is created each time the setup function is called, at least once, but also on dynamic asset load.

The Startup data type describes either a successful or failed start up sequence. It can hold a value, as well as new shaders, animations and fonts to be added to Indigo's registers. A new Startup instance is created each time the setup function is called, at least once, but also on dynamic asset load.

Companion
object
object Startup
Companion
class
trait ToCacheKey[A]
Companion
object
object ToCacheKey
Companion
class

Types

opaque type CacheKey