room_get_list

This code can be useful if you have to set the views to all rooms, i.e. with "room_set_view".

-- EDIT --- by TizSoft
Now the the snippet returns a ds_list containing all rooms

Arguments

    none.

Returns : list

Source code

  1. var ri,list;
  2. list=ds_list_create();
  3. ri=room_first;
  4. while (ri != -1){
  5.     ds_list_add(list,ri);
  6.     ri = room_next(ri);
  7. }
  8.  
  9. return list;