第一批重构,主要是物理迁移脚本和部分命名空间的调整

- 结构上迁移文件,将脚本分成 Base/Runtime/Presentation/Procedure/Editor 五大文件夹
- 调整 DataTable 和 Definition 下脚本的命名空间
- 依据 UI-5层架构设计规范 拆分原先的 UI 到 Runtime 和 Presentation 下
This commit is contained in:
SepComet 2026-06-02 19:12:34 +08:00
parent 56f74eee9a
commit 34c0784190
655 changed files with 1272 additions and 516 deletions

View File

@ -3,7 +3,7 @@
<ResourceBuilder> <ResourceBuilder>
<Settings> <Settings>
<InternalResourceVersion>1</InternalResourceVersion> <InternalResourceVersion>1</InternalResourceVersion>
<Platforms>1</Platforms> <Platforms>33</Platforms>
<AssetBundleCompression>1</AssetBundleCompression> <AssetBundleCompression>1</AssetBundleCompression>
<CompressionHelperTypeName>UnityGameFramework.Runtime.DefaultCompressionHelper</CompressionHelperTypeName> <CompressionHelperTypeName>UnityGameFramework.Runtime.DefaultCompressionHelper</CompressionHelperTypeName>
<AdditionalCompressionSelected>False</AdditionalCompressionSelected> <AdditionalCompressionSelected>False</AdditionalCompressionSelected>

View File

@ -1,9 +1,8 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: edd16bf2e418bec43bc774c7fc6c60d6 guid: 5ed0f22b675178e488a2cc585b6f78cb
folderAsset: yes folderAsset: yes
timeCreated: 1528026145
licenseType: Pro
DefaultImporter: DefaultImporter:
externalObjects: {}
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:

View File

@ -1,15 +1,8 @@
//------------------------------------------------------------ using System;
// Game Framework
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
// Homepage: https://gameframework.cn/
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------
using System;
using System.IO; using System.IO;
using UnityEngine; using UnityEngine;
namespace DataTable namespace SepCore.DataTable
{ {
public static class BinaryReaderExtension public static class BinaryReaderExtension
{ {

View File

@ -1,6 +1,6 @@
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace DataTable namespace SepCore.DataTable
{ {
/// <summary> /// <summary>
/// Bullet config table. /// Bullet config table.

View File

@ -2,7 +2,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace DataTable namespace SepCore.DataTable
{ {
public class DREnemy : DataRowBase public class DREnemy : DataRowBase
{ {

View File

@ -1,18 +1,8 @@
//------------------------------------------------------------ using System.IO;
// Game Framework
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
// Homepage: https://gameframework.cn/
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------
// 此文件由工具自动生成,请勿直接修改。
// 生成时间2021-06-16 21:54:35.576
//------------------------------------------------------------
using System.IO;
using System.Text; using System.Text;
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace DataTable namespace SepCore.DataTable
{ {
/// <summary> /// <summary>
/// 实体表。 /// 实体表。
@ -71,4 +61,4 @@ namespace DataTable
{ {
} }
} }
} }

View File

@ -1,8 +1,8 @@
using Definition.Enum; using SepCore.Definition;
using CustomUtility; using CustomUtility;
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace DataTable namespace SepCore.DataTable
{ {
public class DRGoods : DataRowBase public class DRGoods : DataRowBase
{ {

View File

@ -1,9 +1,9 @@
using System; using System;
using CustomUtility; using CustomUtility;
using Definition.Enum; using SepCore.Definition;
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace DataTable namespace SepCore.DataTable
{ {
public class DRLevel : DataRowBase public class DRLevel : DataRowBase
{ {

View File

@ -1,6 +1,6 @@
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace DataTable namespace SepCore.DataTable
{ {
public class DRLevelRarity : DataRowBase public class DRLevelRarity : DataRowBase
{ {

View File

@ -1,10 +1,9 @@
using Definition.DataStruct; using SepCore.Definition;
using Definition.Enum;
using Newtonsoft.Json; using Newtonsoft.Json;
using CustomUtility; using CustomUtility;
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace DataTable namespace SepCore.DataTable
{ {
public class DRLevelUpReward : DataRowBase public class DRLevelUpReward : DataRowBase
{ {

View File

@ -1,22 +1,8 @@
//------------------------------------------------------------ using System.IO;
// Game Framework
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
// Homepage: https://gameframework.cn/
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------
// 此文件由工具自动生成,请勿直接修改。
// 生成时间2021-06-16 21:54:35.591
//------------------------------------------------------------
using GameFramework;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text; using System.Text;
using UnityEngine;
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace DataTable namespace SepCore.DataTable
{ {
/// <summary> /// <summary>
/// 音乐配置表。 /// 音乐配置表。
@ -75,4 +61,4 @@ namespace DataTable
{ {
} }
} }
} }

View File

@ -1,10 +1,9 @@
using Definition.DataStruct; using SepCore.Definition;
using Newtonsoft.Json; using Newtonsoft.Json;
using CustomUtility; using CustomUtility;
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
using Definition.Enum;
namespace DataTable namespace SepCore.DataTable
{ {
public class DRProp : DataRowBase public class DRProp : DataRowBase
{ {

View File

@ -2,13 +2,12 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Text; using System.Text;
using Definition.DataStruct; using SepCore.Definition;
using Definition.Enum;
using GameFramework; using GameFramework;
using StarForce; using StarForce;
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace DataTable namespace SepCore.DataTable
{ {
public class DRRole : DataRowBase public class DRRole : DataRowBase
{ {

View File

@ -1,18 +1,8 @@
//------------------------------------------------------------ using System.IO;
// Game Framework
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
// Homepage: https://gameframework.cn/
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------
// 此文件由工具自动生成,请勿直接修改。
// 生成时间2021-06-16 21:54:35.610
//------------------------------------------------------------
using System.IO;
using System.Text; using System.Text;
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace DataTable namespace SepCore.DataTable
{ {
/// <summary> /// <summary>
/// 场景配置表。 /// 场景配置表。
@ -78,4 +68,4 @@ namespace DataTable
{ {
} }
} }
} }

View File

@ -1,22 +1,8 @@
//------------------------------------------------------------ using System.IO;
// Game Framework
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
// Homepage: https://gameframework.cn/
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------
// 此文件由工具自动生成,请勿直接修改。
// 生成时间2021-06-16 21:54:35.625
//------------------------------------------------------------
using GameFramework;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text; using System.Text;
using UnityEngine;
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace DataTable namespace SepCore.DataTable
{ {
/// <summary> /// <summary>
/// 声音配置表。 /// 声音配置表。
@ -110,4 +96,4 @@ namespace DataTable
{ {
} }
} }
} }

View File

@ -1,22 +1,8 @@
//------------------------------------------------------------ using System.IO;
// Game Framework
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
// Homepage: https://gameframework.cn/
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------
// 此文件由工具自动生成,请勿直接修改。
// 生成时间2021-06-16 21:54:35.652
//------------------------------------------------------------
using GameFramework;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text; using System.Text;
using UnityEngine;
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace DataTable namespace SepCore.DataTable
{ {
/// <summary> /// <summary>
/// 界面配置表。 /// 界面配置表。
@ -96,4 +82,4 @@ namespace DataTable
{ {
} }
} }
} }

View File

@ -1,22 +1,8 @@
//------------------------------------------------------------ using System.IO;
// Game Framework
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
// Homepage: https://gameframework.cn/
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------
// 此文件由工具自动生成,请勿直接修改。
// 生成时间2021-06-16 21:54:35.666
//------------------------------------------------------------
using GameFramework;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text; using System.Text;
using UnityEngine;
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace DataTable namespace SepCore.DataTable
{ {
/// <summary> /// <summary>
/// 声音配置表。 /// 声音配置表。
@ -89,4 +75,4 @@ namespace DataTable
{ {
} }
} }
} }

View File

@ -1,14 +1,12 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using Definition.DataStruct; using SepCore.Definition;
using Definition.Enum;
using GameFramework; using GameFramework;
using CustomUtility; using CustomUtility;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using UnityEngine;
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace DataTable namespace SepCore.DataTable
{ {
/// <summary> /// <summary>
/// 武器表。 /// 武器表。

View File

@ -1,21 +1,14 @@
//------------------------------------------------------------ using GameFramework.DataTable;
// Game Framework
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
// Homepage: https://gameframework.cn/
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------
using GameFramework.DataTable;
using System; using System;
using Definition; using SepCore.Definition;
using UnityEngine; using UnityEngine;
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace DataTable namespace SepCore.DataTable
{ {
public static class DataTableExtension public static class DataTableExtension
{ {
private const string DataRowClassPrefixName = "DataTable.DR"; private const string DataRowClassPrefixName = "SepCore.DataTable.DR";
internal static readonly char[] DataSplitSeparators = new char[] { '\t' }; internal static readonly char[] DataSplitSeparators = new char[] { '\t' };
internal static readonly char[] DataTrimSeparators = new char[] { '\"' }; internal static readonly char[] DataTrimSeparators = new char[] { '\"' };
@ -101,4 +94,4 @@ namespace DataTable
return dataTableComponent.GetDataTable<T>().GetDataRow(id); return dataTableComponent.GetDataTable<T>().GetDataRow(id);
} }
} }
} }

View File

@ -5,7 +5,7 @@
// Feedback: mailto:ellan@gameframework.cn // Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------ //------------------------------------------------------------
namespace Definition namespace SepCore.Definition
{ {
public static partial class Constant public static partial class Constant
{ {

View File

@ -7,7 +7,7 @@
using UnityEngine; using UnityEngine;
namespace Definition namespace SepCore.Definition
{ {
public static partial class Constant public static partial class Constant
{ {

View File

@ -5,7 +5,7 @@
// Feedback: mailto:ellan@gameframework.cn // Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------ //------------------------------------------------------------
namespace Definition namespace SepCore.Definition
{ {
public static partial class Constant public static partial class Constant
{ {

View File

@ -5,7 +5,7 @@
// Feedback: mailto:ellan@gameframework.cn // Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------ //------------------------------------------------------------
namespace Definition.DataStruct namespace SepCore.Definition
{ {
public class BuildInfo public class BuildInfo
{ {

View File

@ -6,9 +6,9 @@
//------------------------------------------------------------ //------------------------------------------------------------
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using Definition.Enum; using SepCore.Definition;
namespace Definition.DataStruct namespace SepCore.Definition
{ {
[StructLayout(LayoutKind.Auto)] [StructLayout(LayoutKind.Auto)]
public struct ImpactData public struct ImpactData

View File

@ -1,8 +1,8 @@
using Components; using Components;
using DataTable; using SepCore.DataTable;
using Definition.Enum; using SepCore.Definition;
namespace Definition.DataStruct namespace SepCore.Definition
{ {
public class PropItem public class PropItem
{ {

View File

@ -1,9 +1,9 @@
using System; using System;
using Definition.Enum; using SepCore.Definition;
using CustomUtility; using CustomUtility;
using UnityGameFramework.Runtime; using UnityGameFramework.Runtime;
namespace Definition.DataStruct namespace SepCore.Definition
{ {
public class StatModifier public class StatModifier
{ {

View File

@ -1,4 +1,4 @@
namespace Definition.DataStruct namespace SepCore.Definition
{ {
public class StatProperty public class StatProperty
{ {

View File

@ -5,7 +5,7 @@
// Feedback: mailto:ellan@gameframework.cn // Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------ //------------------------------------------------------------
namespace Definition.DataStruct namespace SepCore.Definition
{ {
public class VersionInfo public class VersionInfo
{ {

View File

@ -1,4 +1,4 @@
namespace Definition.Enum namespace SepCore.Definition
{ {
public enum BulletType : byte public enum BulletType : byte
{ {

View File

@ -5,7 +5,7 @@
// Feedback: mailto:ellan@gameframework.cn // Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------ //------------------------------------------------------------
namespace Definition.Enum namespace SepCore.Definition
{ {
/// <summary> /// <summary>
/// 阵营类型。 /// 阵营类型。

View File

@ -1,4 +1,4 @@
namespace Definition.Enum namespace SepCore.Definition
{ {
public enum EnemyType : byte public enum EnemyType : byte
{ {

View File

@ -1,4 +1,4 @@
namespace Definition.Enum namespace SepCore.Definition
{ {
public enum GoodsType public enum GoodsType
{ {

View File

@ -1,4 +1,4 @@
namespace Definition.Enum namespace SepCore.Definition
{ {
public enum ItemRarity public enum ItemRarity
{ {

View File

@ -5,7 +5,7 @@
// Feedback: mailto:ellan@gameframework.cn // Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------ //------------------------------------------------------------
namespace Definition.Enum namespace SepCore.Definition
{ {
/// <summary> /// <summary>
/// 关系类型。 /// 关系类型。

View File

@ -1,4 +1,4 @@
namespace Scene namespace SepCore.Definition
{ {
public enum SceneId : byte public enum SceneId : byte
{ {

View File

@ -1,4 +1,4 @@
namespace Definition.Enum namespace SepCore.Definition
{ {
public enum StatType public enum StatType
{ {

View File

@ -5,7 +5,7 @@
// Feedback: mailto:ellan@gameframework.cn // Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------ //------------------------------------------------------------
namespace Definition.Enum namespace SepCore.Definition
{ {
/// <summary> /// <summary>
/// 界面编号。 /// 界面编号。

View File

@ -1,4 +1,4 @@
namespace Definition.Enum namespace SepCore.Definition
{ {
public enum WeaponType : byte public enum WeaponType : byte
{ {

View File

@ -6,7 +6,7 @@
//------------------------------------------------------------ //------------------------------------------------------------
using System; using System;
using Definition.Enum; using SepCore.Definition;
using StarForce; using StarForce;
using UnityEngine; using UnityEngine;

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using DataTable; using SepCore.DataTable;
using Definition.Enum; using SepCore.Definition;
using UnityEngine; using UnityEngine;
namespace Entity.EntityData namespace Entity.EntityData

View File

@ -1,5 +1,5 @@
using System; using System;
using Definition.Enum; using SepCore.Definition;
using UnityEngine; using UnityEngine;
namespace Entity.EntityData namespace Entity.EntityData

View File

@ -1,6 +1,6 @@
using System; using System;
using DataTable; using SepCore.DataTable;
using Definition.Enum; using SepCore.Definition;
namespace Entity.EntityData namespace Entity.EntityData
{ {

View File

@ -6,7 +6,7 @@
//------------------------------------------------------------ //------------------------------------------------------------
using System; using System;
using Definition.Enum; using SepCore.Definition;
using StarForce; using StarForce;
using UnityEngine; using UnityEngine;

Some files were not shown because too many files have changed in this diff Show More