新增 FlowScope Git 包雏形
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
|
||||
namespace FlowScope.UI
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public sealed class UIPanelAttribute : Attribute
|
||||
{
|
||||
public UIPanelAttribute(string layer)
|
||||
: this(layer, null, null)
|
||||
{
|
||||
}
|
||||
|
||||
public UIPanelAttribute(string layer, string path)
|
||||
: this(layer, path, null)
|
||||
{
|
||||
}
|
||||
|
||||
public UIPanelAttribute(string layer, PanelStrategy overrideStrategy)
|
||||
: this(layer, null, overrideStrategy)
|
||||
{
|
||||
}
|
||||
|
||||
public UIPanelAttribute(string layer, string path, PanelStrategy overrideStrategy)
|
||||
: this(layer, path, (PanelStrategy?)overrideStrategy)
|
||||
{
|
||||
}
|
||||
|
||||
private UIPanelAttribute(
|
||||
string layer,
|
||||
string path,
|
||||
PanelStrategy? overrideStrategy)
|
||||
{
|
||||
Layer = layer;
|
||||
Path = path;
|
||||
OverrideStrategy = overrideStrategy;
|
||||
}
|
||||
|
||||
public string Layer { get; }
|
||||
public string Path { get; }
|
||||
public PanelStrategy? OverrideStrategy { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user