Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
voxalgo::ChangingLight Struct Reference

Contains information about a node whose light is about to change. More...

+ Collaboration diagram for voxalgo::ChangingLight:

Public Member Functions

 ChangingLight ()=default
 
 ChangingLight (relative_v3 rel_pos, mapblock_v3 block_pos, MapBlock *b, direction source_dir)
 

Public Attributes

MapBlockblock = nullptr
 Pointer to the node's block.
 
relative_v3 rel_position
 Relative position of the node in its map block.
 
mapblock_v3 block_position
 Position of the node's block.
 
direction source_direction = 6
 

Detailed Description

Contains information about a node whose light is about to change.

Constructor & Destructor Documentation

◆ ChangingLight() [1/2]

voxalgo::ChangingLight::ChangingLight ( )
default

◆ ChangingLight() [2/2]

voxalgo::ChangingLight::ChangingLight ( relative_v3  rel_pos,
mapblock_v3  block_pos,
MapBlock b,
direction  source_dir 
)
inline

Member Data Documentation

◆ block

MapBlock* voxalgo::ChangingLight::block = nullptr

Pointer to the node's block.

Referenced by voxalgo::spread_light(), and voxalgo::unspread_light().

◆ block_position

mapblock_v3 voxalgo::ChangingLight::block_position

Position of the node's block.

Referenced by voxalgo::spread_light(), and voxalgo::unspread_light().

◆ rel_position

relative_v3 voxalgo::ChangingLight::rel_position

Relative position of the node in its map block.

Referenced by voxalgo::spread_light(), and voxalgo::unspread_light().

◆ source_direction

direction voxalgo::ChangingLight::source_direction = 6

Direction from the node that caused this node's changing to this node.

Referenced by voxalgo::spread_light(), and voxalgo::unspread_light().


The documentation for this struct was generated from the following file: