QcFireRules::Table Class
class QcFireRules::TableThe Traits of every block state of a content, indexed by block state id. More...
| Header: | #include <server/blocks/QcFireRules.h> |
Public Functions
| std::optional<QcBlockId> | defaultFire() const |
| const QcFireRules::Traits & | of(QcBlockId block) const |
Detailed Description
Member Function Documentation
std::optional<QcBlockId> Table::defaultFire() const
Returns the fire block a spark lights (QcContentRegistry::defaultFire).
const QcFireRules::Traits &Table::of(QcBlockId block) const
Returns the traits of block; plain traits for an unknown id.