This commit is contained in:
CortexCore
2024-03-29 00:58:24 +08:00
parent 967ad8eacf
commit 05315ef4a8
232 changed files with 53368 additions and 8539 deletions

View File

@@ -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);

View File

@@ -21,7 +21,9 @@ namespace BITFALL.Cosmetic
public interface ICosmeticService:IModifyManager
{
ICosmetic[] Cosmetics { get; }
event Action OnCosmeticsChange;
event Action OnCosmeticsChanged;
void SetDirty();
}
}

View File

@@ -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 { }

View File

@@ -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;

View 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);
}
}