# NpcClass record

> What a Plugin's NPC class gives the bodies it spawns.

Namespace `EvilEngine.Api.Npcs`, assembly `EvilEngine.Api`. Engine commit 4ff877b1.

```csharp
public sealed record NpcClass
```

What a Plugin's NPC class gives the bodies it spawns.

## Members

### NpcClass (constructor)

```csharp
public NpcClass(int Health)
```

The health a body of the class spawns with.

### Health (property)

```csharp
public int Health { get; init; }
```

The health it spawns with. A body that spawns with 0 dies to the first damage it takes.

### MaxHealth (property)

```csharp
public int? MaxHealth { get; init; }
```

The most health it can be raised to, or `null` for what it spawns with.

### Agent (property)

```csharp
public ContentId? Agent { get; init; }
```

The agent record its bodies attach when they spawn, giving their hull, movement and brain, or `null` for bodies that stand as they are.

### ModelHealth (property)

```csharp
public IReadOnlyDictionary<ContentId, int> ModelHealth { get; init; }
```

Health by the body's model where a class gives some models other health, as Half-Life 2's Combine soldier does its elite.
