fix(core): update

This commit is contained in:
2024-02-25 13:01:06 +01:00
parent 052322fb98
commit b2ca6e13e7
14 changed files with 28 additions and 28 deletions

23
ts/classes.looptracker.ts Normal file
View File

@@ -0,0 +1,23 @@
import * as plugins from './classes.plugins.js';
import { ObjectMap } from './classes.objectmap.js';
export class LoopTracker<T> {
referenceObjectMap = new ObjectMap<any>();
constructor() {
// nothing here
}
/**
* checks and tracks an object
* @param objectArg
*/
checkAndTrack(objectArg: T): boolean {
if (!this.referenceObjectMap.checkForObject(objectArg)) {
this.referenceObjectMap.add(objectArg);
return true;
} else {
return false;
}
}
}