prefabsFrom
Function of @v12-engine/engine
ts
export declare function prefabsFrom(files: Record<string, unknown>, options?: {
prefix?: string;
}): PrefabDef[];The prefabs a designer made in the editor (prefabs/<name>.prefab.json of the game's folder), as prefabs of the game's, by their file names: prefabsFrom(import.meta.glob('./prefabs/*.prefab.json', { eager: true })), or any record of name to file. An object of a player's becomes the owner's; scenery, points and paths are left out. A variant is read through its source and a prefab with prefabs inside through those, as the editor places them, from the files given