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
@@ -1,24 +1,31 @@
using Microsoft.Xna.Framework;
using Barotrauma.Networking;
using Microsoft.Xna.Framework;
namespace Barotrauma
{
interface IDamageable
{
Vector2 SimPosition
{
get;
}
Vector2 WorldPosition
{
get;
}
float Health
{
get;
}
Vector2 SimPosition { get; }
Vector2 WorldPosition { get; }
float Health { get; }
AttackResult AddDamage(Character attacker, Vector2 worldPosition, Attack attack, float deltaTime, bool playSound=true);
public readonly struct AttackEventData
{
public readonly ISpatialEntity Attacker;
public readonly IDamageable TargetEntity;
public readonly Limb TargetLimb;
public readonly Vector2 AttackSimPosition;
public AttackEventData(ISpatialEntity attacker, IDamageable targetEntity, Limb targetLimb, Vector2 attackSimPosition)
{
Attacker = attacker;
TargetEntity = targetEntity;
TargetLimb = targetLimb;
AttackSimPosition = attackSimPosition;
}
}
}
}