refactor: Update Unity to 2022.3.62
This commit is contained in:
@@ -65,8 +65,7 @@ namespace Cryville.Crtr {
|
||||
public StringArray(Action<string[]> cb) : base(cb) { }
|
||||
protected override unsafe void Execute() {
|
||||
var op = GetOperand(0);
|
||||
int arrtype; int len;
|
||||
op.GetArraySuffix(out arrtype, out len);
|
||||
op.GetArraySuffix(out int arrtype, out int len);
|
||||
if (arrtype != PdtInternalType.String) throw new InvalidCastException("Not an array of strings");
|
||||
var result = new string[len];
|
||||
int o = 0;
|
||||
@@ -100,7 +99,7 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
public class Enum : Fixed<object> {
|
||||
readonly Type _type;
|
||||
readonly IntKeyedDictionary<int> _cache = new IntKeyedDictionary<int>();
|
||||
readonly IntKeyedDictionary<int> _cache = new();
|
||||
public Enum(Type type, Action<object> cb) : base(cb) {
|
||||
if (!type.IsEnum)
|
||||
throw new ArgumentException("Type is not enum");
|
||||
@@ -117,7 +116,7 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
}
|
||||
public class Enum<T> : Fixed<T> {
|
||||
static readonly IntKeyedDictionary<int> _cache = new IntKeyedDictionary<int>();
|
||||
static readonly IntKeyedDictionary<int> _cache = new();
|
||||
readonly Func<int, T> _caster;
|
||||
static Enum() {
|
||||
if (!typeof(T).IsEnum)
|
||||
|
Reference in New Issue
Block a user