Skip to content

EditorSelected beta ​

TypeAlias of @v12-engine/editor

ts
export type EditorSelected = {
    objects: MapObject[];
    camps: MapCamp[];
    regions: MapRegion[];
    points: MapPoint[];
    paths: MapPath[];
    doodads: MapDoodad[];
    lights: MapLightSource[];
    effects: MapFx[];
    decals: MapDecal[];
} & {
    [kind: `kind:${string}`]: MapThing[] | undefined;
};

What is selected, as the things themselves, by kind (CollectionId): copies of them as the map has them now, so that what reads them sees what changed. Every kind of the editor's own is there, empty where none is selected; a kind of the game's own (MapKindDef) is there, under kind: and its id, only where something of it is