Repository navigation
Releases: macohi/sinlib
Releases · macohi/sinlib
Release list
0.0.3
0.0.2
0.0.2 - 2/9/2025
Fixed
0.0.1Changelog 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 stringSLGame- A utility class with quality of life functions that aren't inFlxG
-isDebug- Tells if your game is in a debug build
-isWatch- Tells if your game is in a watch buildUnitTesting- A utility class which is supposed to be like unit testing for haxe
-testDynamicReturn- Checks iffuncreturnsexpectedValue
-testBoolReturn- UsestestDynamicReturnto check iffuncreturnsexpectedValue
-testStringReturn- UsestestDynamicReturnto check iffuncreturnsexpectedValue
-testIntReturn- UsestestDynamicReturnto check iffuncreturnsexpectedValue
-testFloatReturn- UsestestDynamicReturnto check iffuncreturnsexpectedValue
What's Changed
- 0.0.2 merge by @sphis-Sinco in #2
Full Changelog: 0.0.1...0.0.2
0.0.1
0.0.1 - 2/8/2025
Added
Application- A utility class to make referencinglime.app.Application.current.metaeasier and it's values.
-META-Application.current.metaBUILD-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 uponTryCatchParameters- A typedef with fields used in theparamatersargument.errFunc- AdynamicvaluetraceErr- Aboolvalue 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 runparamaters(optional) - optional paramaters for the tryCatch. (usesTryCatchParameters)
FileManager- A utility class used in previous Sinco projectsFileManager- Main ClassFILE_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 is9.1SOUND_EXT- variable to control your default sound file extension. Default is "wav".getPath- Function to return a pathgetAssetFile- Function to return anassets/$fileSCRIPT_EXT- variable to control the extention of script files. Default is "lb1" ifSCRIPT_FILESis enabled.getScriptFile- Function to returnassets/data/scripts/$fileifSCRIPT_FILES_IN_DATA_FOLDERotherwise returnsassets/scripts/$fileonly ifSCRIPT_FILESis enabledgetDataFile- Function to returnassets/data/$filegetImageFile- Function to returnassets/images/$file.pnggetSoundFile- Function to returnassets/$file.$SOUND_EXT. You have to specify the sound folder.writeToPath- Writes to a file or path usingsysreadFile- Read a file usinglime.utils.Assetsand a try catch functiongetJSON- Reads a file that SHOULD BE A JSON, usingreadFilereadDirectory- Reads a directory ifsysviaFileSystem.readDirectory
PathTypes- enum abstract with only 1 var:DEFAULT- blank string because most projects don't have their file structure as likeassets/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