This commit is contained in:
CortexCore 2025-03-10 18:06:24 +08:00
parent 88f1ff1b04
commit 16dd934194
18 changed files with 240 additions and 15 deletions

8
Src/Faction.meta Normal file
View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1119cb4eb98b29d42a7ae0b707973b43
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Net.Project.B.Faction
{
public enum FactionTypes
{
}
}

View File

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

View File

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

View File

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

8
Src/Impact.meta Normal file
View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: aa29d89c07141954f9614d0d0587cde1
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,23 @@
using System;
using System.Collections;
using System.Collections.Generic;
using BITKit;
// ReSharper disable InconsistentNaming
namespace Net.Project.B.Impact
{
public enum ImpactType
{
none=0,
metal=1,
blood=2,
glass=3,
water=4,
}
[Serializable]
public struct ImpactTypeReference : IReference
{
public ImpactType impactType;
public string Get() => impactType.ToString();
}
}

View File

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

View File

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

View File

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

8
Src/Melee.meta Normal file
View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 37d85a86c8a2b804da54ec1fc041e6c9
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,39 @@
using System;
using System.Collections;
using System.Collections.Generic;
using Net.Project.B.Damage;
using Unity.Mathematics;
namespace Net.Project.B.Melee
{
public interface IMeleeData:IDamageType
{
public float3 StartPosition { get; }
public float Radius { get; }
public int Damage { get; }
public IReadOnlyCollection<string> Tags { get; }
public IReadOnlyCollection<string> IgnoreTags { get; }
public int Initiator { get; }
int MaxTargetCount { get; }
}
public class MeleeData:IMeleeData
{
public float3 StartPosition { get; set; }
public float Radius { get; set; }
public int Damage { get; set; }
IReadOnlyCollection<string> IMeleeData.Tags => Tags;
IReadOnlyCollection<string> IMeleeData.IgnoreTags => IgnoreTags;
public readonly List<string> Tags=new();
public readonly List<string> IgnoreTags = new();
public int Initiator { get; set; }
public int MaxTargetCount { get; set; }
}
public interface IMeleeService
{
public void Add(IMeleeData meleeData);
}
}

View File

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

View File

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

View File

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

View File

@ -29,56 +29,74 @@ namespace Project.B.Player
QuarterResolution,
EighthResolution,
}
public enum Lang
{
[Description("zh-CN")]
CN,
[Description("en-US")]
EN,
[Description("ja-JP")]
JP,
}
#endif
/// <summary>
/// 玩家设置
/// </summary>
public class PlayerSettings
{
[Category("UI")]
[DisplayName("Settings_Lang")]
public Lang Lang { get; set; }
public string Language => Lang switch
{
Lang.EN => "en-US",
Lang.JP => "ja-JP",
_ => "zh-CN"
};
/// <summary>
/// 灵敏度
/// </summary>
[Category("控制")]
[DisplayName("鼠标灵敏度")]
[DisplayName("Settings_Sensitivity")]
public float Sensitivity { get; set; } = 1.81f;
[DisplayName("手柄灵敏度")] public float GamePadSensitivity { get; set; } = 1;
[DisplayName("Settings_Controller_Sensitivity")] public float GamePadSensitivity { get; set; } = 1;
[DisplayName("触屏灵敏度")] public float TouchSensitivity { get; set; } = 0.32f;
[DisplayName("Settings_Touch_Sensitivity")] public float TouchSensitivity { get; set; } = 0.32f;
/// <summary>
/// 视野
/// </summary>
[Category("画面")]
[DisplayName("FOV")]
[DisplayName("Settings_FOV")]
public int Fov { get; set; } = 90;
/// <summary>
/// 第三人称视野
/// </summary>
[DisplayName("TPS FOV")]
[DisplayName("Settings_TPS_FOV")]
public int TpsFov { get; set; } = 75;
/// <summary>
/// 分辨率
/// </summary>
[DisplayName("分辨率")] public int2 Resolution { get; set; }
[DisplayName("Settings_Resolution")] public int2 Resolution { get; set; }
/// <summary>
/// 是否全屏
/// </summary>
[DisplayName("全屏")] public bool IsFullScreen { get; set; }
[DisplayName("Settings_FullScreen")] public bool IsFullScreen { get; set; }
[Category("质量")]
[DisplayName("实时反射Cubemap")]public bool RealtimeReflectionProbes { get; set; }
[DisplayName("Settings_Realtime_Reflection_Probes")]public bool RealtimeReflectionProbes { get; set; }
[DisplayName("纹理串流")] public bool TextureStreaming { get; set; }
[DisplayName("Setting_Texture_Streaming")] public bool TextureStreaming { get; set; }
#if UNITY_5_3_OR_NEWER
[DisplayName("垂直同步")]
[DisplayName("Settings_VSync_Count")]
public VSyncCount VSyncCount { get; set; }
[DisplayName("实时GI使用率")]
[DisplayName("Settings_Realtime_GI_CPU_Usage")]
public RealtimeGICPUUsage RealtimeGICPUUsage { get; set; }
[DisplayName("纹理质量")]
[DisplayName("Settings_Global_MipMap_Limit")]
public GlobalMipmapLimit GlobalMipmapLimit { get; set; }
[DisplayName("各向异性")] public AnisotropicFiltering AnisotropicFiltering { get; set; }
[DisplayName("阴影模式")] public ShadowmaskMode ShadowmaskMode { get; set; }
[DisplayName("蒙皮权重")] public SkinWeights SkinWeights { get; set; }
[DisplayName("Settings_Anisotropic_Filtering")] public AnisotropicFiltering AnisotropicFiltering { get; set; }
[DisplayName("Settings_Shadowmask_Mode")] public ShadowmaskMode ShadowmaskMode { get; set; }
[DisplayName("Settings_SkinWeights")] public SkinWeights SkinWeights { get; set; }
#endif
}

View File

@ -17,6 +17,7 @@ namespace Net.Project.B.UX
public interface IUXDialogue : IUXPanel
{
event Func<string, string> OnSubtitle;
public string SubtitleLanguage { get; set; }
}
public interface IUXInventory : IUXPanel

View File

@ -24,6 +24,7 @@ namespace Net.Project.B.WorldNode
public object WorldObject { get; set; }
public UnityDoorState State;
public WorldInteractionProcess InteractionType;
public bool IsDoubleSwing;
#if UNITY_5_3_OR_NEWER
public Transform DoorTransform;
public Vector3 OpenPosition;