Class: RPG::Tileset
- Inherits:
-
Object
- Object
- RPG::Tileset
- Defined in:
- lib/R3EXS/RGSS3.rb
Instance Attribute Summary collapse
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#id ⇒ Object
Returns the value of attribute id.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#name ⇒ Object
Returns the value of attribute name.
-
#note ⇒ Object
Returns the value of attribute note.
-
#tileset_names ⇒ Object
Returns the value of attribute tileset_names.
Instance Method Summary collapse
-
#initialize ⇒ Tileset
constructor
A new instance of Tileset.
Constructor Details
#initialize ⇒ Tileset
Returns a new instance of Tileset.
1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 |
# File 'lib/R3EXS/RGSS3.rb', line 1191 def initialize @id = 0 @mode = 1 @name = '' @tileset_names = Array.new(9).collect { '' } @flags = Table.new(8192) @flags[0] = 0x0010 (2048..2815).each { |i| @flags[i] = 0x000F } (4352..8191).each { |i| @flags[i] = 0x000F } @note = '' end |
Instance Attribute Details
#flags ⇒ Object
Returns the value of attribute flags.
1207 1208 1209 |
# File 'lib/R3EXS/RGSS3.rb', line 1207 def flags @flags end |
#id ⇒ Object
Returns the value of attribute id.
1203 1204 1205 |
# File 'lib/R3EXS/RGSS3.rb', line 1203 def id @id end |
#mode ⇒ Object
Returns the value of attribute mode.
1204 1205 1206 |
# File 'lib/R3EXS/RGSS3.rb', line 1204 def mode @mode end |
#name ⇒ Object
Returns the value of attribute name.
1205 1206 1207 |
# File 'lib/R3EXS/RGSS3.rb', line 1205 def name @name end |
#note ⇒ Object
Returns the value of attribute note.
1208 1209 1210 |
# File 'lib/R3EXS/RGSS3.rb', line 1208 def note @note end |
#tileset_names ⇒ Object
Returns the value of attribute tileset_names.
1206 1207 1208 |
# File 'lib/R3EXS/RGSS3.rb', line 1206 def tileset_names @tileset_names end |