Files
dynamicTexture/src/script/hotspot/Point_Pool.ts
2025-11-03 11:12:18 +08:00

21 lines
367 B
TypeScript

import { Point } from './Point'
export class Point_Pool {
points
constructor() {
this.points = new Array()
}
Add_point(point_Class: Point) {
this.points.push(point_Class)
}
Enable_All(visible: boolean) {
for (let i = 0, item; (item = this.points[i++]); ) {
if (item.plane) {
item.plane.isVisible = visible
}
}
}
}