search_object 
Search Object
An object for content lists. Compacted item data.
Vars | |
| 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 |
Procs | |
| 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 |
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