This commit is contained in:
CortexCore
2023-06-05 19:57:17 +08:00
parent f05e28ec58
commit 7f2fea821c
6195 changed files with 489001 additions and 636 deletions

View File

@@ -0,0 +1,29 @@
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);
}
}
}