Repository for my Visual Studio Extension
Teardown API Snippets (https://teardowngame.com/modding/api.html)
Initial release
Added function init()
Added function tick(dt)
Added function update(dt)
Added function draw()
When doing UiPush(), UiPop() will also get created and you cursor will be in between those two functions
UiPush()
...
UiPop()
I did try doing this for Sublime Text 3 but it doesn't allow multiline descriptions so I don't see the point because you'll have to go to the teardown website (I made this so you don't have to do that)
[1] Run the code from api.js on this website
[2] Copy the object from the return result
[3] Paste that inside of data.json inside of src/
[4] Run : python fix-json.py
[5] This will create an output.json file in the src/ directory. From there you can do what you'd like
Thanks to Thomasims for helping with the scraping part with JS
Thanks to Cammy for helping me make an automated JSON fixer so I can parse the JSON