# Catalog Entry Class

Grammar — Catalog catalog entry entry class
FlagsNative | Function

Returns the scope (essentially, the type) of the specified entry in integer form. Use catalog lookup functions to retrieve a data value or other information from the game data.

# Arguments

  • int<preset::CatalogType> — Catalog
  • string<catalogentry> — Entry

Returns — int

native int CatalogEntryClass(int catalog, string entry);

Category: Catalog / Lookup

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:139

    if ((lv_otherUnit != null)) {
        lv_itemType = CatalogFieldValueGet(c_gameCatalogUnit, UnitGetType(lv_otherUnit), "Item", UnitGetOwner(lv_otherUnit));
        lv_classId = CatalogEntryClass(c_gameCatalogAbil, CatalogFieldValueGet(c_gameCatalogItem, lv_itemType, "Abil", UnitGetOwner(lv_otherUnit)));
        if (((lv_classId == c_classIdCAbilEffectTarget) || (lv_classId == c_classIdCAbilEffectInstant))) {
            lv_abilUsed = StringToAbilCmd(CatalogFieldValueGet(c_gameCatalogItem, lv_itemType, "Abil", UnitGetOwner(lv_otherUnit)));