Giter Site home page Giter Site logo

api's People

Contributors

ark120202 avatar doctorgester avatar lolleko avatar mnoya avatar perryvw avatar psychonic avatar shushishtok avatar sinz163 avatar sinzbot avatar trildar avatar wouterz90 avatar zapp-brannigan-dota avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api's Issues

Get all dump/data in JSON format

Doing this will allow us to expand this project in the future more easily and allows us to host a website on this repository itself

  • Server Lua dumps
  • Client Lua dumps
  • Panorama CSS properties
  • Panorama Panel properties
  • Panorama Javascript API
  • Panorama Enums
  • Panorama Events

Incorrect datatypes in dota.d.ts

  1. PingMinimapAtLocation(vec3)
  2. SetCameraTargetPosition(vec3)
  3. EnableAliMode(offsetVal)
  4. CustomUIConfig(): Object
    1. Probably should be any to just kill any attempt at intellisense, its designed to be a javascript hack
  5. GetTeamDetails
    1. Needs a proper return type definition
  6. GetLocalPlayerInfo
    1. Needs a proper return type definition
  7. GetPlayerInfo
    1. Needs a proper return type definition
  8. GetMapInfo
    1. Needs a proper return type definition

Dump generation

  • cl_panorama_script_help_2 (Crashes the game currently)
  • script_help2
  • cl_script_help2
  • dump_panorama_css_properties
  • dump_panorama_events
function DumpObjectIndented(obj, indent)
{
  var result = "";
  if (indent == null) indent = "";

  for (var property in obj)
  {
    var value = obj[property];
    if (typeof value == 'string')
      value = "'" + value + "'";
    else if (typeof value == 'object')
    {
      if (value instanceof Array)
      {
        // Just let JS convert the Array to a string!
        value = "[ " + value + " ]";
      }
      else
      {
        // Recursive dump
        // (replace "  " by "\t" or something else if you prefer)
        var od = DumpObjectIndented(value, indent + "  ");
        // If you like { on the same line as the key
        //value = "{\n" + od + "\n" + indent + "}";
        // If you prefer { and } to be aligned
        value = "\n" + indent + "{\n" + od + "\n" + indent + "}";
      }
    }
    result += indent + "'" + property + "' : " + value + ",\n";
  }
  return result.replace(/,\n$/, "");
}

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.