Skip to content
EvilEngine.Formats

ContentKind record struct

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, and a converter makes exactly one kind, its 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.

Assembly
EvilEngine.Formats
Commit
4ff877b1

Members

ContentKind constructor

public ContentKind(string Name)

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

Model field

public static readonly ContentKind Model

model: meshes, their skeleton and skins.

Material field

public static readonly ContentKind Material

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

Texture field

public static readonly ContentKind Texture

texture: an image with its format and sampling.

Sound field

public static readonly ContentKind Sound

sound: one sound to play.

Map field

public static readonly ContentKind Map

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

Sky field

public static readonly ContentKind Sky

sky: a sky to draw around a map.

Cell field

public static readonly ContentKind Cell

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

Collision field

public static readonly ContentKind Collision

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

Animation field

public static readonly ContentKind Animation

animation: clips for a model’s skeleton.

Record field

public static readonly ContentKind Record

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

Shader field

public static readonly ContentKind Shader

shader: a shader a material draws through.

Text field

public static readonly ContentKind Text

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

Music field

public static readonly ContentKind Music

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

Probes field

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

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

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

public string Name { get; init; }

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