mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
added type definintions for SaveCPU plugin
This commit is contained in:
parent
4426c712ff
commit
c3bc464b1c
2 changed files with 34 additions and 0 deletions
27
typescript/phaser.comments.d.ts
vendored
27
typescript/phaser.comments.d.ts
vendored
|
@ -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 {
|
||||
|
||||
|
|
7
typescript/phaser.d.ts
vendored
7
typescript/phaser.d.ts
vendored
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in a new issue