Space Station 13 - Modules - TypesVar Details - Proc Details

ambient_lighting

Vars

ambient_group_free_bitmapA bitmap of free ambience group indexes.
ambient_groupsmap of ambiient groups
queuedList of turfs queued for ambient light evaluation

Procs

add_space_ambient_groupAdds the space ambient group if it doesn't currently exist
allocate_indexFind a valid index in the ambient group map for a new group
clean_turfRemoves turf from all ambient groups it is part of (if any)
create_ambient_groupRemoves turf from ambient group if it is part of it. Removes group's ambient light and flag from turf
fireGo over turfs in queue, add them to space or planet ambient groups if valid, else remove them from all ambient groups

Var Details

ambient_group_free_bitmap

A bitmap of free ambience group indexes.

ambient_groups

map of ambiient groups

queued

List of turfs queued for ambient light evaluation

Proc Details

add_space_ambient_group

Adds the space ambient group if it doesn't currently exist

allocate_index

Find a valid index in the ambient group map for a new group

Returns index or -1 if no indices are left

clean_turf

Removes turf from all ambient groups it is part of (if any)

Parameters:

create_ambient_group

Removes turf from ambient group if it is part of it. Removes group's ambient light and flag from turf

Parameters:

Returns index or -1 if no indices are left

fire

Go over turfs in queue, add them to space or planet ambient groups if valid, else remove them from all ambient groups