OSTW v1.3 - Lambdas!
The wiki has been updated, check it out!
- Lambda support
- Wiki page
- Type arrays now have the functions
FilteredArray,SortedArray,IsTrueForAny,IsTrueForAllwhich uses a lambda so you no longer need to castArrayElement.
- Fixed bugs with subroutines, recursive, and virtual functions.
- The subroutine, virtual, and recursive attributes can now all be used together without issues.
- Subroutines now property support parameters.
- Subroutines can now have an attribute to determine the context of the variables defined inside the subroutine, see the subroutine wiki.
- Functions that override the same function can now call each other recursively properly now.
- Variables defined in recursive functions now have a stack.
- Virtual subroutines will put all overriders into the subroutine.
- Functions overriding recursive functions are now also recursive.
- Json support (Thanks @pielover928)
- Import json files:
import "myJsonFile.json" as myJson. - Properties can be accessed:
myJson.property.
- Import json files:
- New functions:
All Tank HeroesAll Support HeroesAll Damage HeroesDestroyDummyBot(dummy): Shorthand forDestroyDummyBot(TeamOf(dummy), SlotOf(dummy))
- Renamed functions:
ResetHeroRoster->ResetHeroAvailabilitySetHeroRoster->SetAllowedHeroes
- Added
DotProductto theVectortype. - Improved localized string performance.
- Reduced element count of creating pathmaps.
- Fixed general settings output.
- Fixed the
Healthsetting being missing for all heroes. - Fixed calling
thisin expression trees. (#135) - Fixed pathfinding variables being assigned even is pathfinding isn't used in a project. (#112)
- Fixed issue with the
Hero,Team,Gamemode, andMapenums. (#121)
VSCode Extension
- Element counter
- Notification when a new OSTW verison releases.