Bicameral Engine
GPU-resident engine for a magic-research open-world game
Loading...
Searching...
No Matches
bicameral::sim::GasBox Struct Reference

#include <gas_reference.h>

Collaboration diagram for bicameral::sim::GasBox:
[legend]

Public Member Functions

uint32_t Index (uint32_t x, uint32_t y, uint32_t z) const

Public Attributes

GasConfig config
GasCoefficients coefficients
std::vector< GasCell > reference
std::vector< GasDerived > referenceDerived
std::vector< GasCell > ghost
std::vector< GasCell > cells
GasLedger ledger
uint64_t tick = 0

Detailed Description

Definition at line 121 of file gas_reference.h.

Member Function Documentation

◆ Index()

uint32_t bicameral::sim::GasBox::Index ( uint32_t x,
uint32_t y,
uint32_t z ) const
inlinenodiscard

Definition at line 134 of file gas_reference.h.

References config.

Referenced by bicameral::sim::anonymous_namespace{gas_reference.cpp}::MakeFace(), bicameral::sim::MakeGasBox(), and bicameral::sim::anonymous_namespace{gas_reference.cpp}::SideAt().

Here is the caller graph for this function:

Member Data Documentation

◆ cells

◆ coefficients

◆ config

◆ ghost

std::vector<GasCell> bicameral::sim::GasBox::ghost

◆ ledger

◆ reference

std::vector<GasCell> bicameral::sim::GasBox::reference

Definition at line 125 of file gas_reference.h.

Referenced by bicameral::sim::MakeGasBox().

◆ referenceDerived

◆ tick

uint64_t bicameral::sim::GasBox::tick = 0

Definition at line 132 of file gas_reference.h.

Referenced by bicameral::sim::HashGas(), and bicameral::sim::StepGas().


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