-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
// Place your snippets for gdscript here. Each snippet is defined under a snippet name and has a prefix, body and | ||
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | ||
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | ||
// same ids are connected. | ||
// Example: | ||
// "Print to console": { | ||
// "prefix": "log", | ||
// "body": [ | ||
// "console.log('$1');", | ||
// "$2" | ||
// ], | ||
// "description": "Log output to console" | ||
// } | ||
"cn": { | ||
"prefix": "cn", | ||
"body": [ | ||
"class_name ${1:SomeClass}", | ||
], | ||
"description": "Class Name" | ||
}, | ||
"_ready": { | ||
"prefix": "_ready", | ||
"body": [ | ||
"func _ready() -> void:", | ||
"\t${1:pass}" | ||
], | ||
"description": "Ready" | ||
}, | ||
"_process": { | ||
"prefix": "_process", | ||
"body": [ | ||
"func _process(_delta: float) -> void:", | ||
"\t${1:pass}" | ||
], | ||
"description": "Process" | ||
}, | ||
"_physics_process": { | ||
"prefix": "_physics_process", | ||
"body": [ | ||
"func _physics_process(_delta: float) -> void:", | ||
"\t${1:pass}" | ||
], | ||
"description": "Physics Process" | ||
}, | ||
"weakref": { | ||
"prefix": "var _target: WeakRef", | ||
"body": [ | ||
"var _${1:target}: WeakRef", | ||
"var ${1:target}: ${2:Node2D}:", | ||
"\tget:", | ||
"\t\treturn _${1:target}.get_ref() if _${1:target} else null", | ||
"\tset(value):", | ||
"\t\t_${1:target} = weakref(value)" | ||
], | ||
"description": "WeakRef" | ||
}, | ||
} |