Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,16 @@ root = true
generated_code = true
dotnet_analyzer_diagnostic.severity = none

# C# files
[*.cs]

# Godot Documentation says to use LF line endings
[*]
[*.cs]
end_of_line = lf

#### Core EditorConfig Options ####
insert_final_newline = true

# Indentation and spacing
indent_size = 4
indent_style = space
tab_width = 4

# New line preferences
end_of_line = crlf
insert_final_newline = true

# Allow implicit casting in foreach loop (Explicit casting is too verbose)
dotnet_diagnostic.IDE0220.severity = none

Expand Down
8 changes: 3 additions & 5 deletions Framework/Commands.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
using Godot;
using GodotUtils;
using GodotUtils.UI.Console;
using System.Collections.Generic;
using System.Linq;

namespace __TEMPLATE__.UI;
namespace GodotUtils.UI;

public partial class Commands : Node
public class Commands
{
public override void _Ready()
public static void RegisterAll()
{
GameConsole.RegisterCommand("help", CommandHelp);
GameConsole.RegisterCommand("quit", CommandQuit).WithAliases("exit");
Expand Down
1 change: 0 additions & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ config/icon="res://Framework/Icon.svg"

Autoloads="*res://Framework/GodotUtils/Scenes/Autoloads.tscn"
ImGuiRoot="*res://addons/imgui-godot/data/ImGuiRoot.tscn"
Commands="*res://Framework/Commands.cs"

[display]

Expand Down