Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion gamee/dist/gamee-js.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gamee/dist/gamee-js.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions gamee/dist/gamee-js.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gamee/dist/gamee-js.min.js.map

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions gamee/src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,14 @@ export var core = (function () {
});
};

core.playerEnteredGameRoom = function () {
this.native.createRequest('playerEnteredGameRoom');
};

core.playerLeftGameRoom = function () {
this.native.createRequest('playerLeftGameRoom');
};

core.purchaseItemWithCoins = function (options, cb, oldMethod) {

if(!cache.capabilities.coins)
Expand Down Expand Up @@ -482,6 +490,12 @@ export var core = (function () {
});
};

core.showSubscribeDialog = function (cb) {
this.native.createRequest("showSubscribeDialog", function (responseData) {
cb(null, responseData);
});
};

core.requestPlayerData = function (cb, userID) {

if(!cache.capabilities.playerData)
Expand Down
27 changes: 27 additions & 0 deletions gamee/src/gameeAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,22 @@ Gamee.prototype = (function () {
core.requestPlayerSaveState(userID, cb);
},

/*
* playerEnteredGameRoom
* @member of Gamee
*/
playerEnteredGameRoom: function () {
core.playerEnteredGameRoom()
},

/*
* playerLeftGameRoom
* @member of Gamee
*/
playerLeftGameRoom: function () {
core.playerLeftGameRoom()
},

/*
*purchaseItem
*@member of Gamee
Expand Down Expand Up @@ -344,6 +360,17 @@ Gamee.prototype = (function () {
core.showRewardedVideo(cb)
},


/*
* showSubscribeDialog
* @member of Gamee
* @param{Gamee~showSubscribeDialog} cb
*/
showSubscribeDialog: function (cb){
validateDataType(cb,"function","cb","gamee.showSubscribeDialog");
core.showSubscribeDialog(cb)
},

/**
*requestPlayerData
*@member of Gamee
Expand Down