10 lines
277 B
TypeScript
10 lines
277 B
TypeScript
|
export default function (): void {
|
||
|
if (this.isActive.value && !this.shouldStop.value) {
|
||
|
console.warn('attempt to start already running engine!')
|
||
|
return
|
||
|
}
|
||
|
this.isActive.value = true
|
||
|
this.shouldStop.value = false
|
||
|
console.log('start engine')
|
||
|
}
|