File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -455,6 +455,11 @@ export default class RoadKit {
455455 window . removeEventListener ( 'keydown' , this . _handleKeydownBound ) ;
456456 }
457457
458+ /**
459+ * Add a colour overlay to a given tile
460+ * @param {THREE.Group } tile The tile to overlay
461+ * @protected
462+ */
458463 _addColourOverlay ( tile ) {
459464 tile . children . forEach ( ( child ) => {
460465 // Store the original material to restore later
@@ -468,6 +473,11 @@ export default class RoadKit {
468473 this . hoveredTile = tile ;
469474 }
470475
476+ /**
477+ * Remove a colour overlay from a given tile
478+ * @param {THREE.Group } tile The tile to overlay
479+ * @protected
480+ */
471481 _removeColourOverlay ( tile ) {
472482 tile . children . forEach ( ( child , i ) => {
473483 // For each child, remove its new material and restore the original
You can’t perform that action at this time.
0 commit comments