import { Bitset } from "./Bitset.js";
import {} from "./Entity.js";
export class Archetype {
    signature;
    members = new Map();
    constructor(signature) {
        this.signature = signature.clone();
    }
    add(entity) {
        this.members.set(entity.id, entity);
    }
    delete(entity) {
        return this.members.delete(entity.id);
    }
    entities() {
        return [...this.members.values()].sort((a, b) => a.id - b.id);
    }
}
//# sourceMappingURL=Archetype.js.map