mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2025-09-02 17:07:19 +00:00
10 lines
283 B
CoffeeScript
10 lines
283 B
CoffeeScript
class @Rooms extends Backbone.Collection
|
|
model: Room
|
|
|
|
# Delegate room events to every single room in this collection.
|
|
for eventName in Room::EVENTS
|
|
do (eventName) =>
|
|
this::[eventName] = (args...) ->
|
|
@each (room) ->
|
|
room[eventName].apply(room, args)
|