1.1.0 未驗證

This commit is contained in:
Sahik committed 2026-11-25 16:51:44 +08:00
1 parent 2638c5929d
commit 4a72bd132a
31 files changed
+790 -123

No files matched your search

+6 -2
View File
@@ -9,11 +9,12 @@ public class GameSettings
// 貢獻者
public string contributorID = "Anonymous";
// 一般設定
public float sensitivity = 1.0f;
// 一般設定 (靈敏度用 double : float 的 1.4 會存成 1.399999976,double 才會是 1.4)
public double sensitivity = 1.0;
public int fov = 90;
// 輔助設定 (0 = 無輔助, 1 = 平滑跟槍)
// 自動配置時這幾個欄位由排程每回合決定,StartUI 存的值不使用 (config 裡的是實際套用的值)
public int assistMode = 0;
public int assistStrength = 0; // 1~100 (%),無輔助時為 0
public bool disableHorizontalAssist = false;
@@ -25,6 +26,7 @@ public class GameSettings
public string map = ""; // 場景名稱,例如 "Forest"
public string weapon = ""; // 武器名稱,例如 "M1911"
public bool isTest = false; // 測試模式 : 不記錄資料
public bool autoPlan = false; // 自動配置 (正式錄製) : 由 SessionPlan 安排每回合有無輔助與強度,鎖定地圖 / 武器 / FOV
// 系統資訊
public int screenWidth;
@@ -35,6 +37,8 @@ public class GameSettings
// 檔案位置 : Windows 為 %USERPROFILE%/AppData/LocalLow/<公司>/<產品>/settings.json
public static string FilePath => Path.Combine(Application.persistentDataPath, "settings.json");
public static bool Exists => File.Exists(FilePath);
public void Save()
{
File.WriteAllText(FilePath, JsonUtility.ToJson(this, true));