GithubHelp home page GithubHelp logo

sanjosolutions / compatibility Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 44 KB

A library which serves as a compatibility layer for different versions of the game (retail, WotLK and vanilla). This allows developers to call the same APIs in the different versions of the game.

Home Page: https://www.patreon.com/addons_by_sanjo

License: MIT License

Lua 100.00%
wow wow-addon wow-addon-lib

compatibility's Introduction

Compatibility

A library which serves as a compatibility layer for different versions of the game (retail, WotLK and vanilla). This allows developers to call the same APIs in the different versions of the game.

Included functions

  • Compatibility.isRetail a function which returns true when the game is the retail version of the game.
  • Compatibility.isWotLK a function which returns true when the game is the WotLK version of the game.
  • Compatibility.isVanilla a function which returns true when the game is the vanilla version of the game.
  • Compatibility.isMajorVersion a function which returns true when the major version of the game equals the give major version.
  • Compatibility.isMajorVersionAtOrAbove a function which returns true when the major version is at or above the given major version.
  • Compatibility.determineMajorVersion a function which returns the major version.

Container

  • Compatibility.Container.retrieveItemInfo: a function which returns information about an item in a container.
  • Compatibility.Container.receiveNumberOfSlotsOfContainer: a function which returns the number of slots of a container.
  • Compatibility.Container.UseContainerItem: a function for using a container item.
  • Compatibility.Container.receiveNumberOfFreeSlotsInContainer: a function that returns the number of free slots in a container.

GossipInfo

There seem to be different dialogs. Either based on "GossipInfo" or "Quests".

  • Compatibility.GossipInfo.retrieveAvailableQuests: a function that returns the available quests.
  • Compatibility.GossipInfo.retrieveActiveQuests: a function that returns the active quests.
  • Compatibility.GossipInfo.selectAvailableQuest: a function to select an available quest.
  • Compatibility.GossipInfo.hasGossipOptions: a function that checks if there are gossip options.
  • Compatibility.GossipInfo.retrieveOptions: a function for retrieving the options. Only implemented for retail.
  • Compatibility.GossipInfo.hasAvailableQuests: a function that checks if there are available quests.
  • Compatibility.GossipInfo.selectActiveQuest: a function for selecting an active quest.
  • Compatibility.GossipInfo.selectOption: a function for selection an option. Only implemented for retail.

QuestLog

  • Compatibility.QuestLog.retrieveInfo: a function for retrieving quest info by index.
  • Compatibility.QuestLog.isFailed: a function which checks if a quest is failed.
  • Compatibility.QuestLog.isComplete: a function which checks if a quest is complete.
  • Compatibility.QuestLog.isOnQuest: a function which checks if a character is on a quest.
  • Compatibility.QuestLog.retrieveNumberOfQuestLogEntries: a function which returns the number of quest log entries.
  • Compatibility.QuestLog.retrieveIndexForQuestID: a function which returns the index of a quest.
  • Compatibility.QuestLog.isQuestFlaggedCompleted: a function which checks if a quest is flagged completed.
  • Compatibility.QuestLog.SetAbandonQuest: a function for setting the quest to abandon.
  • Compatibility.QuestLog.AbandonQuest: a function for abandoning the quest that has been set with Compatibility.QuestLog.SetAbandonQuest.

Quests

There seem to be different dialogs. Either based on "GossipInfo" or "Quests".

  • Compatibility.Quests.retrieveAvailableQuests: a function for retrieving available quests.
  • Compatibility.Quests.selectAvailableQuest: a function for selecting an available quest.
  • Compatibility.Quests.retrieveActiveQuests: a function for retrieving the active quests.
  • Compatibility.Quests.selectActiveQuest: a function for selecting an active quest.

TaskQuest

  • Compatibility.TaskQuest.retrieveQuestsOnMap: a function for retrieving the quests on a map.

You can support me on Patreon.

How to use

Please see "How to use Library" for how to use this library.

compatibility's People

Contributors

sanjosolutions avatar

Stargazers

 avatar  avatar

Watchers

 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.