mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 11:33:28 +00:00
33 lines
No EOL
762 B
TypeScript
33 lines
No EOL
762 B
TypeScript
/// <reference path="../Game.ts" />
|
|
/// <reference path="../cameras/Camera.ts" />
|
|
/// <reference path="IRenderer.ts" />
|
|
|
|
module Phaser.Renderer.Headless {
|
|
|
|
export class HeadlessRenderer implements Phaser.IRenderer {
|
|
|
|
constructor(game: Phaser.Game) {
|
|
this.game = game;
|
|
}
|
|
|
|
public game: Phaser.Game;
|
|
public renderCount: number;
|
|
|
|
public render() {
|
|
// Nothing, headless remember?
|
|
}
|
|
|
|
public renderGameObject(camera, object) {
|
|
// Nothing, headless remember?
|
|
};
|
|
|
|
public cameraRenderer;
|
|
public groupRenderer;
|
|
public spriteRenderer;
|
|
public geometryRenderer;
|
|
public scrollZoneRenderer;
|
|
public tilemapRenderer;
|
|
|
|
}
|
|
|
|
} |