mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add entity:set_enabled(...)
This commit is contained in:
parent
13fde2116d
commit
f2101f6504
6 changed files with 32 additions and 3 deletions
|
|
@ -104,6 +104,9 @@ namespace dv {
|
|||
}
|
||||
|
||||
boolean_t value::asBoolean() const {
|
||||
if (type == value_type::none) {
|
||||
return false;
|
||||
}
|
||||
check_type(type, value_type::boolean);
|
||||
return val.boolean;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue