From 89f8b524233579915cde34170eed09cf22761f6f Mon Sep 17 00:00:00 2001 From: Ding Yuntian <1491671119@qq.com> Date: Tue, 24 Mar 2026 15:33:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(asset-refs):=20=E6=B7=BB=E5=8A=A0=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E5=BC=95=E7=94=A8=E9=9B=86=E4=B8=AD=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/AssetRefs/ConstRef.cs | 87 +++++++++++++++++++ Assets/Scripts/AssetRefs/ConstRef.cs.meta | 3 + Assets/Scripts/AssetRefs/FixAssetRef.cs | 9 ++ Assets/Scripts/AssetRefs/FixAssetRef.cs.meta | 11 +++ Assets/Scripts/AssetRefs/TimelineAssetRef.cs | 15 ++++ .../AssetRefs/TimelineAssetRef.cs.meta | 11 +++ 6 files changed, 136 insertions(+) create mode 100644 Assets/Scripts/AssetRefs/ConstRef.cs create mode 100644 Assets/Scripts/AssetRefs/ConstRef.cs.meta create mode 100644 Assets/Scripts/AssetRefs/FixAssetRef.cs create mode 100644 Assets/Scripts/AssetRefs/FixAssetRef.cs.meta create mode 100644 Assets/Scripts/AssetRefs/TimelineAssetRef.cs create mode 100644 Assets/Scripts/AssetRefs/TimelineAssetRef.cs.meta diff --git a/Assets/Scripts/AssetRefs/ConstRef.cs b/Assets/Scripts/AssetRefs/ConstRef.cs new file mode 100644 index 000000000..5f268048a --- /dev/null +++ b/Assets/Scripts/AssetRefs/ConstRef.cs @@ -0,0 +1,87 @@ +using System.IO; +using UnityEngine; + +namespace AibisDream.Utility +{ + public static class ConstRef + { + public const string QQURL = "https://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=XQFpOqRb1_zqkCdR2bLT3kHb11XzZ54T" + + "&authKey=w8G8qxzecnATXDOec1Ybv8LA%2FTTN8gQkyegvbK%2FUZ9m90WxggTjXy2U6%2FJes" + + "WJF3&noverify=0&group_code=325268983"; + + public const string DiscordURL = "https://discord.gg/C7Xv8Z9NxG"; + + public const string BugSurveyURL = "https://jsj.top/f/F24cC6"; + + public const string SurveyURL_CN = "https://jsj.top/f/HkmCnH"; + public const string SurveyURL_EN = "https://jsj.top/f/y501LX"; + public const string SurveyURL_JP = "https://jsj.top/f/icnVug"; + + public const string WishlistURL = "https://store.steampowered.com/app/3473430/_All_Our_Broken_Parts?utm_source=playtest"; + + public static readonly string TestSaveFilePath = Application.streamingAssetsPath + "/TestSaveFiles"; + +#if UnityEditor + public static readonly string SaveFilePath = Application.persistentDataPath + "/SaveFiles/"; +#else + public static readonly string SaveFilePath = Path.Combine(Application.persistentDataPath, "AllOurBrokenParts", "saves"); +#endif + + public static readonly string ChapterProgressPath = Path.Combine(Application.persistentDataPath, "AllOurBrokenParts", "Config", "chapter.json"); + + public static readonly string CharacterConfigPath = Path.Combine(Application.streamingAssetsPath, "Config", "character.csv"); + + public static readonly string LogFilePath = Path.Combine(Application.persistentDataPath, "LogFile"); + public static readonly string BlockPuzzleDataPath = Path.Combine(Application.streamingAssetsPath, "LevelData", "BlockPuzzle", "BlockPuzzleData.json"); + public static readonly string BlockShapeDataPath = Path.Combine(Application.streamingAssetsPath, "LevelData", "BlockPuzzle", "BlockShapeData.json"); + public static readonly string BlockShapeInfoPath = Path.Combine(Application.streamingAssetsPath, "LevelData", "BlockPuzzle", "BlockShapeInfo.json"); + + #region 本地化索引 + + public const string UITextTable = "UIText"; + + public const string ActorNameTable = "ActorName"; + + #endregion + + #region 资产 + + public const string CutLinePrefabName = "Prefab/CutLine"; + + public const string TaskItemName = "Prefab/TaskItem"; + + public const string ActorPrefabName = "Prefab/ActorAnima"; + public const string SpriteActorPrefabName = "Prefab/SpriteActor"; + public const string ActorAnimaExPrefabName = "Prefab/ActorAnimaEx"; + + public const string MobileAnima = "Prefab/AnimaMobileObject"; + public const string MobileSprite = "Prefab/SpriteMobileObject"; + public const string MobileObject = "Prefab/PrefabMobileObject"; + + public const string BubblePrefab = "Prefab/NormalBubble"; + + public const string PipelinePrefabAddress = "PipelinePrefab"; + + public const string BlockShapePrefab = "BlockPuzzle/BlockShape"; + + #endregion + + #region 动画配置 + + public const float TargetAspect = 16f / 9f; + + public const float PanelDelayDuration = 0.4f; + + #endregion + + #region 文字速度配置 (毫秒) + + public const int CharacterDelayTime = 70; + public const int LineMaxDelay = 2800; + public const int LineMinDelay = 600; + public const int AutoHideDelay = 150; + public const int FixedDelay = 200; + + #endregion + } +} \ No newline at end of file diff --git a/Assets/Scripts/AssetRefs/ConstRef.cs.meta b/Assets/Scripts/AssetRefs/ConstRef.cs.meta new file mode 100644 index 000000000..78f0be93e --- /dev/null +++ b/Assets/Scripts/AssetRefs/ConstRef.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: b7d5dc10d6784924a322b8968a6488d6 +timeCreated: 1744355327 \ No newline at end of file diff --git a/Assets/Scripts/AssetRefs/FixAssetRef.cs b/Assets/Scripts/AssetRefs/FixAssetRef.cs new file mode 100644 index 000000000..29fef36fe --- /dev/null +++ b/Assets/Scripts/AssetRefs/FixAssetRef.cs @@ -0,0 +1,9 @@ +namespace AibisDream +{ + public static class FixAssetRef + { + public const string EyeCoverOpenA = "Sprite/视觉模块盖子[视觉模块盖子打开A]"; + public const string EyeCoverOpenB = "Sprite/视觉模块盖子[视觉模块盖子打开B]"; + public const string EyeCoverClose = "Sprite/视觉模块盖子[视觉模块盖子关闭]"; + } +} \ No newline at end of file diff --git a/Assets/Scripts/AssetRefs/FixAssetRef.cs.meta b/Assets/Scripts/AssetRefs/FixAssetRef.cs.meta new file mode 100644 index 000000000..d586b2cc8 --- /dev/null +++ b/Assets/Scripts/AssetRefs/FixAssetRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 47558f771a2603d468d32a6158c5ba6c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/AssetRefs/TimelineAssetRef.cs b/Assets/Scripts/AssetRefs/TimelineAssetRef.cs new file mode 100644 index 000000000..25bde037a --- /dev/null +++ b/Assets/Scripts/AssetRefs/TimelineAssetRef.cs @@ -0,0 +1,15 @@ +namespace AibisDream +{ + public static class TimelineAssetRef + { + // ------------------- 维修面板相关 ------------------- + public const string BlockPuzzleEnter = "引擎仓面板/引擎仓面板开启"; + public const string BlockPuzzleExit = "引擎仓面板/引擎仓面板关闭"; + public const string CablePanelEnter = "插线面板/插线面板开启"; + public const string CablePanelExit = "插线面板/插线面板关闭"; + + // ------------------- 插线模块相关 ------------------- + public const string EngineModuleEnter = "引擎模块/引擎开盖"; + public const string EngineModuleExit = "引擎模块/引擎合盖"; + } +} diff --git a/Assets/Scripts/AssetRefs/TimelineAssetRef.cs.meta b/Assets/Scripts/AssetRefs/TimelineAssetRef.cs.meta new file mode 100644 index 000000000..8169618d6 --- /dev/null +++ b/Assets/Scripts/AssetRefs/TimelineAssetRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ad3885fd232d55b4d88cf21be8a292fb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: