This commit is contained in:
CortexCore
2024-11-23 17:20:13 +08:00
commit bb257507bc
133 changed files with 2574 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
{
"name": "Com.Project.B.PlayerSettings",
"rootNamespace": "",
"references": [
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
"GUID:d8b63aba1907145bea998dd612889d6b"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": true
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: a3cd7886d0941284aa4f5e020270c73a
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,13 @@
using System.Collections;
using System.Collections.Generic;
namespace Project.B.Player
{
public interface IKeyMap
{
/// <summary>
/// 键位字典
/// </summary>
public IReadOnlyDictionary<string, object> KeyDictionary { get; }
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f1b454bfee320d94da7750e207baeefb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,93 @@
using System.Collections.Generic;
namespace Project.B.Player
{
/// <summary>
/// 玩家键位
/// </summary>
public interface IPlayerKeyMap:IKeyMap
{
/// <summary>
/// 移动
/// </summary>
public string MovementKey { get; set; }
/// <summary>
/// 视角
/// </summary>
public string ViewKey { get; set; }
/// <summary>
/// 跳跃
/// </summary>
public string JumpKey { get; set; }
/// <summary>
/// 奔跑
/// </summary>
public string RunKey{ get; set; }
/// <summary>
/// 蹲下
/// </summary>
public string CrouchKey { get; set; }
/// <summary>
/// 切换第三人称相机
/// </summary>
public string ToggleCameraKey { get; set; }
/// <summary>
/// 互动
/// </summary>
public string InteractiveKey { get; }
/// <summary>
/// 收起武器
/// </summary>
public string HolsterKey { get; }
/// <summary>
/// 主武器
/// </summary>
public string PrimaryWeaponKey { get; }
/// <summary>
/// 副武器
/// </summary>
public string SecondaryWeaponKey { get; }
/// <summary>
/// 随身武器
/// </summary>
public string SidearmKey { get; }
/// <summary>
/// 消耗品
/// </summary>
public string SuppliesKey { get; }
/// <summary>
/// 战术道具
/// </summary>
public string TacticalKey { get; }
/// <summary>
/// 致命道具
/// </summary>
public string LethalKey { get; }
/// <summary>
/// 连杀道具
/// </summary>
public string KillStreakKey { get; }
/// <summary>
/// 滚轮缩放,在不同状态下有不同的表现
/// </summary>
public string ScrollKey { get; }
/// <summary>
/// 近战
/// </summary>
public string MeleeKey { get; }
/// <summary>
/// 重装
/// </summary>
public string ReloadKey { get; }
/// <summary>
/// 瞄准
/// </summary>
public string AimKey { get; }
/// <summary>
/// 开火
/// </summary>
public string FireKey { get; }
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b96b94748c46abe48a458c08828b3aa0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,34 @@
using Unity.Mathematics;
namespace Project.B.Player
{
/// <summary>
/// 玩家设置
/// </summary>
public interface IPlayerSettings
{
/// <summary>
/// 灵敏度
/// </summary>
public float Sensitivity { get; set; }
public float GamePadSensitivity { get; set; }
/// <summary>
/// 视野
/// </summary>
public int Fov { get; set; }
/// <summary>
/// 刷新率
/// </summary>
public int Freq { get; }
/// <summary>
/// 分辨率
/// </summary>
public int2 Resolution { get; set; }
/// <summary>
/// 是否全屏
/// </summary>
public bool IsFullScreen { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 08583ca0424969648b301dfc107f50c8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,12 @@
using System.Collections;
using System.Collections.Generic;
namespace Project.B.Player
{
public interface IUXKeyMap : IKeyMap
{
public string CancelKey { get; set; }
public string InventoryKey { get; set; }
public string ConfirmKey { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4170bfefe0abf124fb011de09b00705a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: