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

fluid_group

SMOKE SYSTEMS A group of fluid objects.

Vars

nodesThe set of fluid objects currently in this group.
target_sizeThe number of fluid object that this group wants to have contained.
total_sizeThe total number of fluid objects that have ever been in this group.

Procs

add_nodeAdds a fluid node to this fluid group.
remove_nodeRemoves a fluid node from this fluid group.

Var Details

nodes

The set of fluid objects currently in this group.

target_size

The number of fluid object that this group wants to have contained.

total_size

The total number of fluid objects that have ever been in this group.

Proc Details

add_node

Adds a fluid node to this fluid group.

Is a noop if the node is already in the group. Removes the node from any other fluid groups it is in. Syncs the group of the node with the group it is being added to (this one). Increments the total size of the fluid group.

Arguments:

Returns:

remove_node

Removes a fluid node from this fluid group.

Is a noop if the node is not in this group. Nulls the nodes fluid group ref to sync it with its new state. DOES NOT decrement the total size of the fluid group.

Arguments:

Returns: