This commit is contained in:
CortexCore
2024-11-03 16:42:23 +08:00
commit b125894cc3
5904 changed files with 1070129 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BITKit
{
[System.Serializable]
public record DataReference : References
{
[SubclassSelector, SerializeReference] public References value;
public override string Get()
{
return Data.Get<string>(value) ?? value;
}
}
[System.Serializable]
public record DataReference<T> : References<T>
{
public DataReference(string key)
{
this.key = key;
}
public readonly string key;
public override T Get()
{
return Data.Get<T>(key);
}
}
}