Skip to content

Commit

Permalink
📝 DLC APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
hokein committed Feb 11, 2017
1 parent 1e2d7f0 commit 1ec5667
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/dlc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Methods

### greenworks.getDLCCount()

Returns the number of DLC pieces for the current running app.

### greenworks.isDLCInstalled(dlc_app_id)

* `dlc_app_id` Integer: The APPID of a DLC.

Checks if the user owns the DLC and if the DLC is installed.

### greenworks.installDLC(dlc_app_id)

* `dlc_app_id` Integer: The APPID of a DLC.

Install a specific DLC.

### greenworks.uninstallDLC(dlc_app_id)

* `dlc_app_id` Integer: The APPID of a DLC.

Uninstall a specific DLC.
7 changes: 7 additions & 0 deletions docs/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,10 @@ Returns:
* `message_id` Integer

Emitted when a chat message has been received from a user.

### Event: 'dlc-installed'

Returns:
* `dlc_app_id` Integer: The APPID of a DLC.

Emitted after the user gains ownership of DLC & that DLC is installed.
1 change: 1 addition & 0 deletions docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ if (greenworks.initAPI()) {
* [Achievement](achievement.md)
* [Authentication](authentication.md)
* [Cloud](cloud.md)
* [DLC](dlc.md)
* [Events](events.md)
* [Friends](friends.md)
* [Setting](setting.md)
Expand Down

0 comments on commit 1ec5667

Please sign in to comment.