diff options
author | Raul Santos <raulsntos@gmail.com> | 2023-02-02 00:54:16 +0100 |
---|---|---|
committer | Raul Santos <raulsntos@gmail.com> | 2023-05-29 19:04:02 +0200 |
commit | a1f454fee353fadbdb6f7032b6458f92be46560c (patch) | |
tree | b5dd332d65aeee6745845cbffb7feabc1c59ed35 /modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ExtensionMethods.cs | |
parent | 2eec9a67d564b11326f44c5ef8b6b6f9aec251b9 (diff) | |
download | redot-engine-a1f454fee353fadbdb6f7032b6458f92be46560c.tar.gz |
C#: Add global class support
Co-authored-by: willnationsdev <willnationsdev@gmail.com>
Diffstat (limited to 'modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ExtensionMethods.cs')
-rw-r--r-- | modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ExtensionMethods.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ExtensionMethods.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ExtensionMethods.cs index 7f627f0dc4..38af1cbade 100644 --- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ExtensionMethods.cs +++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ExtensionMethods.cs @@ -241,6 +241,9 @@ namespace Godot.SourceGenerators public static bool IsGodotClassNameAttribute(this INamedTypeSymbol symbol) => symbol.ToString() == GodotClasses.GodotClassNameAttr; + public static bool IsGodotGlobalClassAttribute(this INamedTypeSymbol symbol) + => symbol.ToString() == GodotClasses.GlobalClassAttr; + public static bool IsSystemFlagsAttribute(this INamedTypeSymbol symbol) => symbol.ToString() == GodotClasses.SystemFlagsAttr; |