Loom Engine - v3.1.1
GitHub
TheWorldTable.ai
Preparing search index...
World
Class World
Index
Constructors
constructor
Properties
entities
resources
Methods
register
Pool
get
Pool
require
Pool
add
System
update
count
Entities
count
Systems
count
Systems
In
Phase
create
Entity
destroy
Entity
destroy
Entity
By
Live
Index
entity
At
snapshot
State
dispose
Constructors
constructor
new
World
()
:
World
Returns
World
Properties
Readonly
entities
entities
:
EntityAllocator
Readonly
resources
resources
:
ResourceRegistry
Methods
register
Pool
registerPool
<
T
>
(
key
:
string
,
pool
:
T
)
:
void
Type Parameters
T
Parameters
key
:
string
pool
:
T
Returns
void
get
Pool
getPool
<
T
>
(
key
:
string
)
:
T
|
undefined
Type Parameters
T
Parameters
key
:
string
Returns
T
|
undefined
require
Pool
requirePool
<
T
>
(
key
:
string
)
:
T
Type Parameters
T
Parameters
key
:
string
Returns
T
add
System
addSystem
(
system
:
System
,
phase
?:
SystemPhase
)
:
void
Parameters
system
:
System
phase
:
SystemPhase
= SYSTEM_PHASE_LOGIC
Returns
void
update
update
(
dt
:
number
)
:
void
Parameters
dt
:
number
Returns
void
count
Entities
countEntities
()
:
number
Returns
number
count
Systems
countSystems
()
:
number
Returns
number
count
Systems
In
Phase
countSystemsInPhase
(
phase
:
SystemPhase
)
:
number
Parameters
phase
:
SystemPhase
Returns
number
create
Entity
createEntity
()
:
number
Returns
number
destroy
Entity
destroyEntity
(
e
:
number
)
:
boolean
Parameters
e
:
number
Returns
boolean
destroy
Entity
By
Live
Index
destroyEntityByLiveIndex
(
index
:
number
)
:
boolean
Parameters
index
:
number
Returns
boolean
entity
At
entityAt
(
index
:
number
)
:
number
Parameters
index
:
number
Returns
number
snapshot
State
snapshotState
()
:
StateSnapshot
Returns
StateSnapshot
dispose
dispose
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
entities
resources
Methods
register
Pool
get
Pool
require
Pool
add
System
update
count
Entities
count
Systems
count
Systems
In
Phase
create
Entity
destroy
Entity
destroy
Entity
By
Live
Index
entity
At
snapshot
State
dispose
GitHub
TheWorldTable.ai
Loom Engine - v3.1.1
Loading...