warscript
Version:
A typescript library for Warcraft III using Warpack.
15 lines (14 loc) • 516 B
TypeScript
/** @noSelfInFile */
import { Handle, HandleDestructor } from "./handle";
import { Rect } from "./rect";
import { Unit } from "../../engine/internal/unit";
import { Event } from "../../event";
export declare class Region extends Handle<jregion> {
protected onDestroy(): HandleDestructor;
addRect(rect: Rect): void;
removeRect(rect: Rect): void;
contains(point: Vec2): boolean;
get onUnitEnter(): Event<[Unit]>;
get onUnitLeave(): Event<[Unit]>;
static create(...rects: Rect[]): Region;
}