parent
4a9461fded
commit
c4f79716d3
|
@ -47,16 +47,14 @@ void GDScriptLanguage::get_string_delimiters(List<String> *p_delimiters) const {
|
||||||
String GDScriptLanguage::get_template(const String& p_class_name, const String& p_base_class_name) const {
|
String GDScriptLanguage::get_template(const String& p_class_name, const String& p_base_class_name) const {
|
||||||
|
|
||||||
String _template = String()+
|
String _template = String()+
|
||||||
"\nextends %BASE%\n\n"+
|
"extends %BASE%\n\n"+
|
||||||
"# member variables here, example:\n"+
|
"# class member variables go here, for example:\n"+
|
||||||
"# var a=2\n"+
|
"# var a = 2\n"+
|
||||||
"# var b=\"textvar\"\n\n"+
|
"# var b = \"textvar\"\n\n"+
|
||||||
"func _ready():\n"+
|
"func _ready():\n"+
|
||||||
"\t# Called every time the node is added to the scene.\n"+
|
"\t# Called every time the node is added to the scene.\n"+
|
||||||
"\t# Initialization here\n"+
|
"\t# Initialization here\n"+
|
||||||
"\tpass\n"+
|
"\tpass\n";
|
||||||
"\n"+
|
|
||||||
"\n";
|
|
||||||
|
|
||||||
return _template.replace("%BASE%",p_base_class_name);
|
return _template.replace("%BASE%",p_base_class_name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue