[Mono] Move several small related files
This commit is contained in:
parent
a1b594c2fc
commit
514856d8c7
17
modules/mono/glue/cs_files/Attributes/ExportAttribute.cs
Normal file
17
modules/mono/glue/cs_files/Attributes/ExportAttribute.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace Godot
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
|
||||
public class ExportAttribute : Attribute
|
||||
{
|
||||
private PropertyHint hint;
|
||||
private string hintString;
|
||||
|
||||
public ExportAttribute(PropertyHint hint = PropertyHint.None, string hintString = "")
|
||||
{
|
||||
this.hint = hint;
|
||||
this.hintString = hintString;
|
||||
}
|
||||
}
|
||||
}
|
7
modules/mono/glue/cs_files/Attributes/ToolAttribute.cs
Normal file
7
modules/mono/glue/cs_files/Attributes/ToolAttribute.cs
Normal file
@ -0,0 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace Godot
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class ToolAttribute : Attribute {}
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace Godot
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
|
||||
public class ExportAttribute : Attribute
|
||||
{
|
||||
private PropertyHint hint;
|
||||
private string hintString;
|
||||
|
||||
public ExportAttribute(PropertyHint hint = PropertyHint.None, string hintString = "")
|
||||
{
|
||||
this.hint = hint;
|
||||
this.hintString = hintString;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Godot
|
||||
{
|
||||
public interface IAwaiter : INotifyCompletion
|
||||
{
|
||||
bool IsCompleted { get; }
|
||||
|
||||
void GetResult();
|
||||
}
|
||||
|
||||
public interface IAwaiter<out TResult> : INotifyCompletion
|
||||
{
|
||||
bool IsCompleted { get; }
|
||||
|
||||
TResult GetResult();
|
||||
}
|
||||
}
|
18
modules/mono/glue/cs_files/Interfaces/IAwaiter.cs
Normal file
18
modules/mono/glue/cs_files/Interfaces/IAwaiter.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Godot
|
||||
{
|
||||
public interface IAwaiter : INotifyCompletion
|
||||
{
|
||||
bool IsCompleted { get; }
|
||||
|
||||
void GetResult();
|
||||
}
|
||||
|
||||
public interface IAwaiter<out TResult> : INotifyCompletion
|
||||
{
|
||||
bool IsCompleted { get; }
|
||||
|
||||
TResult GetResult();
|
||||
}
|
||||
}
|
@ -1,5 +1,3 @@
|
||||
//using System;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
|
@ -1,7 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace Godot
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class ToolAttribute : Attribute {}
|
||||
}
|
Loading…
Reference in New Issue
Block a user