Class World
A collection of Entities, their Component
s, and Resource
s. System
s operate on those
components and mutate the World.
class World
;
Properties
Name | Type | Description |
---|---|---|
resources [get]
|
Resources | A collection of resource instances identified by their type. |
Methods
Name | Description |
---|---|
get
(id)
|
Get an Entity given its unique ID. |
spawn
(components)
|
Spawn a new entity given a set of Component instances.
|