PointClickEngine::Core::SimpleResourceManager
Inherits PointClickEngine::Core::IResourceLoader < PointClickEngine::Core::GameConstants < Reference < Object
Simple resource manager with basic functionality
Constructors
new
SourceInstance methods
add_asset_path(path : String)
Sourcecheck_for_changes
Sourcecleanup_all_resources
Sourcecleanup_unused_resources(max_age_seconds : Float32 = 300.0_f32)
Sourceclear_asset_paths
Sourcedisable_hot_reload
Sourceenable_hot_reload
Sourceget_memory_usage
Sourceget_music(path : String) : RAudio::Music | Nil
Sourceget_resource_count
Sourceget_sound(path : String) : RAudio::Sound | Nil
Sourceget_texture(path : String) : RL::Texture2D | Nil
Sourcehot_reload_enabled?
Sourceload_font(path : String, size : Int32) : Result(Raylib::Font, AssetError)
Sourceload_music(path : String) : Result(RAudio::Music, AssetError)
Sourceload_sound(path : String) : Result(RAudio::Sound, AssetError)
Sourceload_texture(path : String) : Result(Raylib::Texture2D, AssetError)
Sourcepreload_assets(asset_list : Array(String)) : Int32
Sourceset_memory_limit(limit : Int64)
Sourceunload_music(path : String) : Result(Nil, AssetError)
Sourceunload_sound(path : String) : Result(Nil, AssetError)
Sourceunload_texture(path : String) : Result(Nil, AssetError)
Source