WurstScript
WurstScript copied to clipboard
Programming language and toolkit to create Warcraft III Maps
The following is valid vJass: ``` method operator title takes nothing returns string return .titleText endmethod ``` Which allows you to do something like `let f = Struct.title`. This throws...
eg: config the Printing.wurst#print config the Printing.wurst#printLog
Let's use the following `enum` as an example: ``` public enum AreaType WOODLAND SNOWY ``` The compiler will associate `0` with `WOODLAND` and `1` with `SNOWY`. The compiler complains if...
like kotlin ``` switch foo case 1 //todo exist like now case 2 -> //todo but in one line like closure in 3..5 //todo when foo >= 3 and foo...
The following ``` package Test import LinkedListModule class A use LinkedListModule class B extends A use LinkedListModule class C extends A class D extends C use LinkedListModule function doSmth() for...
Hi, is it possible to add final modifier? Sometimes i want add methods which should not be changed for children.
This is just an idea to restructure the internal Wurst code, nothing about Wurst language features. Restructure intermediate language to allow for unstructured control flow (`goto`) and remove ifs/loops. Then...
The problem was that there was a copy of Fx.wurst in lib/ and one in lib/presets/ Clever as ever the compiler just took the one from the rootpath and was...
E.g.: @ifNotDefined rect udg_main_area = null If `udg_main_area` is defined somewhere else (typically in war3map.j) then the above definition is not used. This issue came to be as per the...
The 1.29 patch introduced modulo (`%`) to Jass. Will this functionality be more thoroughly supported by Wurst in the future? ```jass // Jass local real r = 5 % 3...