1
This commit is contained in:
@@ -23,6 +23,7 @@ namespace BITFALL
|
||||
public const string Interactive = nameof(Interactive);
|
||||
public const string Equip = nameof(Equip);
|
||||
public const string Throw = nameof(Throw);
|
||||
public const string Tactics = nameof(Tactics);
|
||||
public const string Fire = nameof(Fire);
|
||||
public const string Draw =nameof(Draw);
|
||||
public const string QuickDraw =nameof(QuickDraw);
|
||||
|
@@ -21,7 +21,9 @@ namespace BITFALL.Cosmetic
|
||||
public interface ICosmeticService:IModifyManager
|
||||
{
|
||||
ICosmetic[] Cosmetics { get; }
|
||||
event Action OnCosmeticsChange;
|
||||
event Action OnCosmeticsChanged;
|
||||
void SetDirty();
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -10,6 +10,10 @@ namespace BITFALL
|
||||
public abstract record EquipmentSlot: IEquipmentSlot
|
||||
{
|
||||
public override int GetHashCode() => GetType().GetHashCode();
|
||||
public virtual bool Equals(EquipmentSlot other)
|
||||
{
|
||||
return other?.GetType() == GetType();
|
||||
}
|
||||
}
|
||||
[System.Serializable]
|
||||
public sealed record EquipmentAsHead: EquipmentSlot { }
|
||||
|
@@ -38,6 +38,12 @@ namespace BITFALL.Player.Movement
|
||||
public int Id;
|
||||
public float Speed;
|
||||
}
|
||||
public struct PlayerLimitSensitivityCommand
|
||||
{
|
||||
public bool Limit;
|
||||
public int Id;
|
||||
public float Sensitivity;
|
||||
}
|
||||
public struct PlayerChangeVelocityCommand
|
||||
{
|
||||
public float3 Velocity;
|
||||
|
14
Assets/BITFALL/Props/IStunObject.cs
Normal file
14
Assets/BITFALL/Props/IStunObject.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BITFALL.Props
|
||||
{
|
||||
public interface IStunObject
|
||||
{
|
||||
float Weight { get; }
|
||||
event Action<float> OnWeightChanged;
|
||||
void Stun(float distance, float duration);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user