Skip to content

Commit

Permalink
Merge pull request #20 from orange-games/dev
Browse files Browse the repository at this point in the history
Added GameDistibution.com as an AdProvider and fixed an issue with ad…
  • Loading branch information
AleBles authored Apr 26, 2017
2 parents 8a744f2 + 613e08d commit 92065c2
Show file tree
Hide file tree
Showing 11 changed files with 319 additions and 50 deletions.
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Before opening this issue _please_ check we haven't already fixed it! Check the [Closed issues](https://github.com/orange-games/phaser-ads/issues?q=is%3Aissue+is%3Aclosed)
This Issue is about (delete as applicable)

* A bug in the API (always say which version you're using!)
* An error in the documentation
* An error in the example
* A problem with my own code

API errors must include example code showing what happens, and why you don't believe this is the expected behavior. Issues posted without code take _far_ longer to get resolved, _if ever_.
26 changes: 25 additions & 1 deletion build/phaser-ads.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,30 @@ declare module PhaserAds {
}
}
}
declare module PhaserAds {
module AdProvider {
enum GameDistributionAdType {
preroll = 0,
midroll = 1,
}
class GameDistributionAds implements PhaserAds.AdProvider.IProvider {
adManager: AdManager;
adsEnabled: boolean;
private settings;
constructor(game: Phaser.Game, gameId: string, userId: string);
setManager(manager: PhaserAds.AdManager): void;
showAd(adType: GameDistributionAdType): void;
preloadAd(): void;
destroyAd(): void;
hideAd(): void;
/**
* Checks if the ads are enabled (e.g; adblock is enabled or not)
* @returns {boolean}
*/
private areAdsEnabled();
}
}
}
declare module PhaserAds {
module AdProvider {
interface ICustomParams {
Expand Down Expand Up @@ -169,7 +193,7 @@ declare module PhaserAds {
private onContentResumeRequested();
private parseCustomParams(customParams);
/**
* Checks id the ads are enabled
* Checks if the ads are enabled (e.g; adblock is enabled or not)
* @returns {boolean}
*/
private areAdsEnabled();
Expand Down
136 changes: 124 additions & 12 deletions build/phaser-ads.js

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

2 changes: 1 addition & 1 deletion build/phaser-ads.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 92065c2

Please sign in to comment.