Scrawl-canvas API
SC inline documentation
SC demo test suite
SC developer runbook
GitHub
Preparing search index...
WorldInstance
Interface WorldInstance
interface
WorldInstance
{
actionPacket
:
(
item
:
string
,
override
?:
CommonObjectInput
)
=>
any
;
addAttribute
:
(
items
:
UserInput
)
=>
WorldInstance
;
clone
:
(
item
?:
WorldFactoryInputs
)
=>
WorldInstance
;
get
:
(
item
:
string
)
=>
any
;
gravity
?:
number
[]
;
importPacket
:
(
item
:
string
|
string
[]
,
override
?:
CommonObjectInput
,
)
=>
any
;
keytypes
?:
CommonObjectInput
;
kill
:
(
item
?:
any
)
=>
void
;
name
?:
string
;
removeAttribute
:
(
key
:
string
)
=>
WorldInstance
;
saveAsPacket
:
(
item
?:
boolean
|
WorldSaveInputs
)
=>
string
;
set
:
(
item
?:
WorldFactoryInputs
)
=>
WorldInstance
;
setDelta
:
(
item
?:
WorldFactoryDeltaInputs
)
=>
WorldInstance
;
tickMultiplier
?:
number
;
userAttributes
?:
UserInput
[]
;
}
Hierarchy (
View Summary
)
WorldFactoryInputs
WorldFactoryFunctions
WorldInstance
Index
Properties
action
Packet
add
Attribute
clone
get
gravity?
import
Packet
keytypes?
kill
name?
remove
Attribute
save
As
Packet
set
set
Delta
tick
Multiplier?
user
Attributes?
Properties
action
Packet
actionPacket
:
(
item
:
string
,
override
?:
CommonObjectInput
)
=>
any
add
Attribute
addAttribute
:
(
items
:
UserInput
)
=>
WorldInstance
clone
clone
:
(
item
?:
WorldFactoryInputs
)
=>
WorldInstance
get
get
:
(
item
:
string
)
=>
any
Optional
gravity
gravity
?:
number
[]
import
Packet
importPacket
:
(
item
:
string
|
string
[]
,
override
?:
CommonObjectInput
)
=>
any
Optional
keytypes
keytypes
?:
CommonObjectInput
kill
kill
:
(
item
?:
any
)
=>
void
Optional
name
name
?:
string
remove
Attribute
removeAttribute
:
(
key
:
string
)
=>
WorldInstance
save
As
Packet
saveAsPacket
:
(
item
?:
boolean
|
WorldSaveInputs
)
=>
string
set
set
:
(
item
?:
WorldFactoryInputs
)
=>
WorldInstance
set
Delta
setDelta
:
(
item
?:
WorldFactoryDeltaInputs
)
=>
WorldInstance
Optional
tick
Multiplier
tickMultiplier
?:
number
Optional
user
Attributes
userAttributes
?:
UserInput
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
action
Packet
add
Attribute
clone
get
gravity
import
Packet
keytypes
kill
name
remove
Attribute
save
As
Packet
set
set
Delta
tick
Multiplier
user
Attributes
SC inline documentation
SC demo test suite
SC developer runbook
GitHub
Scrawl-canvas API
Loading...