func init // defines level this.level = isdef("AccessModifier") ? '' : lower(this.props("AccessModifier").value) // initialize types if(not isdef("Types")) this.arr = this.props("Types").value end // defines view this.hide = isdef("Hidden") ? '*' : '' // defines type modifier t = this.props("TypeModifier").value this.tMode = ((t _and_ 1) ? 'static ' : '') + ((t _and_ 2) ? 'virtual ' : '') + ((t _and_ 4) ? 'volatile ' : '') // defines attributes if(not isdef("Attributes")) arr2 = this.props("Attributes").value attr = code(arr2.join(',')) end // defines comments arr2.clear() if(not isdef("Comment")) arr2 = this.props("Comment").value end // initialize params if(this.numvars) pname = code(this.pt_var(0).name) ptype = code(this.arr.get(0)) params = ptype + ' ' + pname arguments = 'd("' + pname + '")' // adds method to ini file if(this.level == 'public') blk_methods.println(this.hide, pname, '=Defines the value to operate. ARG(', ptype, ')|4|', sys.type_code(ptype)) end for(n = 1; n < this.numvars; n++) pname = code(this.pt_var(n).name) ptype = code(this.arr.get(n)) params += ', ' + ptype + ' ' + pname arguments += ' + \', \' + d("' + pname + '")' // adds method to ini file if(this.level == 'public') blk_methods.println(this.hide, pname, '=Defines the value to operate. ARG(', ptype, ')|4|', sys.type_code(ptype)) end end // initialize params methods for(i = 0; i < this.numvars; i++) method(code(this.pt_var(i).name)) pname = cgt.get_func_name() pcodename = code(pname) return(sub(pcodename, sys.type_code(this.get_type(pname)))) end end end // define constructor body sys.blocks_store() event("onConstructor") // declares constructor this.class = code(this.parent.get_parent_sdk().props("ClassName").value) if(arr2.size()) for(i=0; i