Giter Site home page Giter Site logo

infinitycollaborations / riotkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from christopherkarani/riotkit

0.0 1.0 0.0 699 KB

Swift library for the Riot Games developer API

License: MIT License

Ruby 1.52% Swift 14.34% Objective-C 0.12% Shell 0.02% HTML 82.56% CSS 1.36% JavaScript 0.08%

riotkit's Introduction

RiotKit

Build Status codecov.io MIT licensed GitHub version Documentation Twitter Discord

RiotKit is a Swift framework written to serve as a wrapper around the Riot Games API. The API provides access into many of the League of Legends stats/game information including player details and match history.

There is still a ton of work to do, even just creating the models. Some progress has been made, for example - champion data is now pulled, and populated into Champion structs:-

Champion Struct Example

(lldb) po ChampionRequest.champions[67]
▿ Optional<Champion>
  ▿ some : Champion
    - id : 67
    - name : "Vayne"
    - active : true
    - botEnabled : false
    - botMMEnabled : true
    - freeEnabled : false
    - rankedEnabled : true
    - icon : nil
    ▿ championData : Optional<ChampionData>
      ▿ some : ChampionData
        ▿ allytips : 3 elements
          - 0 : "Tumble has many uses, but it cannot pass over walls."
          - 1 : "Condemn can be used to both pin targets to walls to ensure a kill, or to escape a pursuer."
          - 2 : "Don\'t go in first to a large teamfight. Wait for your teammates to initiate."
        - blurb : "..."
        ▿ enemytips : 2 elements
          - 0 : "Vayne is fragile - turn the pressure up on her and she will be forced to play cautiously."
          - 1 : "Deny Vayne the opportunity to pin you against walls."
        - id : 67
        ▿ image : ImageData
          - w : 48
          - full : "Vayne.png"
          - sprite : "champion3.png"
          - group : "champion"
          - h : 48
          - x : 192
        ▿ info : ChampionInfo
          - defense : 1
          - magic : 1
          - difficulty : 8
          - attack : 10
        - key : "Vayne"
        - lore : "..."
        - name : "Vayne"
        - partype : "MP"
        ▿ passive : PassiveSpell
          - sanitizedDescription : "Vayne ruthlessly hunts evil-doers. She gains 30 Movement Speed when moving toward nearby enemy champions."
          - description : "Vayne ruthlessly hunts evil-doers. She gains 30 Movement Speed when moving toward nearby enemy champions."
          - name : "Night Hunter"
          ▿ image : ImageData
            - w : 48
            - full : "Vayne_NightHunter.png"
            - sprite : "passive3.png"
            - group : "passive"
            - h : 48
            - x : 192
        ▿ stats : ChampionStats
          - attackrange : 550.0
          - mpperlevel : 35.0
          - mp : 231.80000000000001
          - attackdamage : 55.880000000000003
          - hp : 498.44
          - hpperlevel : 83.0
          - attackdamageperlevel : 1.6599999999999999
          - armor : 19.012
          - mpregenperlevel : 0.40000000000000002
          - hpregen : 5.4199999999999999
          - critperlevel : 0.0
          - spellblockperlevel : 0.0
          - mpregen : 6.9699999999999998
          - attackspeedperlevel : 4.0
          - spellblock : 30.0
          - attackspeedoffset : -0.050000000000000003
          - crit : 0.0
          - hpregenperlevel : 0.55000000000000004
          - armorperlevel : 3.3999999999999999
        ▿ tags : 2 elements
          - 0 : "Marksman"
          - 1 : "Assassin"
        - title : "the Night Hunter"

Attribution

RiotKit isn't endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing League of Legends. League of Legends and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends © Riot Games, Inc.

riotkit's People

Contributors

hexploitable avatar

Watchers

James Cloos avatar

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.