This commit is contained in:
schmelczerandras 2019-09-06 08:10:56 +02:00
commit 952a3cd34c

17
src/app/store/unique.ts Normal file
View file

@ -0,0 +1,17 @@
import { Initiable } from './initiable';
export abstract class Unique extends Initiable {
protected static nextId = 0;
static get ObjectCount(): number {
return Unique.nextId;
}
get id(): number {
return this._id;
}
private _id: number;
protected initiate() {
this._id = Unique.nextId++;
}
}