func init this.item_type = code(sys.get_typed_field('string', 'ItemType', 2)) if(isdef("ArrayType")) this.arr_type = this.item_type else this.arr_type = code(sys.get_typed_field('string', 'ArrayType', 2)) end this.codetype = sys.type_code(this.item_type) sys._se_init('Array', 'arr', this.arr_type + '[]') // initialize instance if(not sys.is_linked(4)) sys.add_var(this.name, this.arr_type + '[]') arr = this.props("Items").value if(this.codetype == 2) blk_init.println(this.codename, ' = new ', this.arr_type, '[] { ', arr.join(', '), ' };') else p = new array() for(i = 0; i < arr.size(); i++) p.add(code(arr.get(i))) end blk_init.println(this.codename, ' = new ', this.arr_type, '[] { ', p.join(', '), ' };') end end end func _se_make(data) if(sys.is_linked(4)) p = d("item1", this.codetype) for(i = 2; i <= this.numdatas; i++) dt = 'item' + i p = p + ', ' + d(dt, this.codetype) end return('new ' + this.arr_type + '[] { ' + p + ' }') else return(this.codename) end end