Skip to content

@vttforge/core / LevelLike

Interface: LevelLike ​

A Level document. New in v14: a scene's background lives here.

Extends ​

Properties ​

background ​

readonly background: object

Index Signature ​

[key: string]: unknown

src ​

src: string | null


documentName ​

readonly documentName: string

'Actor', 'Item', 'ActiveEffect', and so on.

Inherited from ​

DocumentMembers.documentName


elevation ​

readonly elevation: object

bottom ​

bottom: number

top ​

top: number


flags ​

readonly flags: DocumentFlags

Inherited from ​

DocumentMembers.flags


foreground ​

readonly foreground: object

Index Signature ​

[key: string]: unknown

src ​

src: string | null


id ​

readonly id: string | null

Inherited from ​

DocumentMembers.id


img ​

readonly img: string | null

Inherited from ​

DocumentMembers.img


isOwner ​

readonly isOwner: boolean

Whether the current user owns this document.

Inherited from ​

DocumentMembers.isOwner


name ​

readonly name: string

Inherited from ​

DocumentMembers.name


parent ​

readonly parent: DocumentMembers<Record<string, unknown>> | null

The document this one is embedded in, or null at the top level.

Inherited from ​

DocumentMembers.parent


system ​

readonly system: System

The type data model instance. Its fields are the schema's fields.

Inherited from ​

DocumentMembers.system


type ​

readonly type: string

The subtype, as declared under documentTypes in the manifest.

Inherited from ​

DocumentMembers.type


uuid ​

readonly uuid: string

Inherited from ​

DocumentMembers.uuid

Methods ​

delete() ​

delete(operation?): Promise<LevelLike | undefined>

Parameters ​

operation? ​

Record<string, unknown>

Returns ​

Promise<LevelLike | undefined>

Inherited from ​

DocumentMembers.delete


getFlag() ​

getFlag<T>(scope, key): T | undefined

Type Parameters ​

T ​

T = unknown

Parameters ​

scope ​

string

key ​

string

Returns ​

T | undefined

Inherited from ​

DocumentMembers.getFlag


setFlag() ​

setFlag(scope, key, value): Promise<LevelLike>

Parameters ​

scope ​

string

key ​

string

value ​

unknown

Returns ​

Promise<LevelLike>

Inherited from ​

DocumentMembers.setFlag


toObject() ​

toObject(source?): Record<string, unknown>

A plain-object copy. source reads the stored data instead of the prepared data.

Parameters ​

source? ​

boolean

Returns ​

Record<string, unknown>

Inherited from ​

DocumentMembers.toObject


unsetFlag() ​

unsetFlag(scope, key): Promise<LevelLike>

Parameters ​

scope ​

string

key ​

string

Returns ​

Promise<LevelLike>

Inherited from ​

DocumentMembers.unsetFlag


update() ​

update(data, operation?): Promise<LevelLike | undefined>

Parameters ​

data ​

Record<string, unknown>

operation? ​

Record<string, unknown>

Returns ​

Promise<LevelLike | undefined>

Inherited from ​

DocumentMembers.update

MIT licensed.