class GBTiles::GBR::TileSet::Objects::TilePal
Attributes
color_set[RW]
count[RW]
id[RW]
sgb_color_set[RW]
sgb_count[RW]
Public Class Methods
initFromBitString(src)
click to toggle source
# File lib/gbtiles/gbr/tile_set/objects/tile_pal.rb, line 17 def self.initFromBitString src object = GBTiles::GBR::TileSet::Objects::TilePal.new object.id = GBTiles::DataType.word!(src) object.count = GBTiles::DataType.word!(src) object.color_set = src.slice!(0, object.count) object.sgb_count = GBTiles::DataType.word!(src) object.sgb_color_set = src.slice!(0, object.sgb_count) object end
new()
click to toggle source
Calls superclass method
GBTiles::GBR::TileSet::Object::new
# File lib/gbtiles/gbr/tile_set/objects/tile_pal.rb, line 13 def initialize super GBTiles::GBR::TileSet::OBJECT_TYPE[:tile_pal] end