MCPcopy Create free account
hub / github.com/codecombat/codecombat / constructor

Method constructor

ozaria/engine/cinematic/Loader.js:24–30  ·  view source on GitHub ↗
({ data })

Source from the content-addressed store, hash-verified

22
23export default class Loader {
24 constructor ({ data }) {
25 this.data = data
26 // Stores thangType with slug or original as the key.
27 this.loadedThangTypes = new Map()
28 // Stores the thangType loading promise with slug or original as key.
29 this.loadingThangTypes = new Map()
30 }
31
32 /**
33 * Fetches initial Cinematic data and loads the ThangTypes.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected