导入odin

This commit is contained in:
2026-01-01 23:09:08 +08:00
parent 9ceffccd39
commit 04dd4a23b2
814 changed files with 120820 additions and 87 deletions

View File

@@ -0,0 +1,21 @@
using System;
using UnityEngine;
namespace Obvious.Soap.Attributes
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
public class AutoTag : PropertyAttribute
{
public string Tag { get; }
public int TagIndex { get; }
public AutoTag(string tag)
{
Tag = tag;
}
public AutoTag(int tagIndex)
{
TagIndex = tagIndex;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 913f53a0ea7032745a8f5d59573865ae
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,10 @@
using System;
using UnityEngine;
namespace Obvious.Soap.Attributes
{
[AttributeUsage(AttributeTargets.Field)]
public class BeginDisabledGroup : PropertyAttribute
{
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 1cf2368cb3484b4287c9693b1774f000
timeCreated: 1736292126

View File

@@ -0,0 +1,10 @@
using System;
using UnityEngine;
namespace Obvious.Soap.Attributes
{
[AttributeUsage(AttributeTargets.Field)]
public class EndDisabledGroup : PropertyAttribute
{
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 5bd2c68066b34c2b8c448d7dfc474ad3
timeCreated: 1736297896

View File

@@ -0,0 +1,19 @@
using System;
using UnityEngine;
namespace Obvious.Soap.Attributes
{
/// <summary>
/// Marks fields to be injected with a runtime-created variable.
/// </summary>
[AttributeUsage(AttributeTargets.Field)]
public class RuntimeInjectableAttribute : PropertyAttribute
{
public string Id { get; private set; }
public RuntimeInjectableAttribute(string id)
{
Id = id;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5d7328a9d0d01164e9bc10bb2269a820
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,26 @@
using System;
using UnityEngine;
namespace Obvious.Soap.Attributes
{
/// <summary>
/// Show a field in the inspector if a condition is met. Hides it otherwise.
/// </summary>
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
public class ShowIfAttribute : PropertyAttribute
{
public readonly string conditionFieldName;
public readonly object comparisonValue;
public ShowIfAttribute(string conditionFieldName)
{
this.conditionFieldName = conditionFieldName;
}
public ShowIfAttribute(string conditionFieldName, object comparisonValue = null)
{
this.conditionFieldName = conditionFieldName;
this.comparisonValue = comparisonValue;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 66cce3e5364ae6449b41b0223e7b9c32
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,13 @@
using System;
using UnityEngine;
namespace Obvious.Soap.Attributes
{
[AttributeUsage(AttributeTargets.Field)]
public class SubAssetAttribute : PropertyAttribute
{
public SubAssetAttribute()
{
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 29ca5afb7d107004fad13a379011a7e6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: