class Rsrb::Model::Region
A section of the world
Attributes
ground_items[R]
npcs[R]
players[R]
x[R]
y[R]
Public Class Methods
new(x, y)
click to toggle source
# File lib/rsrb/model/region.rb, line 64 def initialize(x, y) @x = x @y = y @players = [] @npcs = [] @ground_items = [] end
Public Instance Methods
==(other)
click to toggle source
# File lib/rsrb/model/region.rb, line 72 def ==(other) return unless other.instance_of? self.class @x == other.x and @y == other.y end