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

apc

Vars

alarm_managerRepresents a signel source of power alarms for this apc
longtermpowerbuffer state that makes apcs not shut off channels immediately as long as theres some power left, effect visible in apcs only slowly losing power

Procs

autosetReturns the new status value for an APC channel.
check_updatesChecks for what icon updates we will need to handle
setsubsystemUsed by external forces to set the APCs channel status's.

Var Details

alarm_manager

Represents a signel source of power alarms for this apc

longtermpower

buffer state that makes apcs not shut off channels immediately as long as theres some power left, effect visible in apcs only slowly losing power

Proc Details

autoset

Returns the new status value for an APC channel.

// val 0=off, 1=off(auto) 2=on 3=on(auto) // on 0=off, 1=on, 2=autooff TODO: Make this use bitflags instead. It should take at most three lines, but it's out of scope for now.

Arguments:

check_updates

Checks for what icon updates we will need to handle

setsubsystem

Used by external forces to set the APCs channel status's.

Arguments: