warscript
Version:
A typescript library for Warcraft III using Warpack.
70 lines (69 loc) • 2.43 kB
TypeScript
/** @noSelfInFile */
import { Widget } from "../../core/types/widget";
export type AttackType = jattacktype;
export declare namespace AttackType {
const SPELL: jattacktype;
const NORMAL: jattacktype;
const PIERCE: jattacktype;
const SIEGE: jattacktype;
const MAGIC: jattacktype;
const CHAOS: jattacktype;
const HERO: jattacktype;
}
export type DamageType = jdamagetype;
export declare namespace DamageType {
const UNKNOWN: jdamagetype;
const NORMAL: jdamagetype;
const ENHANCED: jdamagetype;
const FIRE: jdamagetype;
const COLD: jdamagetype;
const LIGHTNING: jdamagetype;
const POISON: jdamagetype;
const DISEASE: jdamagetype;
const DIVINE: jdamagetype;
const MAGIC: jdamagetype;
const SONIC: jdamagetype;
const ACID: jdamagetype;
const FORCE: jdamagetype;
const DEATH: jdamagetype;
const MIND: jdamagetype;
const PLANT: jdamagetype;
const DEFENSIVE: jdamagetype;
const DEMOLITION: jdamagetype;
const SLOW_POISON: jdamagetype;
const SPIRIT_LINK: jdamagetype;
const SHADOW_STRIKE: jdamagetype;
const UNIVERSAL: jdamagetype;
}
export type WeaponType = jweapontype;
export declare namespace WeaponType {
const UNKNOWN: jweapontype;
const METAL_LIGHT_CHOP: jweapontype;
const METAL_MEDIUM_CHOP: jweapontype;
const METAL_HEAVY_CHOP: jweapontype;
const METAL_LIGHT_SLICE: jweapontype;
const METAL_MEDIUM_SLICE: jweapontype;
const METAL_HEAVY_SLICE: jweapontype;
const METAL_MEDIUM_BASH: jweapontype;
const METAL_HEAVY_BASH: jweapontype;
const METAL_MEDIUM_STAB: jweapontype;
const METAL_HEAVY_STAB: jweapontype;
const WOOD_LIGHT_SLICE: jweapontype;
const WOOD_MEDIUM_SLICE: jweapontype;
const WOOD_HEAVY_SLICE: jweapontype;
const WOOD_LIGHT_BASH: jweapontype;
const WOOD_MEDIUM_BASH: jweapontype;
const WOOD_HEAVY_BASH: jweapontype;
const WOOD_LIGHT_STAB: jweapontype;
const WOOD_MEDIUM_STAB: jweapontype;
const CLAW_LIGHT_SLICE: jweapontype;
const CLAW_MEDIUM_SLICE: jweapontype;
const CLAW_HEAVY_SLICE: jweapontype;
const AXE_MEDIUM_CHOP: jweapontype;
const ROCK_HEAVY_BASH: jweapontype;
}
declare module "./unit" {
interface Unit {
damageTarget(target: Widget, amount: number, attack?: boolean, ranged?: boolean, attackType?: AttackType, damageType?: DamageType, weaponType?: WeaponType): boolean;
}
}