diff --git a/Assets/TResources/DLL.meta b/Assets/TResources/DLL.meta new file mode 100644 index 00000000..422af3c8 --- /dev/null +++ b/Assets/TResources/DLL.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: faa98a72a5e857f49b8d46dae4310ce2 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TEngineHotUpdate/GameApp.cs b/TEngineHotUpdate/GameApp.cs new file mode 100644 index 00000000..f4e8dc0b --- /dev/null +++ b/TEngineHotUpdate/GameApp.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using UnityEngine; +using UnityEngine.UI; + +namespace TEngineHotUpdate +{ + public class GameLogicMain + { + public static void Init() + { + Debug.Log("Init"); + } + + public static void Start() + { + Debug.Log("Start"); + } + + public static void Update() + { + Debug.Log("Update"); + } + + public static void LateUpdate() + { + Debug.Log("LateUpdate"); + } + + public static void Destroy() + { + + } + + public static void OnApplicationPause(bool isPause) + { + + } + } +} diff --git a/TEngineHotUpdate/Properties/AssemblyInfo.cs b/TEngineHotUpdate/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..acaab2e9 --- /dev/null +++ b/TEngineHotUpdate/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("GameLogic")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("GameLogic")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("2a2b3df5-ea8b-4d32-a1b0-f09c9af5e24e")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/TEngineHotUpdate/TEngineHotUpdate.csproj b/TEngineHotUpdate/TEngineHotUpdate.csproj new file mode 100644 index 00000000..58a320ae --- /dev/null +++ b/TEngineHotUpdate/TEngineHotUpdate.csproj @@ -0,0 +1,62 @@ + + + + + Debug + AnyCPU + {2A2B3DF5-EA8B-4D32-A1B0-F09C9AF5E24E} + Library + Properties + TEngineHotUpdate + TEngineHotUpdate + v4.7.2 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + UnityLib\UnityEngine.dll + + + UnityLib\UnityEngine.UI.dll + + + + + + + + + + + + + + call copy /y $(TargetDir)TEngineHotUpdate.dll $(ProjectDir)..\Assets\TResources\DLL\; + call "$(SolutionDir)..\Tools\pdb2mdb.exe" "$(TargetDir)TEngineHotUpdate.dll" + call copy /y $(TargetDir)TEngineHotUpdate.dll.mdb $(ProjectDir)..\Assets\TResources\DLL\; + del $(TargetDir)TEngineHotUpdate.dll.mdb; + + + \ No newline at end of file diff --git a/TEngineHotUpdate/TEngineHotUpdate.sln b/TEngineHotUpdate/TEngineHotUpdate.sln new file mode 100644 index 00000000..c1d14dd5 --- /dev/null +++ b/TEngineHotUpdate/TEngineHotUpdate.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32516.85 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TEngineHotUpdate", "TEngineHotUpdate.csproj", "{2A2B3DF5-EA8B-4D32-A1B0-F09C9AF5E24E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2A2B3DF5-EA8B-4D32-A1B0-F09C9AF5E24E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2A2B3DF5-EA8B-4D32-A1B0-F09C9AF5E24E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2A2B3DF5-EA8B-4D32-A1B0-F09C9AF5E24E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2A2B3DF5-EA8B-4D32-A1B0-F09C9AF5E24E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B26FD128-3F13-4A2E-9A8B-DF81DCAFC986} + EndGlobalSection +EndGlobal diff --git a/TEngineHotUpdate/UnityLib/2019.4.12/UnityEngine.UI.dll b/TEngineHotUpdate/UnityLib/2019.4.12/UnityEngine.UI.dll new file mode 100644 index 00000000..d83e6ba0 Binary files /dev/null and b/TEngineHotUpdate/UnityLib/2019.4.12/UnityEngine.UI.dll differ diff --git a/TEngineHotUpdate/UnityLib/2019.4.12/UnityEngine.dll b/TEngineHotUpdate/UnityLib/2019.4.12/UnityEngine.dll new file mode 100644 index 00000000..dd1853bf Binary files /dev/null and b/TEngineHotUpdate/UnityLib/2019.4.12/UnityEngine.dll differ diff --git a/TEngineHotUpdate/UnityLib/UnityEngine.UI.dll b/TEngineHotUpdate/UnityLib/UnityEngine.UI.dll new file mode 100644 index 00000000..d83e6ba0 Binary files /dev/null and b/TEngineHotUpdate/UnityLib/UnityEngine.UI.dll differ diff --git a/TEngineHotUpdate/UnityLib/UnityEngine.dll b/TEngineHotUpdate/UnityLib/UnityEngine.dll new file mode 100644 index 00000000..dd1853bf Binary files /dev/null and b/TEngineHotUpdate/UnityLib/UnityEngine.dll differ diff --git a/Tools/Mono.Cecil.Mdb.dll b/Tools/Mono.Cecil.Mdb.dll new file mode 100644 index 00000000..4ddd1044 Binary files /dev/null and b/Tools/Mono.Cecil.Mdb.dll differ diff --git a/Tools/Mono.Cecil.Pdb.dll b/Tools/Mono.Cecil.Pdb.dll new file mode 100644 index 00000000..ddfe05eb Binary files /dev/null and b/Tools/Mono.Cecil.Pdb.dll differ diff --git a/Tools/Mono.Cecil.dll b/Tools/Mono.Cecil.dll new file mode 100644 index 00000000..cb3321e3 Binary files /dev/null and b/Tools/Mono.Cecil.dll differ diff --git a/Tools/Mono.Security.dll b/Tools/Mono.Security.dll new file mode 100644 index 00000000..f0a82ba7 Binary files /dev/null and b/Tools/Mono.Security.dll differ diff --git a/Tools/pdb2mdb.exe b/Tools/pdb2mdb.exe new file mode 100644 index 00000000..b263a141 Binary files /dev/null and b/Tools/pdb2mdb.exe differ