UNPKG

warscript

Version:

A typescript library for Warcraft III using Warpack.

23 lines (22 loc) 1.03 kB
/** @noSelfInFile */ import { Widget } from "./types/widget"; import { Player } from "./types/player"; import { UnitAbility } from "./types/ability"; import { AbilityTypeId } from "../engine/object-data/entry/ability-type"; export declare class InstantDummyCaster { private static instance; private readonly dummy; private constructor(); static getInstance(): InstantDummyCaster; private prepare; private finish; castTarget(owner: Player, abilityTypeId: number, level: number | ((ability: UnitAbility) => void), orderId: number, target: Widget, pos?: Vec2): boolean; castTarget<T extends [number, ...number[]]>(owner: Player, abilityTypeId: T, level: number[] | ((...abilities: { [Index in keyof T]: UnitAbility; }) => void), orderId: number, target: Widget, pos?: Vec2): boolean; cast(owner: Player, abilityTypeId: AbilityTypeId, ...args: [ ...levelOrAbilityConsumer: [number] | [(ability: UnitAbility) => void] | [], x: number, y: number ]): void; }