class

PointClickEngine::Core::SimpleResourceManager

Inherits PointClickEngine::Core::IResourceLoader < PointClickEngine::Core::GameConstants < Reference < Object

Simple resource manager with basic functionality

Constructors

Instance methods

add_asset_path(path : String)
Source
check_for_changes
Source
cleanup_all_resources
Source
cleanup_unused_resources(max_age_seconds : Float32 = 300.0_f32)
Source
clear_asset_paths
Source
disable_hot_reload
Source
enable_hot_reload
Source
get_memory_usage
Source
get_music(path : String) : RAudio::Music | Nil
Source
get_resource_count
Source
get_sound(path : String) : RAudio::Sound | Nil
Source
get_texture(path : String) : RL::Texture2D | Nil
Source
hot_reload_enabled?
Source
load_font(path : String, size : Int32) : Result(Raylib::Font, AssetError)
Source
load_music(path : String) : Result(RAudio::Music, AssetError)
Source
load_sound(path : String) : Result(RAudio::Sound, AssetError)
Source
load_texture(path : String) : Result(Raylib::Texture2D, AssetError)
Source
preload_assets(asset_list : Array(String)) : Int32
Source
set_memory_limit(limit : Int64)
Source
unload_music(path : String) : Result(Nil, AssetError)
Source
unload_sound(path : String) : Result(Nil, AssetError)
Source
unload_texture(path : String) : Result(Nil, AssetError)
Source