Skip to content

Releases: macohi/sinlib

0.0.3

Choose a tag to compare

@macohi macohi released this 22 Feb 20:05

0.0.3 - 2/22/2025

Changed

  • FileManager version is now 9.7
    - Automatic asset localization is now possible
    - exists is a function checking for if an asset exists in the game's asset folder

0.0.2

Choose a tag to compare

@macohi macohi released this 09 Feb 14:00
7300acb

0.0.2 - 2/9/2025

Fixed

  • 0.0.1 Changelog date

Removed

  • Random enter spaces in the changelog
  • SLBase.hx

Changed

  • Haxelib description

Added

  • Arrays - A utility class with quality of life functions related to arrays
    - listFromString - Returns an array created from a string
  • SLGame - A utility class with quality of life functions that aren't in FlxG
    - isDebug - Tells if your game is in a debug build
    - isWatch - Tells if your game is in a watch build
  • UnitTesting - A utility class which is supposed to be like unit testing for haxe
    - testDynamicReturn - Checks if func returns expectedValue
    - testBoolReturn - Uses testDynamicReturn to check if func returns expectedValue
    - testStringReturn - Uses testDynamicReturn to check if func returns expectedValue
    - testIntReturn - Uses testDynamicReturn to check if func returns expectedValue
    - testFloatReturn - Uses testDynamicReturn to check if func returns expectedValue

What's Changed

  • 0.0.2 merge by @sphis-Sinco in #2

Full Changelog: 0.0.1...0.0.2

0.0.1

Choose a tag to compare

@macohi macohi released this 09 Feb 13:50
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