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;
|
|
|
|
}
|
|
|
|
|
2013-05-29 01:58:56 +00:00
|
|
|
private _game: Phaser.Game;
|
2013-05-28 20:38:37 +00:00
|
|
|
|
|
|
|
public render() {}
|
|
|
|
|
2013-06-07 06:35:28 +00:00
|
|
|
public inCamera(camera: Camera, sprite: Sprite): bool { return true; }
|
2013-06-01 00:30:36 +00:00
|
|
|
|
2013-06-07 06:35:28 +00:00
|
|
|
public renderGameObject(object) {}
|
2013-05-28 20:38:37 +00:00
|
|
|
|
2013-06-07 06:35:28 +00:00
|
|
|
public renderSprite(camera: Camera, sprite: Sprite): bool { return true; }
|
|
|
|
|
|
|
|
public renderScrollZone(camera: Camera, scrollZone: ScrollZone): bool { return true; }
|
2013-05-28 20:38:37 +00:00
|
|
|
|
2013-06-03 11:03:34 +00:00
|
|
|
public renderCircle(camera: Camera, circle: Circle, context, outline?: bool = true, fill?: bool = true, lineColor?: string = 'rgb(0,255,0)', fillColor?: string = 'rgba(0,100,0.0.3)', lineWidth?: number = 1): bool {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-06-07 06:35:28 +00:00
|
|
|
public preRenderCamera(camera: Camera) { }
|
2013-06-06 01:47:08 +00:00
|
|
|
|
2013-06-07 06:35:28 +00:00
|
|
|
public postRenderCamera(camera: Camera) { }
|
2013-06-06 01:47:08 +00:00
|
|
|
|
2013-06-07 06:35:28 +00:00
|
|
|
public preRenderGroup(camera: Camera, group: Group) { }
|
2013-06-06 01:47:08 +00:00
|
|
|
|
2013-06-07 06:35:28 +00:00
|
|
|
public postRenderGroup(camera: Camera, group: Group) { }
|
2013-06-06 01:47:08 +00:00
|
|
|
|
2013-05-28 20:38:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|