Optional
addfrom protobuf field: optional uint64 add_on_tag = 23;
Optional
alliancefrom protobuf field: optional SC2APIProtocol.Alliance alliance = 2;
Optional
armorfrom protobuf field: optional int32 armor_upgrade_level = 41;
Optional
assignedfrom protobuf field: optional int32 assigned_harvesters = 28;
Optional
attackfrom protobuf field: optional int32 attack_upgrade_level = 40;
Optional
bufffrom protobuf field: optional int32 buff_duration_max = 44;
Optional
bufffrom protobuf field: optional int32 buff_duration_remain = 43;
from protobuf field: repeated uint32 buff_ids = 27;
Optional
buildfrom protobuf field: optional float build_progress = 9;
Optional
cargofrom protobuf field: optional int32 cargo_space_max = 26;
Optional
cargofrom protobuf field: optional int32 cargo_space_taken = 25;
Optional
cloakfrom protobuf field: optional SC2APIProtocol.CloakState cloak = 10;
Optional
detectfrom protobuf field: optional float detect_range = 31;
Optional
displayFields are populated based on type/alliance
from protobuf field: optional SC2APIProtocol.DisplayType display_type = 1;
Optional
energyfrom protobuf field: optional float energy = 17;
Optional
energyfrom protobuf field: optional float energy_max = 37;
Optional
engagedfrom protobuf field: optional uint64 engaged_target_tag = 34;
Optional
facingfrom protobuf field: optional float facing = 7;
Optional
healthNot populated for snapshots
from protobuf field: optional float health = 14;
Optional
healthfrom protobuf field: optional float health_max = 15;
Optional
idealfrom protobuf field: optional int32 ideal_harvesters = 29;
Optional
isfrom protobuf field: optional bool is_active = 39;
Optional
isfrom protobuf field: optional bool is_blip = 13;
Optional
isfrom protobuf field: optional bool is_burrowed = 21;
Optional
isfrom protobuf field: optional bool is_flying = 20;
Optional
isfrom protobuf field: optional bool is_hallucination = 38;
Optional
isfrom protobuf field: optional bool is_on_screen = 12;
Optional
isfrom protobuf field: optional bool is_powered = 35;
Optional
isfrom protobuf field: optional bool is_selected = 11;
Optional
mineralfrom protobuf field: optional int32 mineral_contents = 18;
Not populated for enemies
from protobuf field: repeated SC2APIProtocol.UnitOrder orders = 22;
Optional
ownerfrom protobuf field: optional int32 owner = 5;
from protobuf field: repeated SC2APIProtocol.PassengerUnit passengers = 24;
Optional
posfrom protobuf field: optional SC2APIProtocol.Point pos = 6;
Optional
radarfrom protobuf field: optional float radar_range = 32;
Optional
radiusfrom protobuf field: optional float radius = 8;
from protobuf field: repeated SC2APIProtocol.RallyTarget rally_targets = 45;
Optional
shieldfrom protobuf field: optional float shield = 16;
Optional
shieldfrom protobuf field: optional float shield_max = 36;
Optional
shieldfrom protobuf field: optional int32 shield_upgrade_level = 42;
Optional
tagfrom protobuf field: optional uint64 tag = 3;
Optional
unitfrom protobuf field: optional uint32 unit_type = 4;
Optional
vespenefrom protobuf field: optional int32 vespene_contents = 19;
Optional
weaponfrom protobuf field: optional float weapon_cooldown = 30;
Generated using TypeDoc
Generated
from protobuf message SC2APIProtocol.Unit