blaze-2d
Version:
A fast and simple WebGL 2 2D game engine written in TypeScript
26 lines (25 loc) • 807 B
TypeScript
import { vec2 } from "gl-matrix";
import BlazeDetails from "../../ui/details";
import BlazeList from "../../ui/list";
import World from "../../world";
import EditorPane from "./pane";
export default class WorldPane extends EditorPane {
world: World;
content: HTMLDivElement;
entitiesContainer: BlazeDetails;
entitiesList: BlazeList<import("../../ui/element").default<HTMLElement>>;
/**
* Creates a {@link WorldPane}.
*
* @param pos The top left corner of the pane in the editor grid
* @param width The width of the pane in columns
* @param height The height of the pane in rows
*/
constructor(pos?: vec2, width?: number, height?: number);
/**
* Update world stats.
*/
update(): void;
private addEntity;
private removeEntity;
}