SS1984 - Modules - TypesVar Details - Proc Details

search_object

Search Object

An object for content lists. Compacted item data.

Vars

iconUrl to the image of the object
icon_cacheShared cache of rendered icon HTML for LOOT_ICON_FLAT_ICON_TYPE_CACHABLE items, keyed by a md5 of the item's typepath. Static so every search object across every lootpanel reuses the same flat-icon HTML instead of re-rendering it per item. Only safe for items whose appearance is fully determined by their type (no per-instance overlays/state).
icon_stateIcon state, for inexpensive icons
itemItem we're indexing
looting_icon_modeHow /datum/search_object/proc/generate_icon should render this item's preview. Copied from the source atom's /atom/var/looting_icon_mode; if unset, New() picks a mode heuristically (see the icon generation conditions below). One of the LOOT_ICON_* defines.
nameName of the original object
pathTypepath of the original object for ui grouping

Procs

generate_iconGenerates the icon for the search object. This is the expensive part.
on_item_movedParent item has been altered, search object no longer valid
on_turf_changeParent tile has been altered, entire search needs reset

Var Details

icon

Url to the image of the object

icon_cache

Shared cache of rendered icon HTML for LOOT_ICON_FLAT_ICON_TYPE_CACHABLE items, keyed by a md5 of the item's typepath. Static so every search object across every lootpanel reuses the same flat-icon HTML instead of re-rendering it per item. Only safe for items whose appearance is fully determined by their type (no per-instance overlays/state).

icon_state

Icon state, for inexpensive icons

item

Item we're indexing

looting_icon_mode

How /datum/search_object/proc/generate_icon should render this item's preview. Copied from the source atom's /atom/var/looting_icon_mode; if unset, New() picks a mode heuristically (see the icon generation conditions below). One of the LOOT_ICON_* defines.

name

Name of the original object

path

Typepath of the original object for ui grouping

Proc Details

generate_icon

Generates the icon for the search object. This is the expensive part.

on_item_moved

Parent item has been altered, search object no longer valid

on_turf_change

Parent tile has been altered, entire search needs reset