# ContentKind record struct

> What kind of thing a piece of content is, by name, such as texture or map. Every content request is a kind and a ContentId, and a converter makes exactly one kind, its Produces.

Namespace `EvilEngine.Formats`, assembly `EvilEngine.Formats`. Engine commit 4ff877b1.

```csharp
public readonly record struct ContentKind
```

What kind of thing a piece of content is, by name, such as `texture` or `map`. Every content request is a kind and a [ContentId](/docs/api/contentid), and a converter makes exactly one kind, its [Produces](/docs/api/iconverter#produces).

The kinds below are the engine's own, each with its own format. Use these fields rather than making a kind from a string.

## Members

### ContentKind (constructor)

```csharp
public ContentKind(string Name)
```

Makes a kind from its name. Two kinds with the same name are equal.

### Model (field)

```csharp
public static readonly ContentKind Model
```

`model`: meshes, their skeleton and skins.

### Material (field)

```csharp
public static readonly ContentKind Material
```

`material`: what a surface draws with, its shader and parameters.

### Texture (field)

```csharp
public static readonly ContentKind Texture
```

`texture`: an image with its format and sampling.

### Sound (field)

```csharp
public static readonly ContentKind Sound
```

`sound`: one sound to play.

### Map (field)

```csharp
public static readonly ContentKind Map
```

`map`: a map's manifest, naming its sky, cells and environment.

### Sky (field)

```csharp
public static readonly ContentKind Sky
```

`sky`: a sky to draw around a map.

### Cell (field)

```csharp
public static readonly ContentKind Cell
```

`cell`: one piece of a map, with its solids, entities and placements.

### Collision (field)

```csharp
public static readonly ContentKind Collision
```

`collision`: shapes to collide with, and their surfaces and mass.

### Animation (field)

```csharp
public static readonly ContentKind Animation
```

`animation`: clips for a model's skeleton.

### Record (field)

```csharp
public static readonly ContentKind Record
```

`record`: a record set, such as the map list at `<game>:records/maps`.

### Shader (field)

```csharp
public static readonly ContentKind Shader
```

`shader`: a shader a material draws through.

### Text (field)

```csharp
public static readonly ContentKind Text
```

`text`: a text table, the game's own strings by key.

### Music (field)

```csharp
public static readonly ContentKind Music
```

`music`: one music file, kept in its own codec, such as FLAC, Opus or MP3.

### Probes (field)

```csharp
public static readonly ContentKind Probes
```

`probes`: a map cell's ambient light samples, each a cube of six colours at a point, with the regions of space each one lights.

### Font (field)

```csharp
public static readonly ContentKind Font
```

`font`: a TrueType or OpenType font file, kept as it is, such as the one a HUD or a crosshair draws its digits and glyphs from.

### Particles (field)

```csharp
public static readonly ContentKind Particles
```

`particles`: a particle set, its systems by name, each with its emitters, initialisers, operators and renderer, its children and its material, such as `gmod:particles/water_impact` from one of Source's `.pcf` files.

### Name (property)

```csharp
public string Name { get; init; }
```

The kind's name, as it's written in ids, errors and the cache.
