Update
This commit is contained in:
@@ -9,12 +9,12 @@ namespace Nocturnis.DataStructures;
|
||||
|
||||
public class DataCache : CacheItem<DataVariable>
|
||||
{
|
||||
public new static DataCache Null => new (x => (0, GlobalProvider.DataStructureProvider!.NullDataType));
|
||||
public new static DataCache Null => new (x => (null, DataTypeConstant.BaseDataTypes.Null));
|
||||
public DataCache(Func<CacheItem, DataVariable> rec) : base(rec) => throw new Exception("CONSTRUCTION NOT ALLOWED");
|
||||
|
||||
public DataCache(Func<CacheItem, (object, DataType)> rec)
|
||||
{
|
||||
Value = GlobalProvider.DataStructureProvider!.NewData(0, DataTypeConstant.BaseDataTypes.Null);
|
||||
Value = new DataVariable();
|
||||
ProxyCalculator = rec;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user