# Sandbox.Component.IDamageable.OnDamage

```csharp
void OnDamage(in DamageInfo& modreq(System.Runtime.InteropServices.InAttribute) damage)
```

### Parameters

- `in damage` (`DamageInfo& modreq(System.Runtime.InteropServices.InAttribute)`)

Declared in [Sandbox.Component.IDamageable](/api/Sandbox.Component.IDamageable).
Assembly: `Sandbox.Engine`.
