PointClickEngine::Scenes::Scene
Inherits YAML::Serializable < Reference < Object
Refactored Scene class using component architecture
Constructors
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Sourcenew(name : String)
Sourcenew
Sourcenew(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
SourceInstance methods
actions_path
Sourceactions_path=(actions_path : String | Nil)
Sourcebackground_renderer
Sourcebackground_renderer=(background_renderer : BackgroundRenderer | Nil)
Sourcebackground_scaling_mode
Sourcebackground_scaling_mode=(value : String)
Sourcecharacters
Sourcecharacters=(characters : Array(Characters::Character))
Sourcedefault_transition_duration
Sourcedefault_transition_duration=(default_transition_duration : Float32)
Sourceenable_camera_scrolling
Sourceenable_camera_scrolling=(enable_camera_scrolling : Bool)
Sourceenable_pathfinding
Sourceenable_pathfinding=(enable_pathfinding : Bool)
Sourceexit
Sourcefind_path(start_x : Float32, start_y : Float32, end_x : Float32, end_y : Float32) : Array(Raylib::Vector2) | Nil
Pathfinding (delegates to NavigationManager)
get_character(name : String) : Characters::Character | Nil
Sourceget_character_at(point : RL::Vector2) : Characters::Character | Nil
Sourceget_character_scale(y_position : Float32) : Float32
Sourceget_hotspot_at(point : RL::Vector2) : Hotspot | Nil
Sourcehighlight_hotspots
Sourcehighlight_hotspots=(highlight_hotspots : Bool)
Sourcehotspot_manager
Sourcehotspot_manager=(hotspot_manager : HotspotManager | Nil)
Sourcehotspots
Sourcehotspots=(hotspots : Array(Hotspot))
Sourceis_area_walkable?(center : RL::Vector2, size : RL::Vector2, scale : Float32 = 1.0) : Bool
Sourceload_background(path : String, scale : Float32 = 1.0)
Background management (delegates to BackgroundRenderer)
load_background(path : String, original_path : String, scale : Float32 = 1.0)
Sourcelogical_height
Sourcelogical_height=(value : Int32)
Sourcelogical_width
Sourcelogical_width=(value : Int32)
Sourceon_exit
Sourceon_exit=(on_exit : Proc(Nil) | Nil)
Sourceplayer
Sourceplayer=(player : Characters::Character | Nil)
Sourceplayer_name_for_serialization
Sourceplayer_name_for_serialization=(player_name_for_serialization : String | Nil)
Sourceremove_hotspot(name : String) : Bool
Sourceremove_hotspot(hotspot : Hotspot) : Bool
Sourcescale
Sourcescale=(scale : Float32)
Sourcescene_effects
Sourcescene_effects=(scene_effects : Array(Graphics::Effects::SceneEffects::BaseSceneEffect))
Sourcescript_path
Sourcescript_path=(script_path : String | Nil)
Sourcescript_runner=(script_runner : Actions::ActionRunner | Nil)
Script runner for action sequences
set_player(player : Characters::Character)
Sourcewalkable_area
Sourcewalkable_area=(walkable_area : WalkableArea | Nil)
Source