Skip to content

Commit

Permalink
Add comments to 3 functions in funkin.Assets
Browse files Browse the repository at this point in the history
  • Loading branch information
AbnormalPoof authored and EliteMasterEric committed Feb 18, 2025
1 parent 6795c33 commit c06d794
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions source/funkin/Assets.hx
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,31 @@ class Assets
return openfl.utils.Assets.list(type);
}

/**
* Checks if a library with the given name exists.
* @param name The name to check.
* @return Whether or not the library exists.
*/
public static function hasLibrary(name:String):Bool
{
return openfl.utils.Assets.hasLibrary(name);
}

/**
* Retrieves a library with the given name.
* @param name The name of the library to get.
* @return The library with the given name.
*/
public static function getLibrary(name:String):lime.utils.AssetLibrary
{
return openfl.utils.Assets.getLibrary(name);
}

/**
* Loads a library with the given name.
* @param name The name of the library to load.
* @return An `AssetLibary` object.
*/
public static function loadLibrary(name:String):Future<openfl.utils.AssetLibrary>
{
return openfl.utils.Assets.loadLibrary(name);
Expand Down

0 comments on commit c06d794

Please sign in to comment.