MCPcopy Create free account
hub / github.com/Blizzard/s2client-api / IsUnit

Method IsUnit

include/sc2api/sc2_unit.h:190–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188//! Determines if the unit matches the unit type.
189struct IsUnit {
190 IsUnit(UNIT_TYPEID type) : type_(type) {};
191 UNIT_TYPEID type_;
192 bool operator()(const Unit& unit) { return unit.unit_type == type_; };
193};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected