@moderrkowo/jsgl
Version:
Client-side JavaScript library for creating web 2D games. Focusing at objective game.
14 lines (13 loc) • 454 B
TypeScript
import { DrawSettings } from '../structs/DrawSettings';
import { ShapeType } from '../enums/ShapeType';
import { DrawEvent } from '../events/DrawEvent';
import { ClickableGameObject } from './ClickableGameObject';
/**
* Represents drawable, clickable shape on canvas
* @group Game Objects
*/
export declare class Shape extends ClickableGameObject {
type: ShapeType;
properties: DrawSettings;
OnDraw(event: DrawEvent): void;
}