MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / setSize

Method setSize

code/main/RenderArea.ts:587–596  ·  view source on GitHub ↗
(width: number, height: number)

Source from the content-addressed store, hash-verified

585
586 // Private methods
587 private setSize(width: number, height: number) : boolean{
588 // Return false if the size given is incorrect
589 if(width < 0 || height < 0)
590 return false;
591
592 this.width = width;
593 this.height = height;
594
595 return true;
596 }
597}

Callers 1

resizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected