Method: Rect#initialize
- Defined in:
- lib/RGSS.rb
#initialize(bytes) ⇒ Rect
Returns a new instance of Rect.
111 112 113 |
# File 'lib/RGSS.rb', line 111 def initialize(bytes) @x, @y, @width, @height = *bytes.unpack('i4') end |
Returns a new instance of Rect.
111 112 113 |
# File 'lib/RGSS.rb', line 111 def initialize(bytes) @x, @y, @width, @height = *bytes.unpack('i4') end |