Skip to content

0.0.1

Choose a tag to compare

@macohi macohi released this 09 Feb 13:50
· 15 commits to main since this release
3034584

0.0.1 - 2/8/2025

Added

  • Application - A utility class to make referencing lime.app.Application.current.meta easier and it's values.
    - META - Application.current.meta
    • BUILD - Application.current.meta.get('build')
    • COMPANY - Application.current.meta.get('company')
    • FILE - Application.current.meta.get('file')
    • NAME - Application.current.meta.get('name')
    • PACKAGE_NAME - Application.current.meta.get('packageName')
    • VERSION - Application.current.meta.get('version')
  • TryCatch - A utility class used in another Sinco project brought to sinlib and improved upon
    • TryCatchParameters - A typedef with fields used in the paramaters argument.
      • errFunc - A dynamic value
      • traceErr - A bool value which controls if you get error traces or not.
    • TryCatch - The main Class.
      • tryCatch - This function is purely to clean up your code with all the try catch statements you are trying to use.
        • func - the function you are trying to run
        • paramaters (optional) - optional paramaters for the tryCatch. (uses TryCatchParameters)
  • FileManager - A utility class used in previous Sinco projects
    • FileManager - Main Class
      • FILE_MANAGER_VERSION - this is the amount of times ive used this script and changed it a bit in which the changes can be used in other games. Current value is 9.1
      • SOUND_EXT - variable to control your default sound file extension. Default is "wav".
      • getPath - Function to return a path
      • getAssetFile - Function to return an assets/$file
      • SCRIPT_EXT - variable to control the extention of script files. Default is "lb1" if SCRIPT_FILES is enabled.
      • getScriptFile - Function to return assets/data/scripts/$file if SCRIPT_FILES_IN_DATA_FOLDER otherwise returns assets/scripts/$file only if SCRIPT_FILES is enabled
      • getDataFile - Function to return assets/data/$file
      • getImageFile - Function to return assets/images/$file.png
      • getSoundFile - Function to return assets/$file.$SOUND_EXT. You have to specify the sound folder.
      • writeToPath - Writes to a file or path using sys
      • readFile - Read a file using lime.utils.Assets and a try catch function
      • getJSON - Reads a file that SHOULD BE A JSON, using readFile
      • readDirectory - Reads a directory if sys via FileSystem.readDirectory
    • PathTypes - enum abstract with only 1 var:
      • DEFAULT - blank string because most projects don't have their file structure as like assets/default/ instantly

What's Changed

  • 0.0.1 merge by @sphis-Sinco in #1

New Contributors

  • @sphis-Sinco made their first contribution in #1

Full Changelog: https://github.com/sphis-Sinco/sinlib/commits/0.0.1