UNPKG

warscript

Version:

A typescript library for Warcraft III using Warpack.

65 lines (64 loc) 3.06 kB
/// <reference types="warpack-types/warpack" /> /** @noSelfInFile */ import { TupleOf } from "../../../utility/types"; import { AttachmentPreset, AttachmentPresetInput } from "../auxiliary/attachment-preset"; import { Race } from "../auxiliary/race"; import { SoundPresetName } from "../auxiliary/sound-preset-name"; import { ObjectDataEntry, ObjectDataEntryId } from "../entry"; import { LightningTypeId } from "./lightning-type"; export type BuffTypeId = ObjectDataEntryId & { readonly __buffTypeId: unique symbol; }; export declare abstract class BuffType<Id extends BuffTypeId = BuffTypeId> extends ObjectDataEntry<Id> { private static readonly idGenerator; protected static generateId(): number; protected static getObjectData(map: WarMap): WarObjects; get effectAttachmentPreset(): AttachmentPreset | undefined; set effectAttachmentPreset(effectAttachmentPreset: AttachmentPresetInput | undefined); get iconPath(): string; set iconPath(iconPath: string); get iconPathSD(): string; set iconPathSD(iconPathSD: string); get iconPathHD(): string; set iconPathHD(iconPathHD: string); get isMissileHoming(): boolean; set isMissileHoming(isMissileHoming: boolean); get lightningTypeIds(): LightningTypeId[]; set lightningTypeIds(lightningTypeIds: LightningTypeId[]); get missileModelPath(): string; set missileModelPath(missileModelPath: string); get missileModelPathSD(): string; set missileModelPathSD(missileModelPathSD: string); get missileModelPathHD(): string; set missileModelPathHD(missileModelPathHD: string); get missileMovementArc(): number; set missileMovementArc(missileMovementArc: number); get missileMovementSpeed(): number; set missileMovementSpeed(missileMovementSpeed: number); get specialAttachmentPreset(): AttachmentPreset | undefined; set specialAttachmentPreset(specialAttachmentPreset: AttachmentPresetInput | undefined); get targetAttachmentPresets(): TupleOf<AttachmentPreset, 0 | 1 | 2 | 3 | 4 | 5 | 6>; set targetAttachmentPresets(targetAttachmentPresets: TupleOf<AttachmentPresetInput, 0 | 1 | 2 | 3 | 4 | 5 | 6>); get soundPresetName(): SoundPresetName; set soundPresetName(soundPresetName: SoundPresetName); get loopingSoundPresetName(): SoundPresetName; set loopingSoundPresetName(loopingSoundPresetName: SoundPresetName); get race(): Race; set race(race: Race); get name(): string; set name(name: string); get tooltipText(): string; set tooltipText(tooltipText: string); get tooltipExtendedText(): string; set tooltipExtendedText(tooltipText: string); } declare const AvatarBuffType_base: typeof BuffType; export declare class AvatarBuffType extends AvatarBuffType_base { } declare const DevotionAuraBuffType_base: typeof BuffType; export declare class DevotionAuraBuffType extends DevotionAuraBuffType_base { } declare const DivineShieldBuffType_base: typeof BuffType; export declare class DivineShieldBuffType extends DivineShieldBuffType_base { } export {};