@vttforge/core / SceneLike
Interface: SceneLike<System> ​
A scene.
Extends ​
DocumentMembers<System>
Type Parameters ​
System ​
System = Record<string, unknown>
Properties ​
active ​
readonlyactive:boolean
dimensions ​
readonlydimensions:Record<string,number>
documentName ​
readonlydocumentName:string
'Actor', 'Item', 'ActiveEffect', and so on.
Inherited from ​
drawings ​
readonlydrawings:EmbeddedCollection<DocumentMembers<Record<string,unknown>>>
firstLevel ​
readonlyfirstLevel:LevelLike|null
flags ​
readonlyflags:DocumentFlags
Inherited from ​
grid ​
readonlygrid:object
Index Signature ​
[key: string]: unknown
distance ​
distance:
number
size ​
size:
number
style ​
style:
string
type ​
type:
number
units ​
units:
string
height ​
readonlyheight:number
id ​
readonlyid:string|null
Inherited from ​
img ​
readonlyimg:string|null
Inherited from ​
initialLevel ​
readonlyinitialLevel:LevelLike|null
isOwner ​
readonlyisOwner:boolean
Whether the current user owns this document.
Inherited from ​
isView ​
readonlyisView:boolean
levels ​
readonlylevels:EmbeddedCollection<LevelLike>
New in v14. The background and fog moved onto these.
lights ​
readonlylights:EmbeddedCollection<DocumentMembers<Record<string,unknown>>>
name ​
readonlyname:string
Inherited from ​
navigation ​
readonlynavigation:boolean
navName ​
readonlynavName:string
navOrder ​
readonlynavOrder:number
notes ​
readonlynotes:EmbeddedCollection<DocumentMembers<Record<string,unknown>>>
padding ​
readonlypadding:number
parent ​
readonlyparent:DocumentMembers<Record<string,unknown>> |null
The document this one is embedded in, or null at the top level.
Inherited from ​
regions ​
readonlyregions:EmbeddedCollection<DocumentMembers<Record<string,unknown>>>
sounds ​
readonlysounds:EmbeddedCollection<DocumentMembers<Record<string,unknown>>>
system ​
readonlysystem:System
The type data model instance. Its fields are the schema's fields.
Inherited from ​
thumb ​
readonlythumb:string|null
tiles ​
readonlytiles:EmbeddedCollection<DocumentMembers<Record<string,unknown>>>
tokens ​
readonlytokens:EmbeddedCollection<TokenDocumentLike<Record<string,unknown>>>
tokenVision ​
readonlytokenVision:boolean
type ​
readonlytype:string
The subtype, as declared under documentTypes in the manifest.
Inherited from ​
uuid ​
readonlyuuid:string
Inherited from ​
walls ​
readonlywalls:EmbeddedCollection<DocumentMembers<Record<string,unknown>>>
weather ​
readonlyweather:string
width ​
readonlywidth:number
Methods ​
activate() ​
activate():
Promise<SceneLike<System>>
Returns ​
Promise<SceneLike<System>>
delete() ​
delete(
operation?):Promise<SceneLike<System> |undefined>
Parameters ​
operation? ​
Record<string, unknown>
Returns ​
Promise<SceneLike<System> | undefined>
Inherited from ​
getFlag() ​
getFlag<
T>(scope,key):T|undefined
Type Parameters ​
T ​
T = unknown
Parameters ​
scope ​
string
key ​
string
Returns ​
T | undefined
Inherited from ​
setFlag() ​
setFlag(
scope,key,value):Promise<SceneLike<System>>
Parameters ​
scope ​
string
key ​
string
value ​
unknown
Returns ​
Promise<SceneLike<System>>
Inherited from ​
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 ​
unsetFlag() ​
unsetFlag(
scope,key):Promise<SceneLike<System>>
Parameters ​
scope ​
string
key ​
string
Returns ​
Promise<SceneLike<System>>
Inherited from ​
update() ​
update(
data,operation?):Promise<SceneLike<System> |undefined>
Parameters ​
data ​
Record<string, unknown>
operation? ​
Record<string, unknown>
Returns ​
Promise<SceneLike<System> | undefined>
Inherited from ​
view() ​
view():
Promise<SceneLike<System>>
Returns ​
Promise<SceneLike<System>>