Skip to content

KeptByKind beta ​

TypeAlias of @v12-engine/editor

ts
export type KeptByKind<T> = {
    [kind in BuiltInCollectionId]?: T;
} & {
    things?: Record<string, T>;
};

Something kept by kind in a file (a prefab's copy, an instance's parts in the map's data): the editor's own kinds under their collection's id, and the game's kinds' under things, by the kind's id. Files keep this shape; the editor reads and writes them by collection (keptOf, keepIn, keptEntries)