Class: MagicaVoxel::Size

Inherits:
Chunk
  • Object
show all
Defined in:
lib/magica_voxel/size.rb

Overview

The Chunk type SIZE

Since:

  • 0.1.0

Constant Summary

Constants inherited from Chunk

Chunk::TYPES

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Chunk

#each, header, #initialize, read

Constructor Details

This class inherits a constructor from MagicaVoxel::Chunk

Instance Attribute Details

#xObject (readonly)

Since:

  • 0.1.0



9
10
11
# File 'lib/magica_voxel/size.rb', line 9

def x
  @x
end

#yObject (readonly)

Since:

  • 0.1.0



9
10
11
# File 'lib/magica_voxel/size.rb', line 9

def y
  @y
end

#zObject (readonly)

Since:

  • 0.1.0



9
10
11
# File 'lib/magica_voxel/size.rb', line 9

def z
  @z
end

Instance Method Details

#inspectObject

:nodoc:

Since:

  • 0.1.0



14
15
16
# File 'lib/magica_voxel/size.rb', line 14

def inspect
  "#<MagicaVoxel::Size x=#{x}, y=#{y}, z=#{z}>"
end