diff --git a/lib/index.d.ts b/lib/index.d.ts index e96da39..013efd2 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -1,45 +1,7 @@ -type Archetype = { - id: number; - edges: { - [key: number]: { - add: Archetype; - remove: Archetype; - }; - }; - types: Array; - type: string | number; - entities: Array; - columns: Array>; - records: { [key: number]: number }; -}; - -type ArchetypeMap = { - cache: Array; - first: ArchetypeMap; - second: ArchetypeMap; - parent: ArchetypeMap; - size: number; -}; - type Query = { without: (...components: Entity[]) => Query; } & IterableFunction>; -// Exported due to functions below requiring this type. -export type EntityIndex = { - dense: { - [key: number]: number; - }; - sparse: { - [key: number]: { - archetype: Archetype; - row: number; - dense: number; - componentRecord: ArchetypeMap; - }; - }; -}; - // Utility Types export type Entity = number & { __nominal_type_dont_use: T }; export type EntityType = T extends Entity ? A : never; @@ -176,20 +138,4 @@ export const OnRemove: Entity; export const OnSet: Entity; export const Wildcard: Entity; export const w: Entity; -export const REST: Entity; - -export const IS_PAIR: (e: Entity) => boolean; -export const ECS_ID: (e: Entity) => Entity; -export const ECS_PAIR: (pred: Entity, obj: Entity) => Entity; -export const ECS_GENERATION_INC: (e: Entity) => Entity; -export const ECS_GENERATION: (e: Entity) => Entity; -export const ECS_PAIR_RELATION: ( - entityIndex: EntityIndex, - e: Entity -) => Entity; -export const ECS_PAIR_OBJECT: ( - entityIndex: EntityIndex, - e: Entity -) => Entity; - -export const getAlive: (entityIndex: EntityIndex, id: Entity) => Entity; +export const REST: Entity; \ No newline at end of file