/tg/ Station 13 - 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_stateIcon state, for inexpensive icons
itemItem we're indexing
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_state

Icon state, for inexpensive icons

item

Item we're indexing

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