def type_id(self) -> UnitTypeId:
        """ UnitTypeId found in sc2/ids/unit_typeid
        Caches all type_ids of the same unit type"""
        unit_type = self._proto.unit_type
        if unit_type not in self._game_data.unit_types:
            self._game_data.unit_types[unit_type] = UnitTypeId(unit_type)
        return self._game_data.unit_types[unit_type]