Unstable 0.17.1.0

This commit is contained in:
Markus Isberg
2022-03-17 01:25:04 +09:00
parent 3974067915
commit 6d410cc1b7
302 changed files with 5878 additions and 3317 deletions
@@ -0,0 +1,35 @@
using System;
namespace Barotrauma
{
partial class Item
{
private readonly struct CombineEventData : IEventData
{
public EventType EventType => EventType.Combine;
public readonly Item CombineTarget;
public CombineEventData(Item combineTarget)
{
CombineTarget = combineTarget;
}
}
private readonly struct TreatmentEventData : IEventData
{
public EventType EventType => EventType.Treatment;
public readonly Character TargetCharacter;
public readonly Limb TargetLimb;
public byte LimbIndex
=> TargetCharacter?.AnimController?.Limbs is { } limbs
? (byte)Array.IndexOf(limbs, TargetLimb)
: byte.MaxValue;
public TreatmentEventData(Character targetCharacter, Limb targetLimb)
{
TargetCharacter = targetCharacter;
TargetLimb = targetLimb;
}
}
}
}