34 changed files with 296 additions and 508 deletions
@ -0,0 +1,35 @@ |
|||||||
|
using System; |
||||||
|
using OfficeOpenXml; |
||||||
|
|
||||||
|
namespace Tools.ExcelResolver.Editor |
||||||
|
{ |
||||||
|
internal class TClassAndStruct : TType |
||||||
|
{ |
||||||
|
public TClassAndStruct() { } |
||||||
|
public TClassAndStruct(string typeText, Type classType) : base(typeText) |
||||||
|
{ |
||||||
|
RealType = classType; |
||||||
|
FieldWriteFormat = RealType.Name; |
||||||
|
} |
||||||
|
internal override Type RealType { get; } |
||||||
|
internal override object DefaultValue => null; |
||||||
|
internal override string FieldWriteFormat { get; } |
||||||
|
|
||||||
|
internal override bool String2TType(string typeText, out TType result) |
||||||
|
{ |
||||||
|
result = null; |
||||||
|
return false; |
||||||
|
} |
||||||
|
|
||||||
|
internal override object TryParseFrom(string cellText) |
||||||
|
{ |
||||||
|
throw new NotImplementedException("请使用另一个重载方法"); |
||||||
|
} |
||||||
|
|
||||||
|
internal object TryParseFrom(int row, int startCol, ExcelWorksheet worksheet) |
||||||
|
{ |
||||||
|
|
||||||
|
return null; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,3 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 350f4d6f292f4cb9ab7cdbad130f1e57 |
||||||
|
timeCreated: 1738651506 |
Binary file not shown.
@ -1,84 +0,0 @@ |
|||||||
%YAML 1.1 |
|
||||||
%TAG !u! tag:unity3d.com,2011: |
|
||||||
--- !u!114 &11400000 |
|
||||||
MonoBehaviour: |
|
||||||
m_ObjectHideFlags: 0 |
|
||||||
m_CorrespondingSourceObject: {fileID: 0} |
|
||||||
m_PrefabInstance: {fileID: 0} |
|
||||||
m_PrefabAsset: {fileID: 0} |
|
||||||
m_GameObject: {fileID: 0} |
|
||||||
m_Enabled: 1 |
|
||||||
m_EditorHideFlags: 0 |
|
||||||
m_Script: {fileID: 11500000, guid: a576b35de94d3344d8fbd0763d6dd001, type: 3} |
|
||||||
m_Name: monster2_1_1_1 |
|
||||||
m_EditorClassIdentifier: |
|
||||||
serializationData: |
|
||||||
SerializedFormat: 2 |
|
||||||
SerializedBytes: |
|
||||||
ReferencedUnityObjects: [] |
|
||||||
SerializedBytesString: |
|
||||||
Prefab: {fileID: 0} |
|
||||||
PrefabModificationsReferencedUnityObjects: [] |
|
||||||
PrefabModifications: [] |
|
||||||
SerializationNodes: |
|
||||||
- Name: nihao |
|
||||||
Entry: 7 |
|
||||||
Data: 0|System.Collections.Generic.Dictionary`2[[System.Int32, mscorlib],[System.Single, |
|
||||||
mscorlib]], mscorlib |
|
||||||
- Name: comparer |
|
||||||
Entry: 7 |
|
||||||
Data: 1|System.Collections.Generic.GenericEqualityComparer`1[[System.Int32, |
|
||||||
mscorlib]], mscorlib |
|
||||||
- Name: |
|
||||||
Entry: 8 |
|
||||||
Data: |
|
||||||
- Name: |
|
||||||
Entry: 12 |
|
||||||
Data: 2 |
|
||||||
- Name: |
|
||||||
Entry: 7 |
|
||||||
Data: |
|
||||||
- Name: $k |
|
||||||
Entry: 3 |
|
||||||
Data: 2 |
|
||||||
- Name: $v |
|
||||||
Entry: 4 |
|
||||||
Data: 2.3 |
|
||||||
- Name: |
|
||||||
Entry: 8 |
|
||||||
Data: |
|
||||||
- Name: |
|
||||||
Entry: 7 |
|
||||||
Data: |
|
||||||
- Name: $k |
|
||||||
Entry: 3 |
|
||||||
Data: 5 |
|
||||||
- Name: $v |
|
||||||
Entry: 4 |
|
||||||
Data: 4.6 |
|
||||||
- Name: |
|
||||||
Entry: 8 |
|
||||||
Data: |
|
||||||
- Name: |
|
||||||
Entry: 13 |
|
||||||
Data: |
|
||||||
- Name: |
|
||||||
Entry: 8 |
|
||||||
Data: |
|
||||||
id: 1 |
|
||||||
level: 1 |
|
||||||
star: 1 |
|
||||||
name: "\u9053\u58EB" |
|
||||||
icon: hero_1 |
|
||||||
has: 1 |
|
||||||
hp: 100 |
|
||||||
atk: 20 |
|
||||||
speed: 1.2 |
|
||||||
pos: {x: 0, y: 1, z: 9} |
|
||||||
ches: {x: 0, y: 1} |
|
||||||
attack_target: |
|
||||||
- {x: 1, y: 2} |
|
||||||
- {x: 1, y: 2} |
|
||||||
- {x: 1, y: 2} |
|
||||||
- {x: 1, y: 2} |
|
||||||
color: 3 |
|
@ -1,8 +0,0 @@ |
|||||||
fileFormatVersion: 2 |
|
||||||
guid: 1d616e671540a5e45a2e9bbc397473cd |
|
||||||
NativeFormatImporter: |
|
||||||
externalObjects: {} |
|
||||||
mainObjectFileID: 11400000 |
|
||||||
userData: |
|
||||||
assetBundleName: |
|
||||||
assetBundleVariant: |
|
@ -1,71 +0,0 @@ |
|||||||
%YAML 1.1 |
|
||||||
%TAG !u! tag:unity3d.com,2011: |
|
||||||
--- !u!114 &11400000 |
|
||||||
MonoBehaviour: |
|
||||||
m_ObjectHideFlags: 0 |
|
||||||
m_CorrespondingSourceObject: {fileID: 0} |
|
||||||
m_PrefabInstance: {fileID: 0} |
|
||||||
m_PrefabAsset: {fileID: 0} |
|
||||||
m_GameObject: {fileID: 0} |
|
||||||
m_Enabled: 1 |
|
||||||
m_EditorHideFlags: 0 |
|
||||||
m_Script: {fileID: 11500000, guid: 7198c6febd43b3e4e9bc3d03adee7ca6, type: 3} |
|
||||||
m_Name: _monster2Util |
|
||||||
m_EditorClassIdentifier: |
|
||||||
serializationData: |
|
||||||
SerializedFormat: 2 |
|
||||||
SerializedBytes: |
|
||||||
ReferencedUnityObjects: |
|
||||||
- {fileID: 11400000, guid: 1d616e671540a5e45a2e9bbc397473cd, type: 2} |
|
||||||
SerializedBytesString: |
|
||||||
Prefab: {fileID: 0} |
|
||||||
PrefabModificationsReferencedUnityObjects: [] |
|
||||||
PrefabModifications: [] |
|
||||||
SerializationNodes: |
|
||||||
- Name: Data |
|
||||||
Entry: 7 |
|
||||||
Data: 0|System.Collections.Generic.Dictionary`2[[System.ValueTuple`3[[System.Int32, |
|
||||||
mscorlib],[System.Int32, mscorlib],[System.Int32, mscorlib]], mscorlib],[Tools.ExcelResolver.monster2, |
|
||||||
Assembly-CSharp]], mscorlib |
|
||||||
- Name: comparer |
|
||||||
Entry: 7 |
|
||||||
Data: 1|System.Collections.Generic.GenericEqualityComparer`1[[System.ValueTuple`3[[System.Int32, |
|
||||||
mscorlib],[System.Int32, mscorlib],[System.Int32, mscorlib]], mscorlib]], |
|
||||||
mscorlib |
|
||||||
- Name: |
|
||||||
Entry: 8 |
|
||||||
Data: |
|
||||||
- Name: |
|
||||||
Entry: 12 |
|
||||||
Data: 1 |
|
||||||
- Name: |
|
||||||
Entry: 7 |
|
||||||
Data: |
|
||||||
- Name: $k |
|
||||||
Entry: 7 |
|
||||||
Data: System.ValueTuple`3[[System.Int32, mscorlib],[System.Int32, mscorlib],[System.Int32, |
|
||||||
mscorlib]], mscorlib |
|
||||||
- Name: Item1 |
|
||||||
Entry: 3 |
|
||||||
Data: 1 |
|
||||||
- Name: Item2 |
|
||||||
Entry: 3 |
|
||||||
Data: 1 |
|
||||||
- Name: Item3 |
|
||||||
Entry: 3 |
|
||||||
Data: 1 |
|
||||||
- Name: |
|
||||||
Entry: 8 |
|
||||||
Data: |
|
||||||
- Name: $v |
|
||||||
Entry: 10 |
|
||||||
Data: 0 |
|
||||||
- Name: |
|
||||||
Entry: 8 |
|
||||||
Data: |
|
||||||
- Name: |
|
||||||
Entry: 13 |
|
||||||
Data: |
|
||||||
- Name: |
|
||||||
Entry: 8 |
|
||||||
Data: |
|
@ -1,8 +0,0 @@ |
|||||||
fileFormatVersion: 2 |
|
||||||
guid: 917fe978c60c5cb49b2b3907a9ca328d |
|
||||||
NativeFormatImporter: |
|
||||||
externalObjects: {} |
|
||||||
mainObjectFileID: 11400000 |
|
||||||
userData: |
|
||||||
assetBundleName: |
|
||||||
assetBundleVariant: |
|
@ -1,5 +1,5 @@ |
|||||||
fileFormatVersion: 2 |
fileFormatVersion: 2 |
||||||
guid: b3a52cf4c5b05234bb6bc5e68daf29f9 |
guid: b73bb5af007b45341964af83ae76e1e9 |
||||||
folderAsset: yes |
folderAsset: yes |
||||||
DefaultImporter: |
DefaultImporter: |
||||||
externalObjects: {} |
externalObjects: {} |
@ -1,8 +0,0 @@ |
|||||||
fileFormatVersion: 2 |
|
||||||
guid: 5d697dbce85032d4dba2a90d7bb50290 |
|
||||||
folderAsset: yes |
|
||||||
DefaultImporter: |
|
||||||
externalObjects: {} |
|
||||||
userData: |
|
||||||
assetBundleName: |
|
||||||
assetBundleVariant: |
|
@ -1,26 +0,0 @@ |
|||||||
%YAML 1.1 |
|
||||||
%TAG !u! tag:unity3d.com,2011: |
|
||||||
--- !u!114 &11400000 |
|
||||||
MonoBehaviour: |
|
||||||
m_ObjectHideFlags: 0 |
|
||||||
m_CorrespondingSourceObject: {fileID: 0} |
|
||||||
m_PrefabInstance: {fileID: 0} |
|
||||||
m_PrefabAsset: {fileID: 0} |
|
||||||
m_GameObject: {fileID: 0} |
|
||||||
m_Enabled: 1 |
|
||||||
m_EditorHideFlags: 0 |
|
||||||
m_Script: {fileID: 11500000, guid: 65d0d896e6a9aba4c86524d1ead223f2, type: 3} |
|
||||||
m_Name: _comUtil |
|
||||||
m_EditorClassIdentifier: |
|
||||||
serializationData: |
|
||||||
SerializedFormat: 2 |
|
||||||
SerializedBytes: |
|
||||||
ReferencedUnityObjects: [] |
|
||||||
SerializedBytesString: |
|
||||||
Prefab: {fileID: 0} |
|
||||||
PrefabModificationsReferencedUnityObjects: [] |
|
||||||
PrefabModifications: [] |
|
||||||
SerializationNodes: [] |
|
||||||
cangku_chushi: 3 |
|
||||||
des_xishu: 2 |
|
||||||
ta_chushi_unlock: 01000000cc00000091010000cb000000 |
|
@ -1,8 +0,0 @@ |
|||||||
fileFormatVersion: 2 |
|
||||||
guid: 7ee0eb7708acae845ae0445697042da4 |
|
||||||
NativeFormatImporter: |
|
||||||
externalObjects: {} |
|
||||||
mainObjectFileID: 11400000 |
|
||||||
userData: |
|
||||||
assetBundleName: |
|
||||||
assetBundleVariant: |
|
@ -1,8 +0,0 @@ |
|||||||
fileFormatVersion: 2 |
|
||||||
guid: f681dec3cba786f4ba476100c5a6f29e |
|
||||||
folderAsset: yes |
|
||||||
DefaultImporter: |
|
||||||
externalObjects: {} |
|
||||||
userData: |
|
||||||
assetBundleName: |
|
||||||
assetBundleVariant: |
|
@ -1,24 +0,0 @@ |
|||||||
%YAML 1.1 |
|
||||||
%TAG !u! tag:unity3d.com,2011: |
|
||||||
--- !u!114 &11400000 |
|
||||||
MonoBehaviour: |
|
||||||
m_ObjectHideFlags: 0 |
|
||||||
m_CorrespondingSourceObject: {fileID: 0} |
|
||||||
m_PrefabInstance: {fileID: 0} |
|
||||||
m_PrefabAsset: {fileID: 0} |
|
||||||
m_GameObject: {fileID: 0} |
|
||||||
m_Enabled: 1 |
|
||||||
m_EditorHideFlags: 0 |
|
||||||
m_Script: {fileID: 11500000, guid: 352ae4160560b684498c8ef06a908f94, type: 3} |
|
||||||
m_Name: _monster3Util |
|
||||||
m_EditorClassIdentifier: |
|
||||||
serializationData: |
|
||||||
SerializedFormat: 2 |
|
||||||
SerializedBytes: |
|
||||||
ReferencedUnityObjects: [] |
|
||||||
SerializedBytesString: |
|
||||||
Prefab: {fileID: 0} |
|
||||||
PrefabModificationsReferencedUnityObjects: [] |
|
||||||
PrefabModifications: [] |
|
||||||
SerializationNodes: [] |
|
||||||
Data: [] |
|
@ -1,8 +0,0 @@ |
|||||||
fileFormatVersion: 2 |
|
||||||
guid: 3648edb4f0c677a4485b6b4c2deef683 |
|
||||||
NativeFormatImporter: |
|
||||||
externalObjects: {} |
|
||||||
mainObjectFileID: 11400000 |
|
||||||
userData: |
|
||||||
assetBundleName: |
|
||||||
assetBundleVariant: |
|
@ -0,0 +1,17 @@ |
|||||||
|
namespace Tools.ExcelResolver |
||||||
|
{ |
||||||
|
public class Item |
||||||
|
{ |
||||||
|
public int id; |
||||||
|
public int refId; |
||||||
|
public string name; |
||||||
|
public int price; |
||||||
|
} |
||||||
|
public struct ItemStruct |
||||||
|
{ |
||||||
|
public int id; |
||||||
|
public int refId; |
||||||
|
public string name; |
||||||
|
public int price; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,3 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 44468ff6f4f44332a951837539234633 |
||||||
|
timeCreated: 1738650601 |
@ -1,93 +0,0 @@ |
|||||||
//------------------------------------------------------------------------------ |
|
||||||
// <auto-generated> |
|
||||||
// This code was generated by a tool. |
|
||||||
// Runtime Version:4.0.30319.42000 |
|
||||||
// |
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if |
|
||||||
// the code is regenerated. |
|
||||||
// </auto-generated> |
|
||||||
//------------------------------------------------------------------------------ |
|
||||||
|
|
||||||
namespace Tools.ExcelResolver |
|
||||||
{ |
|
||||||
using System; |
|
||||||
using System.Collections; |
|
||||||
using System.Collections.Generic; |
|
||||||
using UnityEngine; |
|
||||||
using Sirenix.OdinInspector; |
|
||||||
|
|
||||||
|
|
||||||
public class monster2 : SerializedScriptableObject, IExcelSOData |
|
||||||
{ |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 英雄 |
|
||||||
/// </summary> |
|
||||||
public int id; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 等级 |
|
||||||
/// </summary> |
|
||||||
public int level; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 星级 |
|
||||||
/// </summary> |
|
||||||
public int star; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 名称 |
|
||||||
/// </summary> |
|
||||||
public string name; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// icon |
|
||||||
/// </summary> |
|
||||||
public string icon; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 有宠物 |
|
||||||
/// </summary> |
|
||||||
public bool has; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 血量 |
|
||||||
/// </summary> |
|
||||||
public int hp; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 攻击力 |
|
||||||
/// </summary> |
|
||||||
public int atk; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 移速 |
|
||||||
/// </summary> |
|
||||||
public float speed; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 位置 |
|
||||||
/// </summary> |
|
||||||
public Vector3 pos; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 位置 |
|
||||||
/// </summary> |
|
||||||
public Vector2 ches; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 攻击优先级 |
|
||||||
/// </summary> |
|
||||||
public List<Vector2> attack_target; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 你好 |
|
||||||
/// </summary> |
|
||||||
public Dictionary<Int32, Single> nihao; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// |
|
||||||
/// </summary> |
|
||||||
public CustomizeColor color; |
|
||||||
} |
|
||||||
} |
|
@ -1,2 +0,0 @@ |
|||||||
fileFormatVersion: 2 |
|
||||||
guid: a576b35de94d3344d8fbd0763d6dd001 |
|
@ -1,2 +0,0 @@ |
|||||||
fileFormatVersion: 2 |
|
||||||
guid: 7198c6febd43b3e4e9bc3d03adee7ca6 |
|
@ -0,0 +1,2 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 1c45734ab68bc9b4d9e31e53f3f360e2 |
@ -0,0 +1,2 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: ab74c9c14b1a72b438c93e10a5c51397 |
@ -1,38 +0,0 @@ |
|||||||
//------------------------------------------------------------------------------ |
|
||||||
// <auto-generated> |
|
||||||
// This code was generated by a tool. |
|
||||||
// Runtime Version:4.0.30319.42000 |
|
||||||
// |
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if |
|
||||||
// the code is regenerated. |
|
||||||
// </auto-generated> |
|
||||||
//------------------------------------------------------------------------------ |
|
||||||
|
|
||||||
namespace Tools.ExcelResolver |
|
||||||
{ |
|
||||||
using System; |
|
||||||
using System.Collections; |
|
||||||
using System.Collections.Generic; |
|
||||||
using UnityEngine; |
|
||||||
using Sirenix.OdinInspector; |
|
||||||
|
|
||||||
|
|
||||||
public class comUtil : SerializedScriptableObject, IExcelSOUtil |
|
||||||
{ |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 初始仓库空位数 |
|
||||||
/// </summary> |
|
||||||
public int cangku_chushi; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 防御系数 |
|
||||||
/// </summary> |
|
||||||
public int des_xishu; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 初始解锁的塔 |
|
||||||
/// </summary> |
|
||||||
public List<Int32> ta_chushi_unlock; |
|
||||||
} |
|
||||||
} |
|
@ -1,2 +0,0 @@ |
|||||||
fileFormatVersion: 2 |
|
||||||
guid: 65d0d896e6a9aba4c86524d1ead223f2 |
|
@ -1,98 +0,0 @@ |
|||||||
//------------------------------------------------------------------------------ |
|
||||||
// <auto-generated> |
|
||||||
// This code was generated by a tool. |
|
||||||
// Runtime Version:4.0.30319.42000 |
|
||||||
// |
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if |
|
||||||
// the code is regenerated. |
|
||||||
// </auto-generated> |
|
||||||
//------------------------------------------------------------------------------ |
|
||||||
|
|
||||||
namespace Tools.ExcelResolver |
|
||||||
{ |
|
||||||
using System; |
|
||||||
using System.Collections; |
|
||||||
using System.Collections.Generic; |
|
||||||
using UnityEngine; |
|
||||||
using Sirenix.OdinInspector; |
|
||||||
|
|
||||||
|
|
||||||
public class monster3 : SerializedScriptableObject, IExcelSOData |
|
||||||
{ |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 英雄 |
|
||||||
/// </summary> |
|
||||||
public int id; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 等级 |
|
||||||
/// </summary> |
|
||||||
public int level; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 星级 |
|
||||||
/// </summary> |
|
||||||
public int star; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 名称 |
|
||||||
/// </summary> |
|
||||||
public string name; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// icon |
|
||||||
/// </summary> |
|
||||||
public string icon; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 有宠物 |
|
||||||
/// </summary> |
|
||||||
public bool has; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 血量 |
|
||||||
/// </summary> |
|
||||||
public int hp; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 攻击力 |
|
||||||
/// </summary> |
|
||||||
public int atk; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 移速 |
|
||||||
/// </summary> |
|
||||||
public float speed; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 位置 |
|
||||||
/// </summary> |
|
||||||
public Vector3 pos; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 位置 |
|
||||||
/// </summary> |
|
||||||
public Vector2 ches; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 攻击优先级 |
|
||||||
/// </summary> |
|
||||||
public List<Vector2> attack_target; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// 你好 |
|
||||||
/// </summary> |
|
||||||
public Dictionary<Int32, Single> nihao; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// |
|
||||||
/// </summary> |
|
||||||
public Dictionary<Attribute, Int32> attribute; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// |
|
||||||
/// </summary> |
|
||||||
public CustomizeColor color; |
|
||||||
} |
|
||||||
} |
|
@ -1,2 +0,0 @@ |
|||||||
fileFormatVersion: 2 |
|
||||||
guid: 916e0a5dbd451394bb4ac42b142bbb9d |
|
@ -1,2 +0,0 @@ |
|||||||
fileFormatVersion: 2 |
|
||||||
guid: 352ae4160560b684498c8ef06a908f94 |
|
@ -0,0 +1,23 @@ |
|||||||
|
using System; |
||||||
|
using System.Linq; |
||||||
|
using Sirenix.OdinInspector; |
||||||
|
using UnityEngine; |
||||||
|
|
||||||
|
public class Test : MonoBehaviour |
||||||
|
{ |
||||||
|
[Button] |
||||||
|
private void TestButton() |
||||||
|
{ |
||||||
|
var a = AppDomain.CurrentDomain.GetAssemblies() |
||||||
|
.Where(a => a.GetName().Name |
||||||
|
// is "UnityEngine" |
||||||
|
is "Assembly-CSharp") |
||||||
|
// or "Assembly-CSharp-firstpass" |
||||||
|
// or "Assembly-CSharp-Editor" |
||||||
|
// or "Assembly-CSharp-Editor-firstpass") |
||||||
|
.SelectMany(a => a.GetTypes()) |
||||||
|
.Where(t => (t.IsClass || (t.IsValueType && !t.IsPrimitive && !t.IsEnum)) && string.Equals(t.Namespace, "Tools.ExcelResolver", StringComparison.Ordinal)) // IsPrimitive为基本类型如float,int等 |
||||||
|
.ToArray(); |
||||||
|
Debug.Log(a.Length); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,2 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 0612f54544cdb1841a14e836c052db63 |
@ -0,0 +1,121 @@ |
|||||||
|
{ |
||||||
|
"templatePinStates": [], |
||||||
|
"dependencyTypeInfos": [ |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.AnimationClip", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEditor.Animations.AnimatorController", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.AnimatorOverrideController", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEditor.Audio.AudioMixerController", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.ComputeShader", |
||||||
|
"defaultInstantiationMode": 1 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.Cubemap", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.GameObject", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEditor.LightingDataAsset", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.LightingSettings", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.Material", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEditor.MonoScript", |
||||||
|
"defaultInstantiationMode": 1 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.PhysicsMaterial", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.PhysicsMaterial2D", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.Rendering.VolumeProfile", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEditor.SceneAsset", |
||||||
|
"defaultInstantiationMode": 1 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.Shader", |
||||||
|
"defaultInstantiationMode": 1 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.ShaderVariantCollection", |
||||||
|
"defaultInstantiationMode": 1 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.Texture", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.Texture2D", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"userAdded": false, |
||||||
|
"type": "UnityEngine.Timeline.TimelineAsset", |
||||||
|
"defaultInstantiationMode": 0 |
||||||
|
} |
||||||
|
], |
||||||
|
"defaultDependencyTypeInfo": { |
||||||
|
"userAdded": false, |
||||||
|
"type": "<default_scene_template_dependencies>", |
||||||
|
"defaultInstantiationMode": 1 |
||||||
|
}, |
||||||
|
"newSceneOverride": 0 |
||||||
|
} |
Loading…
Reference in new issue