Class: Configs::Project::Display::TilemapSettings

Inherits:
Object
  • Object
show all
Defined in:
docs/000_a_root.rb

Overview

Data class describing Tilemap configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(v) ⇒ TilemapSettings

Returns a new instance of TilemapSettings.



175
176
# File 'docs/000_a_root.rb', line 175

def initialize(v)
end

Instance Attribute Details

#autotile_idle_frame_count ⇒ Integer (readonly)

Get the number of frame autotiles does not animate

Returns:

  • (Integer)


159
160
161
# File 'docs/000_a_root.rb', line 159

def autotile_idle_frame_count
  @autotile_idle_frame_count
end

#center ⇒ Point (readonly)

Get the center of the screen in sub pixel size

Returns:



168
169
170
# File 'docs/000_a_root.rb', line 168

def center
  @center
end

#character_sprite_zoom ⇒ Float (readonly)

Get the zoom of the sprite as character

Returns:

  • (Float)


165
166
167
# File 'docs/000_a_root.rb', line 165

def character_sprite_zoom
  @character_sprite_zoom
end

#character_tile_zoom ⇒ Float (readonly)

Get the zoom of the tiles as character

Returns:

  • (Float)


162
163
164
# File 'docs/000_a_root.rb', line 162

def character_tile_zoom
  @character_tile_zoom
end

#map_linker_offset ⇒ Point (readonly)

Get the map linker offset

Returns:



171
172
173
# File 'docs/000_a_root.rb', line 171

def map_linker_offset
  @map_linker_offset
end

#tilemap_class ⇒ String (readonly)

Get the tilemap class

Returns:



153
154
155
# File 'docs/000_a_root.rb', line 153

def tilemap_class
  @tilemap_class
end

#tilemap_size ⇒ Point (readonly)

Get the size of the tilemap

Returns:



156
157
158
# File 'docs/000_a_root.rb', line 156

def tilemap_size
  @tilemap_size
end

#uses_old_map_linker ⇒ Boolean (readonly)

Tell if the game uses the old map linker settings

Returns:

  • (Boolean)


174
175
176
# File 'docs/000_a_root.rb', line 174

def uses_old_map_linker
  @uses_old_map_linker
end