Class: GBTiles::GBR::TileSet::Objects::TileExport
- Inherits:
-
GBTiles::GBR::TileSet::Object
- Object
- GBTiles::GBR::TileSet::Object
- GBTiles::GBR::TileSet::Objects::TileExport
- Defined in:
- lib/gbtiles/gbr/tile_set/objects/tile_export.rb
Instance Attribute Summary collapse
-
#bank ⇒ Object
Returns the value of attribute bank.
-
#block_size ⇒ Object
Returns the value of attribute block_size.
-
#compression ⇒ Object
Returns the value of attribute compression.
-
#counter ⇒ Object
Returns the value of attribute counter.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#file_type ⇒ Object
Returns the value of attribute file_type.
-
#format ⇒ Object
Returns the value of attribute format.
-
#from ⇒ Object
Returns the value of attribute from.
-
#gbc_palettes ⇒ Object
Returns the value of attribute gbc_palettes.
-
#include_colors ⇒ Object
Returns the value of attribute include_colors.
-
#label_name ⇒ Object
Returns the value of attribute label_name.
-
#make_meta_tiles ⇒ Object
Returns the value of attribute make_meta_tiles.
-
#meta_counter ⇒ Object
Returns the value of attribute meta_counter.
-
#meta_offset ⇒ Object
Returns the value of attribute meta_offset.
-
#section_name ⇒ Object
Returns the value of attribute section_name.
-
#sel_tab ⇒ Object
Returns the value of attribute sel_tab.
-
#sgb_palettes ⇒ Object
Returns the value of attribute sgb_palettes.
-
#split ⇒ Object
Returns the value of attribute split.
-
#tile_array ⇒ Object
Returns the value of attribute tile_array.
-
#tile_id ⇒ Object
Returns the value of attribute tile_id.
-
#upto ⇒ Object
Returns the value of attribute upto.
Attributes inherited from GBTiles::GBR::TileSet::Object
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ TileExport
constructor
A new instance of TileExport.
Constructor Details
#initialize ⇒ TileExport
Returns a new instance of TileExport.
29 30 31 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 29 def initialize super GBTiles::GBR::TileSet::OBJECT_TYPE[:tile_export] end |
Instance Attribute Details
#bank ⇒ Object
Returns the value of attribute bank.
12 13 14 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 12 def bank @bank end |
#block_size ⇒ Object
Returns the value of attribute block_size.
26 27 28 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 26 def block_size @block_size end |
#compression ⇒ Object
Returns the value of attribute compression.
18 19 20 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 18 def compression @compression end |
#counter ⇒ Object
Returns the value of attribute counter.
15 16 17 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 15 def counter @counter end |
#file_name ⇒ Object
Returns the value of attribute file_name.
8 9 10 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 8 def file_name @file_name end |
#file_type ⇒ Object
Returns the value of attribute file_type.
9 10 11 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 9 def file_type @file_type end |
#format ⇒ Object
Returns the value of attribute format.
14 15 16 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 14 def format @format end |
#from ⇒ Object
Returns the value of attribute from.
16 17 18 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 16 def from @from end |
#gbc_palettes ⇒ Object
Returns the value of attribute gbc_palettes.
21 22 23 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 21 def gbc_palettes @gbc_palettes end |
#include_colors ⇒ Object
Returns the value of attribute include_colors.
19 20 21 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 19 def include_colors @include_colors end |
#label_name ⇒ Object
Returns the value of attribute label_name.
11 12 13 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 11 def label_name @label_name end |
#make_meta_tiles ⇒ Object
Returns the value of attribute make_meta_tiles.
22 23 24 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 22 def end |
#meta_counter ⇒ Object
Returns the value of attribute meta_counter.
24 25 26 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 24 def end |
#meta_offset ⇒ Object
Returns the value of attribute meta_offset.
23 24 25 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 23 def end |
#section_name ⇒ Object
Returns the value of attribute section_name.
10 11 12 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 10 def section_name @section_name end |
#sel_tab ⇒ Object
Returns the value of attribute sel_tab.
27 28 29 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 27 def sel_tab @sel_tab end |
#sgb_palettes ⇒ Object
Returns the value of attribute sgb_palettes.
20 21 22 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 20 def sgb_palettes @sgb_palettes end |
#split ⇒ Object
Returns the value of attribute split.
25 26 27 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 25 def split @split end |
#tile_array ⇒ Object
Returns the value of attribute tile_array.
13 14 15 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 13 def tile_array @tile_array end |
#tile_id ⇒ Object
Returns the value of attribute tile_id.
7 8 9 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 7 def tile_id @tile_id end |
#upto ⇒ Object
Returns the value of attribute upto.
17 18 19 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 17 def upto @upto end |
Class Method Details
.initFromBitString(src) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/gbtiles/gbr/tile_set/objects/tile_export.rb', line 33 def self.initFromBitString src object = GBTiles::GBR::TileSet::Objects::TileExport.new object.tile_id = GBTiles::DataType.word!(src) object.file_name = GBTiles::DataType.string!(src, 128) object.file_type = GBTiles::DataType.byte!(src) object.section_name = GBTiles::DataType.string!(src, 20) object.label_name = GBTiles::DataType.string!(src, 20) object.bank = GBTiles::DataType.byte!(src) object.tile_array = GBTiles::DataType.byte!(src) object.format = GBTiles::DataType.byte!(src) object.counter = GBTiles::DataType.byte!(src) object.from = GBTiles::DataType.word!(src) object.upto = GBTiles::DataType.word!(src) object.compression = GBTiles::DataType.byte!(src) object.include_colors = GBTiles::DataType.boolean!(src) object.sgb_palettes = GBTiles::DataType.byte!(src) object.gbc_palettes = GBTiles::DataType.byte!(src) object. = GBTiles::DataType.boolean!(src) object. = GBTiles::DataType.long!(src) object. = GBTiles::DataType.byte!(src) object.split = GBTiles::DataType.boolean!(src) object.block_size = GBTiles::DataType.long!(src) object.sel_tab = GBTiles::DataType.byte!(src) object end |