import{_ as e,c as t,o as d,a as r}from"./app.54d5a277.js";const g='{"title":"Interface: BaseGrid","description":"","frontmatter":{},"headers":[{"level":2,"title":"Hierarchy","slug":"hierarchy"},{"level":2,"title":"Properties","slug":"properties"},{"level":3,"title":"[Component]","slug":"component"},{"level":3,"title":"[DefaultValue]","slug":"defaultvalue"},{"level":3,"title":"[PersistentState]","slug":"persistentstate"},{"level":3,"title":"cells","slug":"cells"},{"level":3,"title":"id","slug":"id"},{"level":3,"title":"type","slug":"type"},{"level":2,"title":"Methods","slug":"methods"},{"level":3,"title":"[GatherProps]","slug":"gatherprops"},{"level":3,"title":"getID","slug":"getid"},{"level":3,"title":"getState","slug":"getstate"},{"level":3,"title":"setState","slug":"setstate"}],"relativePath":"api/interfaces/features/grids/grid.BaseGrid.md"}',o={},a=r('

Interface: BaseGrid

features/grids/grid.BaseGrid

Hierarchy

Properties

[Component]

\u2022 [Component]: DefineComponent<{ cells: { required: true = true; type: PropType<ProcessedComputable<Record<string, GridCell>>> } ; cols: { required: true = true; type: PropType<ProcessedComputable<number>> } ; rows: { required: true = true; type: PropType<ProcessedComputable<number>> } ; visibility: { required: true = true; type: PropType<ProcessedComputable<Visibility>> } }, { Visibility: typeof Visibility ; gatherCellProps: (cell: GridCell) => { canClick: boolean ; display: CoercableComponent ; id: string ; onClick: undefined | VoidFunction ; onHold: undefined | VoidFunction ; style: undefined | StyleValue ; title: undefined | CoercableComponent ; visibility: Visibility } ; mergeAdjacent: ComputedRef<boolean> ; unref: <T>(ref: T | Ref<T>) => T }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, PublicProps, Readonly<ExtractPropTypes<{ cells: { required: true = true; type: PropType<ProcessedComputable<Record<string, GridCell>>> } ; cols: { required: true = true; type: PropType<ProcessedComputable<number>> } ; rows: { required: true = true; type: PropType<ProcessedComputable<number>> } ; visibility: { required: true = true; type: PropType<ProcessedComputable<Visibility>> } }>>, {}>

Defined in

profectus/src/features/grids/grid.ts:214


[DefaultValue]

\u2022 [DefaultValue]: Record<string | number, State>

Inherited from

Persistent.__@DefaultValue@18652

Defined in

profectus/src/game/persistence.ts:25


[PersistentState]

\u2022 [PersistentState]: Ref<Record<string | number, State>>

Inherited from

Persistent.__@PersistentState@18650

Defined in

profectus/src/game/persistence.ts:24


cells

\u2022 cells: Record<string | number, GridCell>

Defined in

profectus/src/features/grids/grid.ts:212


id

\u2022 id: string

Defined in

profectus/src/features/grids/grid.ts:208


type

\u2022 type: typeof GridType

Defined in

profectus/src/features/grids/grid.ts:213

Methods

[GatherProps]

\u25B8 [GatherProps](): Record<string, unknown>

Returns

Record<string, unknown>

Defined in

profectus/src/features/grids/grid.ts:215


getID

\u25B8 getID(id, state): string

Parameters

NameType
idstring | number
stateState

Returns

string

Defined in

profectus/src/features/grids/grid.ts:209


getState

\u25B8 getState(id): State

Parameters

NameType
idstring | number

Returns

State

Defined in

profectus/src/features/grids/grid.ts:210


setState

\u25B8 setState(id, state): void

Parameters

NameType
idstring | number
stateState

Returns

void

Defined in

profectus/src/features/grids/grid.ts:211

',72),c=[a];function s(i,n,l,h,u,p){return d(),t("div",null,c)}var m=e(o,[["render",s]]);export{g as __pageData,m as default};