mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Convert _notification methods to switch - Chunk C
This commit is contained in:
parent
98b97d34df
commit
6553f5c242
37 changed files with 378 additions and 327 deletions
|
@ -45,17 +45,20 @@ GDScriptLanguageServer::GDScriptLanguageServer() {
|
|||
|
||||
void GDScriptLanguageServer::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
start();
|
||||
break;
|
||||
case NOTIFICATION_EXIT_TREE:
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
stop();
|
||||
break;
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_INTERNAL_PROCESS: {
|
||||
if (started && !use_thread) {
|
||||
protocol.poll();
|
||||
}
|
||||
} break;
|
||||
|
||||
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
|
||||
String host = String(_EDITOR_GET("network/language_server/remote_host"));
|
||||
int port = (int)_EDITOR_GET("network/language_server/remote_port");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue