Skip to content

OSTW v1.3 - Lambdas!

Choose a tag to compare

@ItsDeltin ItsDeltin released this 05 Apr 05:24
· 1328 commits to master since this release

The wiki has been updated, check it out!

  • Lambda support
    • Wiki page
    • Type arrays now have the functions FilteredArray, SortedArray, IsTrueForAny, IsTrueForAll which uses a lambda so you no longer need to cast ArrayElement.
  • 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.
  • New functions:
    • All Tank Heroes
    • All Support Heroes
    • All Damage Heroes
    • DestroyDummyBot(dummy): Shorthand for DestroyDummyBot(TeamOf(dummy), SlotOf(dummy))
  • Renamed functions:
    • ResetHeroRoster -> ResetHeroAvailability
    • SetHeroRoster -> SetAllowedHeroes
  • Added DotProduct to the Vector type.
  • Improved localized string performance.
  • Reduced element count of creating pathmaps.
  • Fixed general settings output.
  • Fixed the Health setting being missing for all heroes.
  • Fixed calling this in 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, and Map enums. (#121)

VSCode Extension

  • Element counter
  • Notification when a new OSTW verison releases.