Interface: BaseGrid
features/grids/grid.BaseGrid
Hierarchy
Persistent
<Record
<string
|number
,State
>>↳
BaseGrid
Properties
[Component]
• [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]
• [DefaultValue]: Record
<string
| number
, State
>
Inherited from
Persistent.__@DefaultValue@18652
Defined in
profectus/src/game/persistence.ts:25
[PersistentState]
• [PersistentState]: Ref
<Record
<string
| number
, State
>>
Inherited from
Persistent.__@PersistentState@18650
Defined in
profectus/src/game/persistence.ts:24
cells
• cells: Record
<string
| number
, GridCell
>
Defined in
profectus/src/features/grids/grid.ts:212
id
• id: string
Defined in
profectus/src/features/grids/grid.ts:208
type
• type: typeof GridType
Defined in
profectus/src/features/grids/grid.ts:213
Methods
[GatherProps]
▸ [GatherProps](): Record
<string
, unknown
>
Returns
Record
<string
, unknown
>
Defined in
profectus/src/features/grids/grid.ts:215
getID
▸ getID(id
, state
): string
Parameters
Name | Type |
---|---|
id | string | number |
state | State |
Returns
string
Defined in
profectus/src/features/grids/grid.ts:209
getState
▸ getState(id
): State
Parameters
Name | Type |
---|---|
id | string | number |
Returns
Defined in
profectus/src/features/grids/grid.ts:210
setState
▸ setState(id
, state
): void
Parameters
Name | Type |
---|---|
id | string | number |
state | State |
Returns
void