Deleted member 219079
D
Deleted member 219079
I dunno if there's anyone with the source code of jasshelper in the business anymore, but here's a list of possible improvements/changes 
Better coding environment:
Will add more when comes in mind
Better coding environment:
- When you start typing e.g. after
call, the editor would open up a list of functions, including your own functions.
Smart recommendations: This list would of course exclude the functions that could not be used in that connection, e.g.set myGlobalUnit =would only recommend functions that return unit.
List open hotkey: Control + space would force the list to show up.
Non-functions included: When the context is right, the list could also include globals and vanilla globals. - Less JASS2-like syntax, e.g.
static method create takes nothing returns thistype-->static thistype ()andprivate method destroy takes nothing returns nothing-->private void destroy (). Also the curly brackets would be nice
- Link parsing: When control is hold, website links in the trigger would get blue and underlined. When clicked while control is hold, it would open the link in the system's default browser.
- Module arguments, for example
implement MyModule(myUnit,myPlayer), when referring tomodule MyModule takes unit u, player p.
Constant requirement: When the moduletakes constant unit u, constant player p, it would only accept constant values. - Read only - globals,
readonly unit U. Libraries/scopes outside of the library/scope couldn't reassign the global, but could still read the value. -
So if you happen to use Nes' UI instead of the Perfect Unit Indexer, you could add such thing at the beginning of the trigger.JASS:
inline GetUnitIndex takes unit u returns integer GetUnitId(u) endinline unit myGlobalUnit-->public unit myGlobalUnitandprivate unit myGlobalUnit-->unit myGlobalUnit, members/globals/methods should be private by default.
Will add more when comes in mind


