import{_ as t,c as o,a0 as a,o as r}from"./chunks/framework.P9qPzDnn.js";const h=JSON.parse('{"title":"Function: createLayer()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/game/layers/functions/createLayer.md","filePath":"api/game/layers/functions/createLayer.md","lastUpdated":null}'),c={name:"api/game/layers/functions/createLayer.md"};function d(i,e,s,n,l,p){return r(),o("div",null,e[0]||(e[0]=[a('

Profectus / game/layers / createLayer

Function: createLayer()

createLayer<T>(id, optionsFunc): object & Omit<Omit<T & ThisType<Layer & Omit<T, keyof Layer>>, "display" | "classes" | "style" | "color" | "name" | "minimizable" | "minimizedDisplay" | "forceHideGoBack" | "minWidth">, keyof LayerOptions> & object

Lazily creates a layer with the given options.

Type Parameters

T extends LayerOptions

Parameters

id

string

The ID this layer will have. See BaseLayer.id.

optionsFunc

(layer) => T & ThisType<Layer & Omit<T, keyof Layer>>

Layer options.

Returns

object & Omit<Omit<T & ThisType<Layer & Omit<T, keyof Layer>>, "display" | "classes" | "style" | "color" | "name" | "minimizable" | "minimizedDisplay" | "forceHideGoBack" | "minWidth">, keyof LayerOptions> & object

Defined in

profectus/src/game/layers.tsx:218

',17)]))}const u=t(c,[["render",d]]);export{h as __pageData,u as default};