added type definintions for SaveCPU plugin

This commit is contained in:
Stafford Williams 2016-04-23 12:13:30 +10:00
parent 4426c712ff
commit c3bc464b1c
2 changed files with 34 additions and 0 deletions

View file

@ -18941,6 +18941,33 @@ declare module Phaser {
}
module Plugin {
class SaveCPU extends Phaser.Plugin {
/**
* Constrains maximum FPS to value set.
* Reasonable values from 0 to 60
* Default value 30
* Set value to 0 disable rendering based on FPS
* and use methods described below.
*/
renderOnFPS: boolean;
/**
* Render when pointer movement detected.
* Possible values "true" or "false"
* Default: false
* Note that renderOnFPS must be set to 0
*/
renderOnPointerChange: boolean;
/**
* Forces rendering during core game loop
* Can be called independently or in tandem with above properties.
* Should be called inside update function.
*/
forceRender(): void;
}
class AStar extends Phaser.Plugin {

View file

@ -3507,6 +3507,13 @@ declare module Phaser {
}
module Plugin {
class SaveCPU extends Phaser.Plugin {
renderOnFPS: boolean;
renderOnPointerChange: boolean;
forceRender(): void;
}
class AStar extends Phaser.Plugin {