Interface WorldStartContext
Methods
requestResource
- requestResource(resUrls: string[]): Promise<any[]>
-
Returns Promise<any[]>
spawn
- spawn(def: string, props?: PropType, name?: string): void
-
Parameters
-
def: string
-
Optional
props: PropType
-
Optional
name: string
Returns void
Here you can load additional resources you need in the world.
This is the perfect place to load custom map files.
Note: Use the loader-prefix here:
Note: If loading fails it WON'T THROW throw here but give
null
instead.