Barotrauma Client Doc
Barotrauma.IDamageable Interface Reference
Inheritance diagram for Barotrauma.IDamageable:
Barotrauma.Character Barotrauma.DestructibleLevelWall Barotrauma.DestructibleLevelWall Barotrauma.Item Barotrauma.Item Barotrauma.LevelObject Barotrauma.Structure Barotrauma.Structure

Classes

struct  AttackEventData
 

Public Member Functions

AttackResult AddDamage (Character attacker, Vector2 worldPosition, Attack attack, Vector2 impulseDirection, float deltaTime, bool playSound=true)
 

Properties

Vector2 SimPosition [get]
 
Vector2 WorldPosition [get]
 
float Health [get]
 

Detailed Description

Definition at line 6 of file IDamageable.cs.

Member Function Documentation

◆ AddDamage()

AttackResult Barotrauma.IDamageable.AddDamage ( Character  attacker,
Vector2  worldPosition,
Attack  attack,
Vector2  impulseDirection,
float  deltaTime,
bool  playSound = true 
)

Property Documentation

◆ Health

float Barotrauma.IDamageable.Health
get

Definition at line 10 of file IDamageable.cs.

◆ SimPosition

Vector2 Barotrauma.IDamageable.SimPosition
get

Definition at line 8 of file IDamageable.cs.

◆ WorldPosition

Vector2 Barotrauma.IDamageable.WorldPosition
get

Definition at line 9 of file IDamageable.cs.