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_list

ds_list_add_list(id,list)
Adds a list to a given list and marks it.
COPY/// ds_list_add_list(id,list)
//
//  Adds a list to a given list and marks it. 
//  Marking ensures the data of a nested list is
//  included when its parent is encoded as JSON.
//
//      id          list data structure, real
//      list        list to add to list, real
//
/// gmlscripts.pro/license
{
    var parent, list, pos;
    parent = argument0;
    list = argument1;
    pos = ds_list_size(parent);
    ds_list_add(parent, list);
    ds_list_mark_as_list(parent, pos);
}

Contributors: RaniSputnik

GitHub: View · Commits · Blame · Raw