Class: MagicaVoxel::Layer

Inherits:
Node show all
Defined in:
lib/magica_voxel/layer.rb

Overview

The Chunk type LAYR

TODO: Remove dependency on Node

Since:

  • 0.1.0

Constant Summary

Constants inherited from Chunk

Chunk::TYPES

Instance Attribute Summary collapse

Attributes inherited from Node

#attributes, #id

Instance Method Summary collapse

Methods inherited from Node

#hidden?, #name

Methods inherited from Chunk

#each, header, #initialize, read

Constructor Details

This class inherits a constructor from MagicaVoxel::Chunk

Instance Attribute Details

#reserved_idObject (readonly)

Since:

  • 0.1.0



11
12
13
# File 'lib/magica_voxel/layer.rb', line 11

def reserved_id
  @reserved_id
end

Instance Method Details

#inspectObject

:nodoc:

Since:

  • 0.1.0



16
17
18
# File 'lib/magica_voxel/layer.rb', line 16

def inspect
  "#<MagicaVoxel::Layer id=#{id}, name=#{name}, hidden=#{hidden?}>"
end