2013-08-08 18:16:47 +00:00
|
|
|
/// <reference path="../_definitions.ts" />
|
2013-05-28 20:38:37 +00:00
|
|
|
|
2013-08-08 00:07:22 +00:00
|
|
|
module Phaser.Renderer.Headless {
|
2013-05-28 20:38:37 +00:00
|
|
|
|
|
|
|
export class HeadlessRenderer implements Phaser.IRenderer {
|
|
|
|
|
2013-05-29 01:58:56 +00:00
|
|
|
constructor(game: Phaser.Game) {
|
2013-08-08 00:07:22 +00:00
|
|
|
this.game = game;
|
2013-05-28 20:38:37 +00:00
|
|
|
}
|
|
|
|
|
2013-08-08 00:07:22 +00:00
|
|
|
public game: Phaser.Game;
|
|
|
|
public renderCount: number;
|
2013-05-28 20:38:37 +00:00
|
|
|
|
2013-08-08 00:07:22 +00:00
|
|
|
public render() {
|
|
|
|
// Nothing, headless remember?
|
2013-06-03 11:03:34 +00:00
|
|
|
}
|
|
|
|
|
2013-08-08 00:07:22 +00:00
|
|
|
public renderGameObject(camera, object) {
|
|
|
|
// Nothing, headless remember?
|
2013-08-08 10:34:33 +00:00
|
|
|
}
|
2013-06-06 01:47:08 +00:00
|
|
|
|
2013-08-08 00:07:22 +00:00
|
|
|
public cameraRenderer;
|
|
|
|
public groupRenderer;
|
|
|
|
public spriteRenderer;
|
|
|
|
public geometryRenderer;
|
|
|
|
public scrollZoneRenderer;
|
|
|
|
public tilemapRenderer;
|
2013-06-06 01:47:08 +00:00
|
|
|
|
2013-05-28 20:38:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|