init
This commit is contained in:
20
src/script/hotspot/Point_Pool.ts
Normal file
20
src/script/hotspot/Point_Pool.ts
Normal file
@ -0,0 +1,20 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user