Generated

from protobuf message SC2APIProtocol.UnitTypeData

interface UnitTypeData {
    abilityId?: number;
    armor?: number;
    attributes: Attribute[];
    available?: boolean;
    buildTime?: number;
    cargoSize?: number;
    foodProvided?: number;
    foodRequired?: number;
    hasMinerals?: boolean;
    hasVespene?: boolean;
    mineralCost?: number;
    movementSpeed?: number;
    name?: string;
    race?: any;
    requireAttached?: boolean;
    sightRange?: number;
    techAlias: number[];
    techRequirement?: number;
    unitAlias?: number;
    unitId?: number;
    vespeneCost?: number;
    weapons: Weapon[];
}

Properties

abilityId?: number

Generated

from protobuf field: optional uint32 ability_id = 15;

armor?: number

Generated

from protobuf field: optional float armor = 10;

attributes: Attribute[]

Values include changes from upgrades

Generated

from protobuf field: repeated SC2APIProtocol.Attribute attributes = 8;

available?: boolean

Generated

from protobuf field: optional bool available = 3;

buildTime?: number

Generated

from protobuf field: optional float build_time = 17;

cargoSize?: number

Generated

from protobuf field: optional uint32 cargo_size = 4;

foodProvided?: number

Generated

from protobuf field: optional float food_provided = 18;

foodRequired?: number

Generated

from protobuf field: optional float food_required = 14;

hasMinerals?: boolean

Generated

from protobuf field: optional bool has_minerals = 20;

hasVespene?: boolean

Generated

from protobuf field: optional bool has_vespene = 19;

mineralCost?: number

Generated

from protobuf field: optional uint32 mineral_cost = 12;

movementSpeed?: number

Generated

from protobuf field: optional float movement_speed = 9;

name?: string

Generated

from protobuf field: optional string name = 2;

race?: any

Generated

from protobuf field: optional SC2APIProtocol.Race race = 16;

requireAttached?: boolean

Generated

from protobuf field: optional bool require_attached = 24;

sightRange?: number

Generated

from protobuf field: optional float sight_range = 25;

techAlias: number[]

Generated

from protobuf field: repeated uint32 tech_alias = 21;

techRequirement?: number

Generated

from protobuf field: optional uint32 tech_requirement = 23;

unitAlias?: number

Generated

from protobuf field: optional uint32 unit_alias = 22;

unitId?: number

Generated

from protobuf field: optional uint32 unit_id = 1;

vespeneCost?: number

Generated

from protobuf field: optional uint32 vespene_cost = 13;

weapons: Weapon[]

Generated

from protobuf field: repeated SC2APIProtocol.Weapon weapons = 11;

Generated using TypeDoc