• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

TypeScript for Code Resources?

Status
Not open for further replies.
With the current resource system I'm not sure how uploading pure TypeScript code would work. Distributing TypeScript demo maps with the compiled Lua would work for showcasing, however the changes would be overwritten when saving in the editor. Also, the compiled Lua wouldn't be very portable. TypeScript resources would essentially only work in maps that are already using TypeScript. You might be able to get them to work maps that are already using Lua with some manual work though.

You can publish your TS code to NPM and projects can use that code by adding it to their project dependencies (npm install package-name for example). I guess when uploading a spell or system you can simply explain that in the installation instructions.

For people who are interested in how this works, you can take a look at the Warcraft III TypeScript Template: cipherxof/wc3-ts-template
 
Last edited:
Status
Not open for further replies.
Top