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

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: