nw::Trap

struct Trap

Public Functions

Trap() = default
bool from_json(const nlohmann::json &archive)
nlohmann::json to_json() const

Public Members

bool is_trapped = false
TrapType type = TrapType::invalid()
bool detectable = false
uint8_t detect_dc = 0
bool disarmable = false
uint8_t disarm_dc = 0
bool one_shot = false