GMLscripts.com

map_rooms

map_rooms(map)
Fills a given map data structure with the id values of all room resources, keyed by strings of their names.
COPY
  1. /// map_rooms(map)
  2. //
  3. // Fills a given map data structure with the id values of all
  4. // room resources, keyed by strings of their names.
  5. //
  6. // map map data structure, real
  7. //
  8. /// GMLscripts.com/license
  9. {
  10. var ds_map,i;
  11. ds_map = argument0;
  12. i = room_first;
  13. while (room_exists(i)) {
  14. ds_map_add(ds_map,room_get_name(i),i);
  15. i = room_next(i);
  16. }
  17. return 0;
  18. }

Contributors: paul23

GitHub: View · Commits · Blame · Raw