https://github.com/itssimple/overwolf-get-supported-features
A small plugin to get the supported features for all games
https://github.com/itssimple/overwolf-get-supported-features
overwolf
Last synced: over 1 year ago
JSON representation
A small plugin to get the supported features for all games
- Host: GitHub
- URL: https://github.com/itssimple/overwolf-get-supported-features
- Owner: itssimple
- License: mit
- Created: 2020-06-11T10:40:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-07T13:04:44.000Z (about 5 years ago)
- Last Synced: 2024-05-01T15:03:59.371Z (about 2 years ago)
- Topics: overwolf
- Language: JavaScript
- Size: 85 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Overwolf - Get supported features
This module lets you fetch the supported features that you can register for each game (that supports it).
This works best from within a Overwolf application, if you want to register actual features/events from games you play, it can't fetch events from i.e. the web.
## How to use (in Overwolf applications)
Load the library either by importing it or loading it before the code that needs to use it.
```js
/* Don't register listeners like this.. */
overwolf.games.onGameLaunched.addListener((info) => {
let supportedFeatures = overwolf.games.getSupportedFeatures(info.classId);
console.log(supportedFeatures); // { game: "APEX", events: [ ... all the events ] }
});
/* You can also fetch the supported features like this */
let supportedFeatures = overwolf.games.getSupportedFeatures(
OverwolfGameWithEventSupport.Overwatch
);
/* And if the plugin should be outdated on what features are available, you can always use this */
overwolf.games.getSupportedFeaturesOnline(
OverwolfGameWithEventSupport.APEX,
(features) => {
console.log(features);
}
);
```
## How to use (in javascript outside of Overwolf)
```js
let {
getSupportedFeatures,
getSupportedFeaturesOnline,
OverwolfGameWithEventSupport,
} = require("overwolf-games-features");
let supportedFeatures = getSupportedFeatures(
OverwolfGameWithEventSupport.Overwatch
);
console.log(supportedFeatures);
```
## For more information about Overwolf and their applications
**Developers** - Join their [Official Developer Discord](https://discord.gg/overwolf-developers)
**End users** - Join their [Official Discord](https://discord.gg/overwolf)
**Anyone with questions about this module**
Feel free to join [my Discord](https://discord.gg/6fP8vWW)