warscript
Version:
A typescript library for Warcraft III using Warpack.
16 lines (15 loc) • 885 B
TypeScript
/** @noSelfInFile */
import { Unit } from "../internal/unit";
import { ObjectField } from "../object-field";
import { UnitType, UnitTypeId } from "../object-data/entry/unit-type";
export declare abstract class UnitField<ValueType extends number | string | boolean = number | string | boolean, NativeFieldType = any> extends ObjectField<UnitType, Unit, ValueType, NativeFieldType> {
protected get instanceClass(): typeof Unit;
protected getObjectDataEntryId(instance: Unit): UnitTypeId;
}
export declare class UnitStringField extends UnitField<string, junitstringfield> {
protected get defaultValue(): string;
protected getNativeFieldById(id: number): junitstringfield;
protected getNativeFieldValue(instance: Unit): string;
protected getObjectDataEntryId(instance: Unit): UnitTypeId;
protected setNativeFieldValue(instance: Unit, value: string): boolean;
}