/tg/ Station 13 - Modules - TypesVar Details - Proc Details

lift_indicator

An indicator display aka an elevator hall lantern w/ floor number

Vars

current_lift_directionPositive for going up, negative going down, 0 for stopped
current_lift_floorThe elevator's current floor relative to its lowest floor being 1
lift_refWeakref to the transport.
linked_elevator_idWhat specific_transport_id do we link with?
lowest_floor_numThe lowest floor number. Determined by transport module init.
lowest_floor_offset'Floors' for display purposes are by default offset by 1 from their actual z-levels

Procs

on_lift_directionUpdate state, and only process if elevator is moving.
set_lift_stateSet the state and update appearance.
update_operatingUpdate processing state.

Var Details

current_lift_direction

Positive for going up, negative going down, 0 for stopped

current_lift_floor

The elevator's current floor relative to its lowest floor being 1

lift_ref

Weakref to the transport.

linked_elevator_id

What specific_transport_id do we link with?

lowest_floor_num

The lowest floor number. Determined by transport module init.

lowest_floor_offset

'Floors' for display purposes are by default offset by 1 from their actual z-levels

Proc Details

on_lift_direction

Update state, and only process if elevator is moving.

set_lift_state

Set the state and update appearance.

Arguments: new_direction - new arrow state: UP, DOWN, or 0 new_floor - set the floor number, eg. 1, 2, 3 force_update - force appearance to update even if state didn't change.

update_operating

Update processing state.

Returns whether we are still processing.