class RuneRb::World::ItemSpawns
Public Class Methods
items()
click to toggle source
# File app/world/item_spawns.rb, line 15 def ItemSpawns.items @@items end
load()
click to toggle source
# File app/world/item_spawns.rb, line 5 def ItemSpawns.load items = XmlSimple.xml_in("data/item_spawns.xml") items["item"].each_with_index {|row, idx| @@items << Item.new(row) } # TODO move out? WORLD.submit_event ItemEvent.new end