class

GSDL::Scene

Inherits GSDL::Loadable < Reference < Object

Constructors

new(name : Symbol = :base, transition_in : Transition | Nil = nil, transition_out : Transition | Nil = nil, switch_data : SwitchData | Nil = nil)
Source

Class methods

loading_scene_class(target_scene_class : T.class, data : SwitchData | Nil = nil) : LoadingSceneBase forall T
Source

Instance methods

add_child(entity : Entity)
Source
camera
Source
destroy
Source
draw(draw : Draw)
Source
draw_camera_view(draw : Draw)
Source
draw_screen_overlay(draw : Draw)
Source
entities
Source
exit
Source
exit?
Source
exit_with_transition
Source
hud=(hud : HUD | Nil)
Source
init
Source
name
Source
pause_scene
Source
pause_scene=(pause_scene : Scene | Nil)
Source
remove_child(entity : Entity)
Source
reset
Source
save_snapshot
Source
switch_data
Source
switch_data=(switch_data : SwitchData | Nil)
Source
transition_in
Source
transition_in=(transition_in : Transition)
Source
transition_out
Source
transition_out=(transition_out : Transition)
Source
transparent=(transparent : Bool)

Whether to draw scenes below this one

Source
transparent?

Whether to draw scenes below this one

Source
update(dt : Float32)
Source
update_underlying=(update_underlying : Bool)

Whether to update scenes below this one (e.g. for pause overlays)

Source
update_underlying?

Whether to update scenes below this one (e.g. for pause overlays)

Source
z_index
Source
z_index=(z_index : Int32)
Source