- Added
defaultTraces
- Changed some of the errors so they are logged, not thrown
- Added
setByPackage, which sets multiple classes in a package (not available ifDISABLED_MACRO_SUPERLATIVEis defined) - Added
classNameargument tocall, to improve backward compatibility
- Reworked
traces, iftrue, logs will now show the SScript instance the error came from, the error itself, the called function's name and the arguments passed to it toStringmethod is now public and modified, it now displays the script's file name (or itsIDif the script was created without a file)- In
set,setClass, andsetClassString, the setAsFinal argument now defaults tonull. When the object being set is a class andsetAsFinalisnull,setAsFinalwill automatically be set totrue
- Fixed multiple typos across the documentation
- Removed dead code that supposedly added support for Haxe 2
- SScript doesn't support Haxe 2 or 3
- Fixed C# compilation error (error CS1002)
- Optimized
forloops
- Added Static Extensions, with some limitations
presetteris replaced withpresetMode
- Some micro optimizations
- You can now edit the properties of special objects in scripts
- Fixed the
Special object cannot be an enum constructorerror showing up even if the special object is not an enum constructor
- Special objects now supports Classes and Enums
- Added
removeSpecialObject
- Special object system has been highly optimized
- Fixed backward compatibility
- Fixed grammar issues in README
- Added
FULLas a Preset mode - Added more backward compatibility
- You can now use
inwhile importing with alias
- Default preset mode is now
REGULAR
- Added partial backward compatibility for older SScript versions
- Optimized a lot of code
- Fixed freezing issues
- Fixed grammar issues
unsethas been renamed toremove- The improved field system is now disabled by default
- Removed
fileNamefrom function calls; usescriptFileinstead
- Fixed
Unexpected <eof>error
- Removed all broken features and unnecessary restrictions to avoid confusion and future headaches
- Classes
- Enum abstracts
public,static, andprivatekeywords- Parsing that was too strict for its own good
- Added
lastFunctionCall, which stores the most recent successful (or unsuccessful) function call
- Fixed string interpolation
- Moved SScript files to
hscriptand HScript files tohscriptBase - Removed every mention of "Tea"; SScript instances are now referred to as "scripts"
defaultFunnow accepts arguments
Note: SScript's history and versioning system is a mess (honestly the entire library is), so I am hoping to fix it in this update. Everything that made SScript bad and unusable is removed and SScript goes back to its core, being a HScript fork. From now on, SScript will use the Semantic Versioning system properly and I will fix any bugs I find.