ambient_lighting
Vars | |
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 |
Procs | |
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 |
clean_turf | Removes turf from all ambient groups it is part of (if any) |
create_ambient_group | Removes turf from ambient group if it is part of it. Removes group's ambient light and flag from turf |
fire | Go 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:
target
turf - Turf to remove
create_ambient_group
Removes turf from ambient group if it is part of it. Removes group's ambient light and flag from turf
Parameters:
color
color - Initial colormultiplier
float - Initial multiplier of light strength
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