Class: MagicaVoxel::Node
Overview
The Node type Chunk
Constant Summary
Constants inherited from Chunk
Instance Attribute Summary collapse
- #attributes ⇒ Object readonly
- #id ⇒ Object readonly
Instance Method Summary collapse
-
#hidden? ⇒ TrueClass|FalseClass
Is hidden.
-
#name ⇒ String
Name.
Methods inherited from Chunk
#each, header, #initialize, read
Constructor Details
This class inherits a constructor from MagicaVoxel::Chunk
Instance Attribute Details
#attributes ⇒ Object (readonly)
9 10 11 |
# File 'lib/magica_voxel/node.rb', line 9 def attributes @attributes end |
Instance Method Details
#hidden? ⇒ TrueClass|FalseClass
Returns is hidden.
21 22 23 |
# File 'lib/magica_voxel/node.rb', line 21 def hidden? @attributes['_hidden'] == '1' end |
#name ⇒ String
Returns name.
14 15 16 |
# File 'lib/magica_voxel/node.rb', line 14 def name @attributes['_name'] end |