Skip to content

vulcan-dev/teardown-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teardown API Snippet

deepcode GitHub license Maintenance

Badge for version for Visual Studio Code extension naereen.makefiles-support-for-vscode Badge for version for Visual Studio Code extension naereen.makefiles-support-for-vscode Badge for rating for Visual Studio Code extension naereen.makefiles-support-for-vscode

Repository for my Visual Studio Extension

Teardown-API Snippets

Teardown API Snippets (https://teardowngame.com/modding/api.html)

Example

Example

1.0.0

Initial release

Release 1.0.1

  • Cleaned up code
  • Added description
  • Added examples

Release 1.0.2

  • Updated the snippets I forgot to update

Release 1.0.3

  • 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()

Release 1.0.4

Release 1.0.5

  • Added function descriptions
  • Auto complete now adds the necessary function arguments

Params Params

Release 1.0.6

  • Updated function arguments so it can handle all datatypes. Tabbing also now selects each argument when you create the function

1.0.6 1.0.6

Release 1.3.6

  • Added back init, tick, update, draw functions
  • Added back all functions that don't have arguments

Release 1.3.7

  • Added datatype boolean

Release 1.3.8

  • Updated snippets to suit the new Teardown API to 0.7.0

Other

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)

Installation

[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