Class: MagicaVoxel::Shape

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

Overview

The Chunk type nSHP

Since:

  • 0.1.0

Defined Under Namespace

Classes: Model

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

#modelsObject (readonly)

Since:

  • 0.1.0



24
25
26
# File 'lib/magica_voxel/shape.rb', line 24

def models
  @models
end

Instance Method Details

#inspectObject

:nodoc:

Since:

  • 0.1.0



29
30
31
# File 'lib/magica_voxel/shape.rb', line 29

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