Giter Site home page Giter Site logo

klesun-misc / dota-lua-typedefs Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 143 KB

A type definitions .lua file with Dota 2 global variables, classes and functions. Generated from valve's documentation. And the script it was generates with.

Lua 98.91% JavaScript 1.09%
typedefs dota2

dota-lua-typedefs's Introduction

This is Lua function/class/constant/vars definition generated from valve's documentation.

Add dota_typedefs.lua file somewhere inside your project and your IDE should start suggesting you completions and "Go To Definition"-s for functions like GameRules:ShowGenericPopup(). But make sure not to actually require this file in your code, cuz it would overwrite global variables.

Tested using IDEA with EmmyLua plugin.

To generate new file, you can go to https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Scripting/API, press F12, paste code from scrap_docs_and_make_typedefs.js. This will output you an array of lines of code. You right-click on it, press "Store as global variable" (in Chrome), then type copy(temp1.join('\n')). This will copy the code into you clipboard. Now you can paste it in a text editor and save the file as dota_typedefs.lua.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.