this.cur_line++;
this.ret += str + "\n";
}
-
+ public void addMultiLine(string str= "")
+ {
+ this.cur_line++;
+ this.cur_line += str.split("\n").length;
+ this.ret += str + "\n";
+ }
+ addMultiLine
public void globalVars()
{
this.addLine();
this.addLine(ipad + "// init method");
this.addLine();
- this.addMultiLine(ipad + this.padMultiline(ipad, this.node.get("init")) );;
+ this.addMultiLine(ipad + this.padMultiline(ipad, this.node.get("init")) );
}
void addListeners()