You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Merge pull request #71988 from raulsntos/🦭-attributes
Seal C# attributes
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Godot
|
|||||||
/// collection of types that implement scripts; otherwise, retrieving the types requires lookup.
|
/// collection of types that implement scripts; otherwise, retrieving the types requires lookup.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[AttributeUsage(AttributeTargets.Assembly)]
|
[AttributeUsage(AttributeTargets.Assembly)]
|
||||||
public class AssemblyHasScriptsAttribute : Attribute
|
public sealed class AssemblyHasScriptsAttribute : Attribute
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If the Godot scripts contained in the assembly require lookup
|
/// If the Godot scripts contained in the assembly require lookup
|
||||||
|
|||||||
@@ -7,5 +7,5 @@ namespace Godot
|
|||||||
/// that can be marshaled from/to a <see cref="Variant"/>.
|
/// that can be marshaled from/to a <see cref="Variant"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[AttributeUsage(AttributeTargets.GenericParameter)]
|
[AttributeUsage(AttributeTargets.GenericParameter)]
|
||||||
public class MustBeVariantAttribute : Attribute { }
|
public sealed class MustBeVariantAttribute : Attribute { }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace Godot
|
|||||||
/// By default, methods are not exposed to networking (and RPCs).
|
/// By default, methods are not exposed to networking (and RPCs).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
|
||||||
public class RPCAttribute : Attribute
|
public sealed class RPCAttribute : Attribute
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// RPC mode for the annotated method.
|
/// RPC mode for the annotated method.
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace Godot
|
|||||||
/// An attribute that contains the path to the object's script.
|
/// An attribute that contains the path to the object's script.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
|
||||||
public class ScriptPathAttribute : Attribute
|
public sealed class ScriptPathAttribute : Attribute
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// File path to the script.
|
/// File path to the script.
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ using System;
|
|||||||
namespace Godot
|
namespace Godot
|
||||||
{
|
{
|
||||||
[AttributeUsage(AttributeTargets.Delegate)]
|
[AttributeUsage(AttributeTargets.Delegate)]
|
||||||
public class SignalAttribute : Attribute { }
|
public sealed class SignalAttribute : Attribute { }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ using System;
|
|||||||
namespace Godot
|
namespace Godot
|
||||||
{
|
{
|
||||||
[AttributeUsage(AttributeTargets.Class)]
|
[AttributeUsage(AttributeTargets.Class)]
|
||||||
public class ToolAttribute : Attribute { }
|
public sealed class ToolAttribute : Attribute { }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user