|
|
@ -37,34 +37,6 @@ namespace Tools.ExcelResolver.Editor |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
throw new Exception($"未找到类型 {typeText}"); |
|
|
|
throw new Exception($"未找到类型 {typeText}"); |
|
|
|
|
|
|
|
|
|
|
|
return typeText switch |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"int" => new TInt(), |
|
|
|
|
|
|
|
"float" => new TFloat(), |
|
|
|
|
|
|
|
"string" => new TString(), |
|
|
|
|
|
|
|
"bool" => new TBool(), |
|
|
|
|
|
|
|
"vector2" => new TVector2(), |
|
|
|
|
|
|
|
"vector3" => new TVector3(), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// "List<int>" => typeof(List<int>), |
|
|
|
|
|
|
|
// "List<float>" => typeof(List<float>), |
|
|
|
|
|
|
|
// "List<string>" => typeof(List<string>), |
|
|
|
|
|
|
|
// "List<bool>" => typeof(List<bool>), |
|
|
|
|
|
|
|
// "List<Vector2>" => typeof(List<Vector2>), |
|
|
|
|
|
|
|
// "List<Vector3>" => typeof(List<Vector3>), |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// "List<List<int>>" => typeof(List<List<int>>), |
|
|
|
|
|
|
|
// "List<List<float>>" => typeof(List<List<float>>), |
|
|
|
|
|
|
|
// "List<List<string>>" => typeof(List<List<string>>), |
|
|
|
|
|
|
|
// "List<List<bool>>" => typeof(List<List<bool>>), |
|
|
|
|
|
|
|
// "List<List<Vector2>>" => typeof(List<List<Vector2>>), |
|
|
|
|
|
|
|
// "List<List<Vector3>>" => typeof(List<List<Vector3>>), |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// "enum" => typeof(Enum), |
|
|
|
|
|
|
|
// "DateTime" => typeof(DateTime), |
|
|
|
|
|
|
|
_ => null, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |