You are currently viewing the gmlscripts.pro static mirror. Forum access and script submissions are not available through this mirror.

Invert gmlscripts.pro

ds_list_add_map

ds_list_add_map(id,map)
Adds a map to a given list and marks it.
COPY
  1. /// ds_list_add_map(id,map)
  2. //
  3. // Adds a map to a given list and marks it.
  4. // Marking ensures the data of a nested map is
  5. // included when its parent is encoded as JSON.
  6. //
  7. // id list data structure, real
  8. // map map to add to list, real
  9. //
  10. /// gmlscripts.pro/license
  11. {
  12. var parent, map, pos;
  13. parent = argument0;
  14. map = argument1;
  15. pos = ds_list_size(parent);
  16. ds_list_add(parent, map);
  17. ds_list_mark_as_map(parent, pos);
  18. }

Contributors: RaniSputnik

GitHub: View · Commits · Blame · Raw