Skip to main content

AssetKind

Trait AssetKind 

Source
pub trait AssetKind: Sized + 'static {
    const NAME: &'static str;
}
Expand description

A kind of asset: the plain type a Format reads into. The engine’s kinds are its own types (ImageInfo, PaletteDef, DialogueFile…); a game makes one of each of its data tables.

Required Associated Constants§

Source

const NAME: &'static str

What messages call the kind, in lowercase words: "image", "palette".

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl AssetKind for AudioManifest

Source§

const NAME: &'static str = "audio manifest"

Source§

impl AssetKind for CreditsFile

Source§

const NAME: &'static str = "credits"

Source§

impl AssetKind for English

Source§

const NAME: &'static str = "english"

Source§

impl AssetKind for FontAtlasDef

Source§

const NAME: &'static str = "font atlas"

Source§

impl AssetKind for Image

Source§

const NAME: &'static str = "image pixels"

Source§

impl AssetKind for ImageInfo

Source§

const NAME: &'static str = "image"

Source§

impl AssetKind for LangPack

Source§

const NAME: &'static str = "language pack"

Source§

impl AssetKind for Lighting

Source§

const NAME: &'static str = "lights"

Source§

impl AssetKind for MusicTrack

Source§

const NAME: &'static str = "music track"

Source§

impl AssetKind for Names

Source§

const NAME: &'static str = "names table"

Source§

impl AssetKind for OneBitPicture

Source§

const NAME: &'static str = "one-bit picture"

Source§

impl AssetKind for PaletteDef

Source§

const NAME: &'static str = "palette"

Source§

impl AssetKind for PatternMapDef

Source§

const NAME: &'static str = "pattern map"

Source§

impl AssetKind for Sound

Source§

const NAME: &'static str = "sound"

Source§

impl AssetKind for TargetProfile

Source§

const NAME: &'static str = "target profile"

Source§

impl AssetKind for TerrainTiles

The tileset kind (ADR-0007), with no format of the engine’s: how a game writes its tiles is its own, and its format reads them into this.

Source§

const NAME: &'static str = "tileset"

Source§

impl<A: ActionSet> AssetKind for KeymapDef<A>

Source§

const NAME: &'static str = "keymap"

Source§

impl<D: 'static> AssetKind for DialogueFile<D>

Source§

const NAME: &'static str = "dialogue"

Source§

impl<S: 'static, P: 'static> AssetKind for CinematicFile<S, P>

Source§

const NAME: &'static str = "cinematic"

Source§

impl<T: 'static, F: 'static> AssetKind for GridMap<T, F>

Source§

const NAME: &'static str = "map"