31 lines
524 B
C#
31 lines
524 B
C#
using System;
|
|
using Unity.Mathematics;
|
|
|
|
namespace BITKit.Entities.Melee
|
|
{
|
|
[Serializable]
|
|
public struct MeleeCommand
|
|
{
|
|
public int PlayerId;
|
|
public float3 Position;
|
|
public float3 Forward;
|
|
public float3 Force;
|
|
public float Range;
|
|
public int Damage;
|
|
public int Limit;
|
|
public string[] IgnoreTags;
|
|
public bool ForceHitStun;
|
|
}
|
|
[Serializable]
|
|
public struct MeleeConfig
|
|
{
|
|
public float3 Position;
|
|
public quaternion Rotation;
|
|
}
|
|
public interface IMeleeService
|
|
{
|
|
void Melee(MeleeCommand command);
|
|
}
|
|
|
|
}
|