abstract struct GameScene::BaseScene

Overview

Provides some default commands for game scenes

Direct Known Subclasses

Defined in:

game_scene/base_scene.cr

Instance Method Summary

Instance methods inherited from struct Scene

commands(state : State) : Array(Command) commands, initialize initialize, persist_scene_state(state : State) : State persist_scene_state, render(state : State) render, run(state : State) : Tuple(Scene, State) | Nil run

Constructor methods inherited from struct Scene

new new

Instance Method Detail

def commands(state : State) : Array(Command) #
Description copied from struct Scene

Returns an ordered list of commands available to the user. These commands will be displayed after the scene description produced in #render


[View source]