Modularize Discord RPC (#247)

This commit delegates all Discord-related functions to DiscordManager.gd and adds a project setting bool to toggle using Discord RPC at all. Toggling off will reduce cpu and memory overhead when Discord is not needed.
This commit is contained in:
Jeod
2025-09-26 09:56:44 -04:00
committed by GitHub
parent c2eafee352
commit 1c309ce731
9 changed files with 72 additions and 29 deletions

View File

@@ -105,7 +105,7 @@ var undo_redo = UndoRedo.new()
func _ready() -> void:
$TileMenu.hide()
Global.set_discord_status("In The Level Editor...")
DiscordManager.set_discord_status("In The Level Editor...")
Global.level_editor = self
playing_level = false
menu_open = $TileMenu.visible