MCPcopy Index your code
hub / github.com/JKPotato-Computer/SignMaker / newShield

Method newShield

js/Sign.js:125–132  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

123 }
124
125 newShield(number) {
126 const newShield = new Shield();
127 if (number != -1) {
128 this.subPanels[number].shields.push(newShield);
129 } else {
130 this.shields.push(newShield);
131 }
132 }
133
134 duplicateShield(shieldIndex,number) {
135 const existingShield = this.subPanels[number].shields[shieldIndex];

Callers 3

newShieldFunction · 0.80
importDataFunction · 0.80
newShieldFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected