2013-05-28 20:38:37 +00:00
|
|
|
/// <reference path="../Game.ts" />
|
|
|
|
/// <reference path="../cameras/Camera.ts" />
|
|
|
|
/// <reference path="IRenderer.ts" />
|
|
|
|
|
|
|
|
module Phaser {
|
|
|
|
|
|
|
|
export class HeadlessRenderer implements Phaser.IRenderer {
|
|
|
|
|
2013-05-29 01:58:56 +00:00
|
|
|
constructor(game: Phaser.Game) {
|
2013-05-28 20:38:37 +00:00
|
|
|
this._game = game;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The essential reference to the main game object
|
|
|
|
*/
|
2013-05-29 01:58:56 +00:00
|
|
|
private _game: Phaser.Game;
|
2013-05-28 20:38:37 +00:00
|
|
|
|
|
|
|
public render() {}
|
|
|
|
|
2013-06-01 00:30:36 +00:00
|
|
|
public renderGameObject(object) {
|
|
|
|
}
|
|
|
|
|
2013-05-28 20:38:37 +00:00
|
|
|
public renderSprite(camera: Camera, sprite: Sprite): bool {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-05-30 04:34:35 +00:00
|
|
|
public renderScrollZone(camera: Camera, scrollZone: ScrollZone): bool {
|
|
|
|
return true;
|
|
|
|
}
|
2013-05-28 20:38:37 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|