Repository for my Visual Studio Extension
Teardown API Snippets (https://teardowngame.com/modding/api.html)
Initial release
- Cleaned up code
- Added description
- Added examples
- Updated the snippets I forgot to update
-
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()
- Added icon
- Added git repository
- Cleaned up file structure
- Added function descriptions
- Auto complete now adds the necessary function arguments
- Updated function arguments so it can handle all datatypes. Tabbing also now selects each argument when you create the function
- Added back init, tick, update, draw functions
- Added back all functions that don't have arguments
- Added datatype boolean
- Updated snippets to suit the new Teardown API to 0.7.0
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