MCPcopy Index your code
hub / github.com/spritejs/spritejs / constructor

Method constructor

src/node/cloud.js:10–16  ·  view source on GitHub ↗
(node, amount = 1)

Source from the content-addressed store, hash-verified

8
9export default class Cloud extends Node {
10 constructor(node, amount = 1) {
11 super();
12 this.meshNode = node;
13 node.connect(this);
14 this[_amount] = amount;
15 this[_meshCloud] = null;
16 }
17
18 get meshCloud() {
19 const meshNode = this.meshNode;

Callers

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected