规范命名空间
具体来说就是 SepCore 开头,然后接所属的模块名,比如 SepCore.Entity,SepCore.Simulation,SepCore.Procedure
This commit is contained in:
parent
5de3fdc795
commit
edd7088804
|
|
@ -13,7 +13,6 @@ using UnityEngine.Networking;
|
||||||
#else
|
#else
|
||||||
using UnityEngine.Experimental.Networking;
|
using UnityEngine.Experimental.Networking;
|
||||||
#endif
|
#endif
|
||||||
using Utility = GameFramework.Utility;
|
|
||||||
|
|
||||||
namespace UnityGameFramework.Runtime
|
namespace UnityGameFramework.Runtime
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ using UnityEngine;
|
||||||
using UnityEngine.Networking;
|
using UnityEngine.Networking;
|
||||||
#endif
|
#endif
|
||||||
using UnityEngine.SceneManagement;
|
using UnityEngine.SceneManagement;
|
||||||
using Utility = GameFramework.Utility;
|
|
||||||
|
|
||||||
namespace UnityGameFramework.Runtime
|
namespace UnityGameFramework.Runtime
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ using UnityEngine.Networking;
|
||||||
#else
|
#else
|
||||||
using UnityEngine.Experimental.Networking;
|
using UnityEngine.Experimental.Networking;
|
||||||
#endif
|
#endif
|
||||||
using Utility = GameFramework.Utility;
|
|
||||||
|
|
||||||
namespace UnityGameFramework.Runtime
|
namespace UnityGameFramework.Runtime
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,15 @@
|
||||||
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Components;
|
|
||||||
using CustomComponent;
|
|
||||||
using SepCore.Event;
|
using SepCore.Event;
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using Entity;
|
using SepCore.Entity;
|
||||||
using CustomUtility;
|
using SepCore.Components;
|
||||||
using Procedure;
|
using SepCore.CustomUtility;
|
||||||
|
using SepCore.Simulation;
|
||||||
|
using SepCore.EnemyManager;
|
||||||
|
using SepCore.Procedure;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
#if ENABLE_INPUT_SYSTEM
|
#if ENABLE_INPUT_SYSTEM
|
||||||
|
|
@ -209,7 +210,7 @@ public class RuntimeDebugPanelComponent : MonoBehaviour
|
||||||
GUILayout.Label($"Enemy Count: {enemyManager.CurrentEnemyCount}");
|
GUILayout.Label($"Enemy Count: {enemyManager.CurrentEnemyCount}");
|
||||||
}
|
}
|
||||||
|
|
||||||
Simulation.SimulationWorld simulationWorld = GameEntry.SimulationWorld;
|
SimulationWorld simulationWorld = GameEntry.SimulationWorld;
|
||||||
if (_showCollisionStats && simulationWorld != null)
|
if (_showCollisionStats && simulationWorld != null)
|
||||||
{
|
{
|
||||||
GUILayout.Space(4f);
|
GUILayout.Space(4f);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using CustomUtility;
|
using SepCore.CustomUtility;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace SepCore.DataTable
|
namespace SepCore.DataTable
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using CustomUtility;
|
using SepCore.CustomUtility;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using CustomUtility;
|
using SepCore.CustomUtility;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace SepCore.DataTable
|
namespace SepCore.DataTable
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using CustomUtility;
|
using SepCore.CustomUtility;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace SepCore.DataTable
|
namespace SepCore.DataTable
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
|
||||||
using System.Text;
|
|
||||||
using SepCore.Definition;
|
|
||||||
using GameFramework;
|
using GameFramework;
|
||||||
using StarForce;
|
using SepCore.Definition;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace SepCore.DataTable
|
namespace SepCore.DataTable
|
||||||
|
|
@ -135,4 +132,4 @@ namespace SepCore.DataTable
|
||||||
ExpRequires = expRequires.ToArray();
|
ExpRequires = expRequires.ToArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using SepCore.Definition;
|
|
||||||
using GameFramework;
|
using GameFramework;
|
||||||
using CustomUtility;
|
using SepCore.Definition;
|
||||||
|
using SepCore.CustomUtility;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
|
|
@ -21,7 +21,7 @@ namespace SepCore.DataTable
|
||||||
public override int Id => m_Id;
|
public override int Id => m_Id;
|
||||||
|
|
||||||
public int EntityTypeId { get; private set; }
|
public int EntityTypeId { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取武器名称。
|
/// 获取武器名称。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -36,12 +36,12 @@ namespace SepCore.DataTable
|
||||||
/// 获取武器稀有度
|
/// 获取武器稀有度
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ItemRarity Rarity { get; private set; }
|
public ItemRarity Rarity { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取武器价值
|
/// 获取武器价值
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int Price { get; private set; }
|
public int Price { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取武器价值浮动率
|
/// 获取武器价值浮动率
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -112,7 +112,7 @@ namespace SepCore.DataTable
|
||||||
private void GeneratePropertyArray()
|
private void GeneratePropertyArray()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 解参数
|
/// 解参数
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using CustomUtility;
|
using SepCore.CustomUtility;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace SepCore.Definition
|
namespace SepCore.Definition
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Entity.EntityData
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public abstract class AccessoryObjectData : EntityDataBase
|
public abstract class AccessoryObjectData : EntityDataBase
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace Entity.EntityData
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
public class CoinData : EntityDataBase
|
public class CoinData : EntityDataBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Entity.EntityData
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class EffectData : EntityDataBase
|
public class EffectData : EntityDataBase
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Entity.EntityData
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class EnemyData : TargetableObjectData
|
public class EnemyData : TargetableObjectData
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ using System;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Entity.EntityData
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class EnemyProjectileData : EntityDataBase
|
public class EnemyProjectileData : EntityDataBase
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Entity.EntityData
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public abstract class EntityDataBase
|
public abstract class EntityDataBase
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace Entity.EntityData
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
public class ExpData : EntityDataBase
|
public class ExpData : EntityDataBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
|
|
||||||
namespace Entity.EntityData
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class PlayerData : TargetableObjectData
|
public class PlayerData : TargetableObjectData
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
|
|
||||||
namespace Entity.EntityData
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public abstract class TargetableObjectData : EntityDataBase
|
public abstract class TargetableObjectData : EntityDataBase
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using GameFramework;
|
using GameFramework;
|
||||||
|
|
||||||
namespace Entity.EntityData
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class WeaponData : AccessoryObjectData
|
public class WeaponData : AccessoryObjectData
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ using System;
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
|
|
||||||
namespace Entity.EntityData
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public sealed class WeaponHandgunParamsData
|
public sealed class WeaponHandgunParamsData
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ using System;
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
|
|
||||||
namespace Entity.EntityData
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public sealed class WeaponKnifeParamsData
|
public sealed class WeaponKnifeParamsData
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ using System;
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
|
|
||||||
namespace Entity.EntityData
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public sealed class WeaponLanceParamsData
|
public sealed class WeaponLanceParamsData
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ using System;
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
|
|
||||||
namespace Entity.EntityData
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public sealed class WeaponLightningParamsData
|
public sealed class WeaponLightningParamsData
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ using System;
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
|
|
||||||
namespace Entity.EntityData
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public sealed class WeaponSlashParamsData
|
public sealed class WeaponSlashParamsData
|
||||||
|
|
|
||||||
|
|
@ -1,62 +1,62 @@
|
||||||
using Text = GameFramework.Utility.Text;
|
using GameFramework;
|
||||||
|
|
||||||
namespace CustomUtility
|
namespace SepCore.CustomUtility
|
||||||
{
|
{
|
||||||
public static class AssetUtility
|
public static class AssetUtility
|
||||||
{
|
{
|
||||||
public static string GetConfigAsset(string assetName, bool fromBytes)
|
public static string GetConfigAsset(string assetName, bool fromBytes)
|
||||||
{
|
{
|
||||||
return Text.Format("Assets/GameMain/Configs/{0}.{1}", assetName, fromBytes ? "bytes" : "txt");
|
return Utility.Text.Format("Assets/GameMain/Configs/{0}.{1}", assetName, fromBytes ? "bytes" : "txt");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetDataTableAsset(string assetName, bool fromBytes)
|
public static string GetDataTableAsset(string assetName, bool fromBytes)
|
||||||
{
|
{
|
||||||
return Text.Format("Assets/GameMain/DataTables/{0}.{1}", assetName, fromBytes ? "bytes" : "txt");
|
return Utility.Text.Format("Assets/GameMain/DataTables/{0}.{1}", assetName, fromBytes ? "bytes" : "txt");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetFontAsset(string assetName)
|
public static string GetFontAsset(string assetName)
|
||||||
{
|
{
|
||||||
return Text.Format("Assets/GameMain/Fonts/{0}.ttf", assetName);
|
return Utility.Text.Format("Assets/GameMain/Fonts/{0}.ttf", assetName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetTMPFontAsset(string assetName)
|
public static string GetTMPFontAsset(string assetName)
|
||||||
{
|
{
|
||||||
return Text.Format("Assets/GameMain/Fonts/{0}.asset", assetName);
|
return Utility.Text.Format("Assets/GameMain/Fonts/{0}.asset", assetName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetSceneAsset(string assetName)
|
public static string GetSceneAsset(string assetName)
|
||||||
{
|
{
|
||||||
return Text.Format("Assets/GameMain/Scenes/{0}.unity", assetName);
|
return Utility.Text.Format("Assets/GameMain/Scenes/{0}.unity", assetName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetMusicAsset(string assetName)
|
public static string GetMusicAsset(string assetName)
|
||||||
{
|
{
|
||||||
return Text.Format("Assets/GameMain/Music/{0}.mp3", assetName);
|
return Utility.Text.Format("Assets/GameMain/Music/{0}.mp3", assetName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetSoundAsset(string assetName)
|
public static string GetSoundAsset(string assetName)
|
||||||
{
|
{
|
||||||
return Text.Format("Assets/GameMain/Sounds/{0}.wav", assetName);
|
return Utility.Text.Format("Assets/GameMain/Sounds/{0}.wav", assetName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetEntityAsset(string assetName)
|
public static string GetEntityAsset(string assetName)
|
||||||
{
|
{
|
||||||
return Text.Format("Assets/GameMain/Entities/{0}.prefab", assetName);
|
return Utility.Text.Format("Assets/GameMain/Entities/{0}.prefab", assetName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetUIFormAsset(string assetName)
|
public static string GetUIFormAsset(string assetName)
|
||||||
{
|
{
|
||||||
return Text.Format("Assets/GameMain/UI/UIForms/{0}.prefab", assetName);
|
return Utility.Text.Format("Assets/GameMain/UI/UIForms/{0}.prefab", assetName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetUISoundAsset(string assetName)
|
public static string GetUISoundAsset(string assetName)
|
||||||
{
|
{
|
||||||
return Text.Format("Assets/GameMain/UI/UISounds/{0}.wav", assetName);
|
return Utility.Text.Format("Assets/GameMain/UI/UISounds/{0}.wav", assetName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetUITextureIconAsset(string assetName)
|
public static string GetUITextureIconAsset(string assetName)
|
||||||
{
|
{
|
||||||
return Text.Format("Assets/GameMain/UI/UISprites/Icons/{0}.png", assetName);
|
return Utility.Text.Format("Assets/GameMain/UI/UISprites/Icons/{0}.png", assetName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace CustomUtility
|
namespace SepCore.CustomUtility
|
||||||
{
|
{
|
||||||
public static class EnumUtility<T> where T : struct, System.Enum
|
public static class EnumUtility<T> where T : struct, System.Enum
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace CustomUtility
|
namespace SepCore.CustomUtility
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Newtonsoft.Json 函数集辅助器。
|
/// Newtonsoft.Json 函数集辅助器。
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using SepCore.Definition;
|
||||||
using GameFramework.DataTable;
|
using GameFramework.DataTable;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace CustomUtility
|
namespace SepCore.CustomUtility
|
||||||
{
|
{
|
||||||
public static class RarityUtility
|
public static class RarityUtility
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace StarForce
|
namespace SepCore.CustomUtility
|
||||||
{
|
{
|
||||||
public static class WebUtility
|
public static class WebUtility
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using GameFramework;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityGameFramework.Editor;
|
using UnityGameFramework.Editor;
|
||||||
using UnityGameFramework.Editor.ResourceTools;
|
using UnityGameFramework.Editor.ResourceTools;
|
||||||
|
|
@ -8,19 +9,15 @@ namespace SepCore.Editor
|
||||||
public static class GameFrameworkConfigs
|
public static class GameFrameworkConfigs
|
||||||
{
|
{
|
||||||
[BuildSettingsConfigPath] public static string BuildSettingsConfig =
|
[BuildSettingsConfigPath] public static string BuildSettingsConfig =
|
||||||
GameFramework.Utility.Path.GetRegularPath(Path.Combine(Application.dataPath,
|
Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "GameMain/Configs/BuildSettings.xml"));
|
||||||
"GameMain/Configs/BuildSettings.xml"));
|
|
||||||
|
|
||||||
[ResourceCollectionConfigPath] public static string ResourceCollectionConfig =
|
[ResourceCollectionConfigPath] public static string ResourceCollectionConfig =
|
||||||
GameFramework.Utility.Path.GetRegularPath(Path.Combine(Application.dataPath,
|
Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "GameMain/Configs/ResourceCollection.xml"));
|
||||||
"GameMain/Configs/ResourceCollection.xml"));
|
|
||||||
|
|
||||||
[ResourceEditorConfigPath] public static string ResourceEditorConfig =
|
[ResourceEditorConfigPath] public static string ResourceEditorConfig =
|
||||||
GameFramework.Utility.Path.GetRegularPath(Path.Combine(Application.dataPath,
|
Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "GameMain/Configs/ResourceEditor.xml"));
|
||||||
"GameMain/Configs/ResourceEditor.xml"));
|
|
||||||
|
|
||||||
[ResourceBuilderConfigPath] public static string ResourceBuilderConfig =
|
[ResourceBuilderConfigPath] public static string ResourceBuilderConfig =
|
||||||
GameFramework.Utility.Path.GetRegularPath(Path.Combine(Application.dataPath,
|
Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "GameMain/Configs/ResourceBuilder.xml"));
|
||||||
"GameMain/Configs/ResourceBuilder.xml"));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using CustomComponent;
|
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using Entity;
|
using SepCore.Entity;
|
||||||
using CustomUtility;
|
using SepCore.Procedure;
|
||||||
using Procedure;
|
using SepCore.EnemyManager;
|
||||||
|
using SepCore.CustomUtility;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using SepCore.CustomComponent;
|
|
||||||
using SepCore.UI;
|
using SepCore.UI;
|
||||||
|
using SepCore.UIRouter;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEditorInternal;
|
using UnityEditorInternal;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace UIModule.Editor
|
namespace SepCore.Editor
|
||||||
{
|
{
|
||||||
[CustomEditor(typeof(UIRouterComponent))]
|
[CustomEditor(typeof(UIRouterComponent))]
|
||||||
public class UIRouterComponentEditor : UnityEditor.Editor
|
public class UIRouterComponentEditor : UnityEditor.Editor
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace SepCore.Editor
|
||||||
string outputFullPath, bool outputPackedSelected, string outputPackedPath, string buildReportPath)
|
string outputFullPath, bool outputPackedSelected, string outputPackedPath, string buildReportPath)
|
||||||
{
|
{
|
||||||
string streamingAssetsPath =
|
string streamingAssetsPath =
|
||||||
GameFramework.Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "StreamingAssets"));
|
Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "StreamingAssets"));
|
||||||
string[] fileNames = Directory.GetFiles(streamingAssetsPath, "*", SearchOption.AllDirectories);
|
string[] fileNames = Directory.GetFiles(streamingAssetsPath, "*", SearchOption.AllDirectories);
|
||||||
foreach (string fileName in fileNames)
|
foreach (string fileName in fileNames)
|
||||||
{
|
{
|
||||||
|
|
@ -34,7 +34,7 @@ namespace SepCore.Editor
|
||||||
File.Delete(fileName);
|
File.Delete(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
GameFramework.Utility.Path.RemoveEmptyDirectory(streamingAssetsPath);
|
Utility.Path.RemoveEmptyDirectory(streamingAssetsPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnPostprocessAllPlatforms(string productName, string companyName, string gameIdentifier,
|
public void OnPostprocessAllPlatforms(string productName, string companyName, string gameIdentifier,
|
||||||
|
|
@ -79,11 +79,11 @@ namespace SepCore.Editor
|
||||||
}
|
}
|
||||||
|
|
||||||
string streamingAssetsPath =
|
string streamingAssetsPath =
|
||||||
GameFramework.Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "StreamingAssets"));
|
Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "StreamingAssets"));
|
||||||
string[] fileNames = Directory.GetFiles(outputPackagePath, "*", SearchOption.AllDirectories);
|
string[] fileNames = Directory.GetFiles(outputPackagePath, "*", SearchOption.AllDirectories);
|
||||||
foreach (string fileName in fileNames)
|
foreach (string fileName in fileNames)
|
||||||
{
|
{
|
||||||
string destFileName = GameFramework.Utility.Path.GetRegularPath(Path.Combine(streamingAssetsPath,
|
string destFileName = Utility.Path.GetRegularPath(Path.Combine(streamingAssetsPath,
|
||||||
fileName.Substring(outputPackagePath.Length)));
|
fileName.Substring(outputPackagePath.Length)));
|
||||||
FileInfo destFileInfo = new FileInfo(destFileName);
|
FileInfo destFileInfo = new FileInfo(destFileName);
|
||||||
if (!destFileInfo.Directory.Exists)
|
if (!destFileInfo.Directory.Exists)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
using StarForce;
|
using SepCore.Sound;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
using CustomUtility;
|
using SepCore.CustomUtility;
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using CustomUtility;
|
using SepCore.CustomUtility;
|
||||||
using Entity.EntityData;
|
using SepCore.Entity;
|
||||||
using Entity.Weapon;
|
using SepCore.Entity.Weapon;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using CustomComponent;
|
|
||||||
using SepCore.Event;
|
using SepCore.Event;
|
||||||
using GameFramework.Event;
|
using GameFramework.Event;
|
||||||
|
using SepCore.EnemyManager;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
|
@ -139,4 +139,4 @@ namespace SepCore.UI
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using SepCore.Event;
|
using SepCore.Event;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using CustomUtility;
|
using SepCore.CustomUtility;
|
||||||
using GameFramework.Event;
|
using GameFramework.Event;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ using System.Collections.Generic;
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using SepCore.Event;
|
using SepCore.Event;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using CustomUtility;
|
using SepCore.CustomUtility;
|
||||||
using Entity.Weapon;
|
using SepCore.Entity.Weapon;
|
||||||
using GameFramework.Event;
|
using GameFramework.Event;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using GameFramework.Localization;
|
using GameFramework.Localization;
|
||||||
using StarForce;
|
using SepCore.Sound;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
@ -186,4 +186,4 @@ namespace SepCore.UI
|
||||||
_languageTipsCanvasGroup.gameObject.SetActive(_selectedLanguage != GameEntry.Localization.Language);
|
_languageTipsCanvasGroup.gameObject.SetActive(_selectedLanguage != GameEntry.Localization.Language);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,12 @@ using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using Entity.EntityData;
|
using SepCore.Entity;
|
||||||
using Entity.Weapon;
|
using SepCore.Entity.Weapon;
|
||||||
using System;
|
using System;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace CustomUtility
|
namespace SepCore.CustomUtility
|
||||||
{
|
{
|
||||||
public static class ItemDescUtility
|
public static class ItemDescUtility
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
// Feedback: mailto:ellan@gameframework.cn
|
// Feedback: mailto:ellan@gameframework.cn
|
||||||
//------------------------------------------------------------
|
//------------------------------------------------------------
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public abstract class ProcedureBase : GameFramework.Procedure.ProcedureBase
|
public abstract class ProcedureBase : GameFramework.Procedure.ProcedureBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,12 @@ using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using GameFramework.DataTable;
|
using GameFramework.DataTable;
|
||||||
using GameFramework.Event;
|
using GameFramework.Event;
|
||||||
using StarForce;
|
using SepCore.Sound;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
||||||
using CustomUtility;
|
using SepCore.CustomUtility;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public class ProcedureChangeScene : ProcedureBase
|
public class ProcedureChangeScene : ProcedureBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public class ProcedureCheckResources : ProcedureBase
|
public class ProcedureCheckResources : ProcedureBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ using UnityEngine;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public class ProcedureCheckVersion : ProcedureBase
|
public class ProcedureCheckVersion : ProcedureBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public class ProcedureInitResources : ProcedureBase
|
public class ProcedureInitResources : ProcedureBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,11 @@
|
||||||
using GameFramework.Localization;
|
using GameFramework.Localization;
|
||||||
using System;
|
using System;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using StarForce;
|
using SepCore.Sound;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public class ProcedureLaunch : ProcedureBase
|
public class ProcedureLaunch : ProcedureBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,14 @@ using GameFramework.Resource;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using CustomUtility;
|
using SepCore.CustomUtility;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using SepCore.UI;
|
using SepCore.UI;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public class ProcedurePreload : ProcedureBase
|
public class ProcedurePreload : ProcedureBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using GameFramework.Resource;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public class ProcedureSplash : ProcedureBase
|
public class ProcedureSplash : ProcedureBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ using UnityEngine;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public class ProcedureUpdateResources : ProcedureBase
|
public class ProcedureUpdateResources : ProcedureBase
|
||||||
{
|
{
|
||||||
|
|
@ -93,8 +93,7 @@ namespace Procedure
|
||||||
{
|
{
|
||||||
if (m_UpdateResourceForm == null)
|
if (m_UpdateResourceForm == null)
|
||||||
{
|
{
|
||||||
m_UpdateResourceForm = Object.Instantiate(GameEntry.BuiltinData.UpdateResourceFormTemplate)
|
m_UpdateResourceForm = Object.Instantiate(GameEntry.BuiltinData.UpdateResourceFormTemplate).GetComponent<UpdateResourceForm>();
|
||||||
.GetComponent<UpdateResourceForm>();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.Info("Start update resources...");
|
Log.Info("Start update resources...");
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using GameFramework.Resource;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public class ProcedureUpdateVersion : ProcedureBase
|
public class ProcedureUpdateVersion : ProcedureBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
using GameFramework.Event;
|
using GameFramework.Event;
|
||||||
using StarForce;
|
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public class ProcedureVerifyResources : ProcedureBase
|
public class ProcedureVerifyResources : ProcedureBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ using GameFramework.Fsm;
|
||||||
using GameFramework.Procedure;
|
using GameFramework.Procedure;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public abstract class GameStateBase
|
public abstract class GameStateBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
using System;
|
using System;
|
||||||
using CustomComponent;
|
|
||||||
using SepCore.Event;
|
using SepCore.Event;
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using Entity;
|
using SepCore.Entity;
|
||||||
using GameFramework.Fsm;
|
using GameFramework.Fsm;
|
||||||
using GameFramework.Procedure;
|
using GameFramework.Procedure;
|
||||||
using Simulation;
|
using SepCore.EnemyManager;
|
||||||
|
using SepCore.Simulation;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public class GameStateBattle : GameStateBase
|
public class GameStateBattle : GameStateBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ using GameFramework.Procedure;
|
||||||
using SepCore.UI;
|
using SepCore.UI;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public class GameStateLevelUp : GameStateBase
|
public class GameStateLevelUp : GameStateBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ using GameFramework.Procedure;
|
||||||
using SepCore.UI;
|
using SepCore.UI;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public class GameStateShop : GameStateBase
|
public class GameStateShop : GameStateBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,15 +2,14 @@ using System.Collections.Generic;
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using Entity;
|
using SepCore.Entity;
|
||||||
using Entity.EntityData;
|
|
||||||
using GameFramework.Event;
|
using GameFramework.Event;
|
||||||
using GameFramework.Fsm;
|
using GameFramework.Fsm;
|
||||||
using GameFramework.Procedure;
|
using GameFramework.Procedure;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
using SepCore.UI;
|
using SepCore.UI;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public enum GameStateType
|
public enum GameStateType
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ using UnityEngine;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public class ProcedureMenu : ProcedureBase
|
public class ProcedureMenu : ProcedureBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,9 @@
|
||||||
using CustomComponent;
|
|
||||||
using Entity.EntityData;
|
|
||||||
using GameFramework.Fsm;
|
using GameFramework.Fsm;
|
||||||
using GameFramework.Procedure;
|
using GameFramework.Procedure;
|
||||||
using StarForce;
|
using SepCore.EnemyManager;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace Procedure
|
namespace SepCore.Procedure
|
||||||
{
|
{
|
||||||
public class ProcedureStressTest : ProcedureBase
|
public class ProcedureStressTest : ProcedureBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
using CustomComponent;
|
using SepCore.BuiltinData;
|
||||||
using SepCore.CustomComponent;
|
using SepCore.DamageText;
|
||||||
using Simulation;
|
using SepCore.EnemyManager;
|
||||||
using UnityEngine;
|
using SepCore.HPBar;
|
||||||
|
using SepCore.SpriteCache;
|
||||||
|
using SepCore.UIRouter;
|
||||||
|
using SepCore.Simulation;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 游戏入口。
|
/// 游戏入口。
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using System.Threading;
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using GameFramework.Event;
|
using GameFramework.Event;
|
||||||
|
|
||||||
namespace UnityGameFramework.Runtime.AsyncTask
|
namespace SepCore.AsyncTask
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 异步任务辅助类,用于将事件回调转换为 UniTask
|
/// 异步任务辅助类,用于将事件回调转换为 UniTask
|
||||||
|
|
@ -124,4 +124,4 @@ namespace UnityGameFramework.Runtime.AsyncTask
|
||||||
return tcs.Task;
|
return tcs.Task;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
using System;
|
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using GameFramework;
|
|
||||||
using GameFramework.Config;
|
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace UnityGameFramework.Runtime.AsyncTask
|
namespace SepCore.AsyncTask
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Config 异步扩展方法
|
/// Config 异步扩展方法
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ using GameFramework.DataTable;
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace UnityGameFramework.Runtime.AsyncTask
|
namespace SepCore.AsyncTask
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// DataTable 异步扩展方法
|
/// DataTable 异步扩展方法
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,9 @@
|
||||||
using System;
|
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using GameFramework;
|
|
||||||
using GameFramework.Download;
|
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
using DownloadFailureEventArgs = UnityGameFramework.Runtime.DownloadFailureEventArgs;
|
||||||
|
using DownloadSuccessEventArgs = UnityGameFramework.Runtime.DownloadSuccessEventArgs;
|
||||||
|
|
||||||
namespace UnityGameFramework.Runtime.AsyncTask
|
namespace SepCore.AsyncTask
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Download 异步扩展方法
|
/// Download 异步扩展方法
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
using System;
|
using System;
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using GameFramework;
|
|
||||||
using GameFramework.Entity;
|
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
using HideEntityCompleteEventArgs = UnityGameFramework.Runtime.HideEntityCompleteEventArgs;
|
||||||
|
using ShowEntityFailureEventArgs = UnityGameFramework.Runtime.ShowEntityFailureEventArgs;
|
||||||
|
using ShowEntitySuccessEventArgs = UnityGameFramework.Runtime.ShowEntitySuccessEventArgs;
|
||||||
|
|
||||||
namespace UnityGameFramework.Runtime.AsyncTask
|
namespace SepCore.AsyncTask
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Entity 异步扩展方法
|
/// Entity 异步扩展方法
|
||||||
|
|
@ -22,7 +23,7 @@ namespace UnityGameFramework.Runtime.AsyncTask
|
||||||
/// <param name="userData">用户自定义数据</param>
|
/// <param name="userData">用户自定义数据</param>
|
||||||
/// <param name="timeout">超时时间(秒),0表示不超时</param>
|
/// <param name="timeout">超时时间(秒),0表示不超时</param>
|
||||||
/// <returns>显示的实体</returns>
|
/// <returns>显示的实体</returns>
|
||||||
public static UniTask<Entity> ShowEntityAsync(this EntityComponent entityComponent,
|
public static UniTask<UnityGameFramework.Runtime.Entity> ShowEntityAsync(this EntityComponent entityComponent,
|
||||||
int entityId,
|
int entityId,
|
||||||
Type entityLogicType,
|
Type entityLogicType,
|
||||||
string entityAssetName,
|
string entityAssetName,
|
||||||
|
|
@ -30,7 +31,7 @@ namespace UnityGameFramework.Runtime.AsyncTask
|
||||||
object userData = null,
|
object userData = null,
|
||||||
float timeout = 30f)
|
float timeout = 30f)
|
||||||
{
|
{
|
||||||
UniTask<Entity> waitTask = AsyncTaskHelper.WaitSuccessOrFailureAsync<ShowEntitySuccessEventArgs, ShowEntityFailureEventArgs>(
|
UniTask<UnityGameFramework.Runtime.Entity> waitTask = AsyncTaskHelper.WaitSuccessOrFailureAsync<ShowEntitySuccessEventArgs, ShowEntityFailureEventArgs>(
|
||||||
ShowEntitySuccessEventArgs.EventId,
|
ShowEntitySuccessEventArgs.EventId,
|
||||||
ShowEntityFailureEventArgs.EventId,
|
ShowEntityFailureEventArgs.EventId,
|
||||||
successArgs => successArgs.Entity.Id == entityId && ReferenceEquals(successArgs.UserData, userData),
|
successArgs => successArgs.Entity.Id == entityId && ReferenceEquals(successArgs.UserData, userData),
|
||||||
|
|
@ -104,7 +105,7 @@ namespace UnityGameFramework.Runtime.AsyncTask
|
||||||
/// <param name="timeout">超时时间(秒),0表示不超时</param>
|
/// <param name="timeout">超时时间(秒),0表示不超时</param>
|
||||||
/// <returns>隐藏完成事件</returns>
|
/// <returns>隐藏完成事件</returns>
|
||||||
public static UniTask<HideEntityCompleteEventArgs> HideEntityAsync(this EntityComponent entityComponent,
|
public static UniTask<HideEntityCompleteEventArgs> HideEntityAsync(this EntityComponent entityComponent,
|
||||||
Entity entity,
|
UnityGameFramework.Runtime.Entity entity,
|
||||||
object userData = null,
|
object userData = null,
|
||||||
float timeout = 30f)
|
float timeout = 30f)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ using GameFramework;
|
||||||
using GameFramework.Localization;
|
using GameFramework.Localization;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace UnityGameFramework.Runtime.AsyncTask
|
namespace SepCore.AsyncTask
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Localization 异步扩展方法
|
/// Localization 异步扩展方法
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,9 @@
|
||||||
using System;
|
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using GameFramework;
|
|
||||||
using GameFramework.Network;
|
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
using NetworkClosedEventArgs = UnityGameFramework.Runtime.NetworkClosedEventArgs;
|
||||||
|
using NetworkConnectedEventArgs = UnityGameFramework.Runtime.NetworkConnectedEventArgs;
|
||||||
|
|
||||||
namespace UnityGameFramework.Runtime.AsyncTask
|
namespace SepCore.AsyncTask
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Network 异步扩展方法
|
/// Network 异步扩展方法
|
||||||
|
|
@ -73,4 +72,4 @@ namespace UnityGameFramework.Runtime.AsyncTask
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
using System;
|
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using GameFramework;
|
|
||||||
using GameFramework.Resource;
|
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
using ResourceApplySuccessEventArgs = UnityGameFramework.Runtime.ResourceApplySuccessEventArgs;
|
||||||
|
using ResourceUpdateAllCompleteEventArgs = UnityGameFramework.Runtime.ResourceUpdateAllCompleteEventArgs;
|
||||||
|
using ResourceVerifySuccessEventArgs = UnityGameFramework.Runtime.ResourceVerifySuccessEventArgs;
|
||||||
|
|
||||||
namespace UnityGameFramework.Runtime.AsyncTask
|
namespace SepCore.AsyncTask
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Resource 异步扩展方法
|
/// Resource 异步扩展方法
|
||||||
|
|
@ -59,4 +59,4 @@ namespace UnityGameFramework.Runtime.AsyncTask
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
using System;
|
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using GameFramework;
|
|
||||||
using GameFramework.Scene;
|
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
using LoadSceneFailureEventArgs = UnityGameFramework.Runtime.LoadSceneFailureEventArgs;
|
||||||
|
using LoadSceneSuccessEventArgs = UnityGameFramework.Runtime.LoadSceneSuccessEventArgs;
|
||||||
|
using UnloadSceneFailureEventArgs = UnityGameFramework.Runtime.UnloadSceneFailureEventArgs;
|
||||||
|
using UnloadSceneSuccessEventArgs = UnityGameFramework.Runtime.UnloadSceneSuccessEventArgs;
|
||||||
|
|
||||||
namespace UnityGameFramework.Runtime.AsyncTask
|
namespace SepCore.AsyncTask
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Scene 异步扩展方法
|
/// Scene 异步扩展方法
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
using System;
|
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using GameFramework;
|
|
||||||
using GameFramework.Sound;
|
using GameFramework.Sound;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
using PlaySoundFailureEventArgs = UnityGameFramework.Runtime.PlaySoundFailureEventArgs;
|
||||||
|
using PlaySoundSuccessEventArgs = UnityGameFramework.Runtime.PlaySoundSuccessEventArgs;
|
||||||
|
|
||||||
namespace UnityGameFramework.Runtime.AsyncTask
|
namespace SepCore.AsyncTask
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sound 异步扩展方法
|
/// Sound 异步扩展方法
|
||||||
|
|
@ -29,17 +29,17 @@ namespace UnityGameFramework.Runtime.AsyncTask
|
||||||
float timeout = 30f)
|
float timeout = 30f)
|
||||||
{
|
{
|
||||||
int serialId = 0;
|
int serialId = 0;
|
||||||
UniTask<PlaySoundSuccessEventArgs> waitTask = AsyncTaskHelper.WaitSuccessOrFailureAsync<PlaySoundSuccessEventArgs, PlaySoundFailureEventArgs>(
|
UniTask<PlaySoundSuccessEventArgs> waitTask =
|
||||||
PlaySoundSuccessEventArgs.EventId,
|
AsyncTaskHelper.WaitSuccessOrFailureAsync<PlaySoundSuccessEventArgs, PlaySoundFailureEventArgs>(
|
||||||
PlaySoundFailureEventArgs.EventId,
|
PlaySoundSuccessEventArgs.EventId,
|
||||||
successArgs => successArgs.SerialId == serialId,
|
PlaySoundFailureEventArgs.EventId,
|
||||||
failureArgs => failureArgs.SerialId == serialId,
|
successArgs => successArgs.SerialId == serialId,
|
||||||
timeout
|
failureArgs => failureArgs.SerialId == serialId,
|
||||||
);
|
timeout
|
||||||
|
);
|
||||||
|
|
||||||
serialId = soundComponent.PlaySound(soundAssetName, soundGroupName, 0, playSoundParams, userData);
|
serialId = soundComponent.PlaySound(soundAssetName, soundGroupName, 0, playSoundParams, userData);
|
||||||
return waitTask;
|
return waitTask;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using SepCore.Definition;
|
||||||
using SepCore.UI;
|
using SepCore.UI;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace UnityGameFramework.Runtime.AsyncTask
|
namespace SepCore.AsyncTask
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// UI 异步扩展方法
|
/// UI 异步扩展方法
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
using System;
|
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using GameFramework;
|
|
||||||
using GameFramework.WebRequest;
|
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace UnityGameFramework.Runtime.AsyncTask
|
namespace SepCore.AsyncTask
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// WebRequest 异步扩展方法
|
/// WebRequest 异步扩展方法
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,18 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using Entity.EntityData;
|
using SepCore.Entity;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using CustomUtility;
|
using SepCore.CustomUtility;
|
||||||
|
|
||||||
namespace Entity
|
namespace SepCore.Entity
|
||||||
{
|
{
|
||||||
public static class EntityExtension
|
public static class EntityExtension
|
||||||
{
|
{
|
||||||
private static int s_SerialId = -10;
|
private static int s_SerialId = -10;
|
||||||
|
|
||||||
private const string EntityNamespace = "Entity.";
|
private const string EntityNamespace = "SepCore.Entity.";
|
||||||
private static readonly Dictionary<string, Type> _typeDict;
|
private static readonly Dictionary<string, Type> _typeDict;
|
||||||
private static readonly Dictionary<int, string> _assetNameDict;
|
private static readonly Dictionary<int, string> _assetNameDict;
|
||||||
|
|
||||||
|
|
@ -180,9 +180,9 @@ namespace Entity
|
||||||
return assetName;
|
return assetName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int GenerateSerialId(this EntityComponent entityComponent)
|
public static int NextId(this EntityComponent entityComponent)
|
||||||
{
|
{
|
||||||
return --s_SerialId;
|
return --s_SerialId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,9 @@
|
||||||
//------------------------------------------------------------
|
using GameFramework.Localization;
|
||||||
// Game Framework
|
|
||||||
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
|
|
||||||
// Homepage: https://gameframework.cn/
|
|
||||||
// Feedback: mailto:ellan@gameframework.cn
|
|
||||||
//------------------------------------------------------------
|
|
||||||
|
|
||||||
using GameFramework.Localization;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace StarForce
|
namespace SepCore.Localization
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// XML 格式的本地化辅助器。
|
/// XML 格式的本地化辅助器。
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
// Feedback: mailto:ellan@gameframework.cn
|
// Feedback: mailto:ellan@gameframework.cn
|
||||||
//------------------------------------------------------------
|
//------------------------------------------------------------
|
||||||
|
|
||||||
namespace StarForce
|
namespace SepCore.Network
|
||||||
{
|
{
|
||||||
public abstract class CSPacketBase : PacketBase
|
public abstract class CSPacketBase : PacketBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
// Feedback: mailto:ellan@gameframework.cn
|
// Feedback: mailto:ellan@gameframework.cn
|
||||||
//------------------------------------------------------------
|
//------------------------------------------------------------
|
||||||
|
|
||||||
namespace StarForce
|
namespace SepCore.Network
|
||||||
{
|
{
|
||||||
public sealed class CSPacketHeader : PacketHeaderBase
|
public sealed class CSPacketHeader : PacketHeaderBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ using System.IO;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace StarForce
|
namespace SepCore.Network
|
||||||
{
|
{
|
||||||
public class NetworkChannelHelper : INetworkChannelHelper
|
public class NetworkChannelHelper : INetworkChannelHelper
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
using ProtoBuf;
|
using ProtoBuf;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace StarForce
|
namespace SepCore.Network
|
||||||
{
|
{
|
||||||
[Serializable, ProtoContract(Name = @"CSHeartBeat")]
|
[Serializable, ProtoContract(Name = @"CSHeartBeat")]
|
||||||
public class CSHeartBeat : CSPacketBase
|
public class CSHeartBeat : CSPacketBase
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
using ProtoBuf;
|
using ProtoBuf;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace StarForce
|
namespace SepCore.Network
|
||||||
{
|
{
|
||||||
[Serializable, ProtoContract(Name = @"SCHeartBeat")]
|
[Serializable, ProtoContract(Name = @"SCHeartBeat")]
|
||||||
public class SCHeartBeat : SCPacketBase
|
public class SCHeartBeat : SCPacketBase
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
using GameFramework.Network;
|
using GameFramework.Network;
|
||||||
using ProtoBuf;
|
using ProtoBuf;
|
||||||
|
|
||||||
namespace StarForce
|
namespace SepCore.Network
|
||||||
{
|
{
|
||||||
public abstract class PacketBase : Packet, IExtensible
|
public abstract class PacketBase : Packet, IExtensible
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
using GameFramework.Network;
|
using GameFramework.Network;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace StarForce
|
namespace SepCore.Network
|
||||||
{
|
{
|
||||||
public class SCHeartBeatHandler : PacketHandlerBase
|
public class SCHeartBeatHandler : PacketHandlerBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
using GameFramework.Network;
|
using GameFramework.Network;
|
||||||
|
|
||||||
namespace StarForce
|
namespace SepCore.Network
|
||||||
{
|
{
|
||||||
public abstract class PacketHandlerBase : IPacketHandler
|
public abstract class PacketHandlerBase : IPacketHandler
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
using GameFramework;
|
using GameFramework;
|
||||||
using GameFramework.Network;
|
using GameFramework.Network;
|
||||||
|
|
||||||
namespace StarForce
|
namespace SepCore.Network
|
||||||
{
|
{
|
||||||
public abstract class PacketHeaderBase : IPacketHeader, IReference
|
public abstract class PacketHeaderBase : IPacketHeader, IReference
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
// Feedback: mailto:ellan@gameframework.cn
|
// Feedback: mailto:ellan@gameframework.cn
|
||||||
//------------------------------------------------------------
|
//------------------------------------------------------------
|
||||||
|
|
||||||
namespace StarForce
|
namespace SepCore.Network
|
||||||
{
|
{
|
||||||
public enum PacketType : byte
|
public enum PacketType : byte
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
// Feedback: mailto:ellan@gameframework.cn
|
// Feedback: mailto:ellan@gameframework.cn
|
||||||
//------------------------------------------------------------
|
//------------------------------------------------------------
|
||||||
|
|
||||||
namespace StarForce
|
namespace SepCore.Network
|
||||||
{
|
{
|
||||||
public abstract class SCPacketBase : PacketBase
|
public abstract class SCPacketBase : PacketBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
// Feedback: mailto:ellan@gameframework.cn
|
// Feedback: mailto:ellan@gameframework.cn
|
||||||
//------------------------------------------------------------
|
//------------------------------------------------------------
|
||||||
|
|
||||||
namespace StarForce
|
namespace SepCore.Network
|
||||||
{
|
{
|
||||||
public sealed class SCPacketHeader : PacketHeaderBase
|
public sealed class SCPacketHeader : PacketHeaderBase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,13 @@
|
||||||
//------------------------------------------------------------
|
using GameFramework;
|
||||||
// Game Framework
|
|
||||||
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
|
|
||||||
// Homepage: https://gameframework.cn/
|
|
||||||
// Feedback: mailto:ellan@gameframework.cn
|
|
||||||
//------------------------------------------------------------
|
|
||||||
|
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using Entity;
|
using SepCore.Entity;
|
||||||
using GameFramework;
|
|
||||||
using GameFramework.DataTable;
|
using GameFramework.DataTable;
|
||||||
using GameFramework.Sound;
|
using GameFramework.Sound;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
using CustomUtility;
|
using SepCore.CustomUtility;
|
||||||
|
|
||||||
namespace StarForce
|
namespace SepCore.Sound
|
||||||
{
|
{
|
||||||
public static class SoundExtension
|
public static class SoundExtension
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
using GameFramework.UI;
|
using GameFramework.UI;
|
||||||
using SepCore.DataTable;
|
using SepCore.DataTable;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using CustomUtility;
|
using SepCore.CustomUtility;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace SepCore.UI
|
namespace SepCore.UI
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using Entity;
|
using SepCore.Entity;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Components
|
namespace SepCore.Components
|
||||||
{
|
{
|
||||||
public class AbsorbComponent : MonoBehaviour
|
public class AbsorbComponent : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Entity;
|
using SepCore.Entity;
|
||||||
using Entity.Weapon;
|
using SepCore.Entity.Weapon;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Components
|
namespace SepCore.Components
|
||||||
{
|
{
|
||||||
public class AttackComponent : MonoBehaviour
|
public class AttackComponent : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using Entity.Weapon;
|
using SepCore.Entity.Weapon;
|
||||||
using Entity;
|
using SepCore.Entity;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Components
|
namespace SepCore.Components
|
||||||
{
|
{
|
||||||
public class BackpackComponent : MonoBehaviour
|
public class BackpackComponent : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using SepCore.Event;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Components
|
namespace SepCore.Components
|
||||||
{
|
{
|
||||||
public class HealthComponent : MonoBehaviour
|
public class HealthComponent : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Components
|
namespace SepCore.Components
|
||||||
{
|
{
|
||||||
public class InputComponent : MonoBehaviour
|
public class InputComponent : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
using System;
|
using System;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using Entity;
|
using SepCore.Entity;
|
||||||
using Simulation;
|
using SepCore.Simulation;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using CustomDebugger;
|
using SepCore.Debugger;
|
||||||
|
|
||||||
namespace Components
|
namespace SepCore.Components
|
||||||
{
|
{
|
||||||
public class MovementComponent : MonoBehaviour
|
public class MovementComponent : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Components
|
namespace SepCore.Components
|
||||||
{
|
{
|
||||||
public class StatComponent : MonoBehaviour
|
public class StatComponent : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,34 +1,21 @@
|
||||||
//------------------------------------------------------------
|
using GameFramework;
|
||||||
// Game Framework
|
|
||||||
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
|
|
||||||
// Homepage: https://gameframework.cn/
|
|
||||||
// Feedback: mailto:ellan@gameframework.cn
|
|
||||||
//------------------------------------------------------------
|
|
||||||
|
|
||||||
using SepCore.Definition;
|
using SepCore.Definition;
|
||||||
using GameFramework;
|
|
||||||
using StarForce;
|
|
||||||
using SepCore.UI;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Serialization;
|
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace CustomComponent
|
namespace SepCore.BuiltinData
|
||||||
{
|
{
|
||||||
public class BuiltinDataComponent : GameFrameworkComponent
|
public class BuiltinDataComponent : GameFrameworkComponent
|
||||||
{
|
{
|
||||||
[FormerlySerializedAs("m_BuildInfoTextAsset")] [SerializeField]
|
[SerializeField] private TextAsset _buildInfoTextAsset = null;
|
||||||
private TextAsset _buildInfoTextAsset = null;
|
|
||||||
|
|
||||||
[FormerlySerializedAs("m_DefaultDictionaryTextAsset")] [SerializeField]
|
[SerializeField] private TextAsset _defaultDictionaryTextAsset = null;
|
||||||
private TextAsset _defaultDictionaryTextAsset = null;
|
|
||||||
|
|
||||||
[FormerlySerializedAs("m_UpdateResourceFormTemplate")] [SerializeField]
|
[SerializeField] private GameObject _updateResourceFormTemplate = null;
|
||||||
private GameObject _updateResourceFormTemplate = null;
|
|
||||||
|
|
||||||
private BuildInfo m_BuildInfo = null;
|
private BuildInfo _buildInfo = null;
|
||||||
|
|
||||||
public BuildInfo BuildInfo => m_BuildInfo;
|
public BuildInfo BuildInfo => _buildInfo;
|
||||||
|
|
||||||
public GameObject UpdateResourceFormTemplate => _updateResourceFormTemplate;
|
public GameObject UpdateResourceFormTemplate => _updateResourceFormTemplate;
|
||||||
|
|
||||||
|
|
@ -40,8 +27,8 @@ namespace CustomComponent
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_BuildInfo = Utility.Json.ToObject<BuildInfo>(_buildInfoTextAsset.text);
|
_buildInfo = Utility.Json.ToObject<BuildInfo>(_buildInfoTextAsset.text);
|
||||||
if (m_BuildInfo == null)
|
if (_buildInfo == null)
|
||||||
{
|
{
|
||||||
Log.Warning("Parse build info failure.");
|
Log.Warning("Parse build info failure.");
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using GameFramework.ObjectPool;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityGameFramework.Runtime;
|
using UnityGameFramework.Runtime;
|
||||||
|
|
||||||
namespace CustomComponent
|
namespace SepCore.DamageText
|
||||||
{
|
{
|
||||||
public class DamageTextComponent : GameFrameworkComponent
|
public class DamageTextComponent : GameFrameworkComponent
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue