class Rect

Public Class Methods

_load(bytes) click to toggle source
# File lib/RGSS.rb, line 111
def self._load(bytes)
  Rect.new(bytes)
end
new(bytes) click to toggle source
# File lib/RGSS.rb, line 103
def initialize(bytes)
  @x, @y, @width, @height = *bytes.unpack('i4')
end

Public Instance Methods

_dump(*ignored) click to toggle source
# File lib/RGSS.rb, line 107
def _dump(*ignored)
  return [@x, @y, @width, @height].pack('i4')
end