Skip to content

Commit

Permalink
clean some imports and exports
Browse files Browse the repository at this point in the history
  • Loading branch information
minecrawler committed Jun 12, 2022
1 parent af4e9bb commit 8a35a9f
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 27 deletions.
9 changes: 8 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
export * from './ecs/ecs-entity';
export * from './ecs/ecs-sync-point';
export * from './ecs/ecs-world';
export * from './entity';
export * from './entity-builder';
export * from './query';
export * from './scheduler';

// Scheduler exports
export * from './scheduler/scheduler';
export * from './scheduler/pipeline/pipeline';
export * from './scheduler/pipeline/stage';
export * from './scheduler/pipeline/sync-point';

export * from './serde';
export * from './state';
export * from './system';
Expand Down
4 changes: 0 additions & 4 deletions src/scheduler/index.ts

This file was deleted.

12 changes: 6 additions & 6 deletions src/world-builder/world-builder.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import IWorld from "../world.spec";
import {TObjectProto} from "../_.spec";
import {ISerDeOperations} from "../serde";
import {ISyncPoint} from "../scheduler/pipeline/sync-point.spec";
import {IScheduler} from "../scheduler";
import {IIStateProto} from "../state.spec";
import type IWorld from "../world.spec";
import type {TObjectProto} from "../_.spec";
import type {ISerDeOperations} from "../serde";
import type {ISyncPoint} from "../scheduler/pipeline/sync-point.spec";
import type {IScheduler} from "../scheduler/scheduler.spec";
import type {IIStateProto} from "../state.spec";

export interface IComponentRegistrationOptions {
serDe: ISerDeOperations
Expand Down
13 changes: 7 additions & 6 deletions src/world-builder/world-builder.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import {
import type {
IComponentRegistrationOptions,
IWorldBuilder,
} from "./world-builder.spec";
import {World} from "../world";
import {TObjectProto} from "../_.spec";
import {ISerDe} from "../serde";
import type {TObjectProto} from "../_.spec";
import type {ISerDe} from "../serde";
import {dataStructDeserializer, dataStructSerializer} from "./world-builder.util";
import {IScheduler, Scheduler} from "../scheduler";
import {ISyncPoint} from "../scheduler/pipeline/sync-point.spec";
import {IIStateProto} from "../state.spec";
import {type IScheduler, Scheduler} from "../scheduler/scheduler";
import type {ISyncPoint} from "../scheduler/pipeline/sync-point.spec";
import type {IIStateProto} from "../state.spec";
import {addSyncPoint} from "../ecs/ecs-sync-point";


export * from './world-builder.spec';
Expand Down
18 changes: 9 additions & 9 deletions src/world.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {IEntity} from "./entity.spec";
import {ISystem} from "./system";
import {IIStateProto, IState} from "./state.spec";
import {TTypeProto} from "./_.spec";
import {IAccessDescriptor, IEntitiesQuery} from "./query";
import {ISerDe, ISerialFormat, TSerDeOptions, TSerializer} from "./serde";
import {ICommands} from "./commands";
import IEntityBuilder from "./entity-builder.spec";
import {IScheduler} from "./scheduler";
import type {IEntity} from "./entity.spec";
import type {ISystem} from "./system";
import type {IIStateProto, IState} from "./state.spec";
import type {TTypeProto} from "./_.spec";
import type {IAccessDescriptor, IEntitiesQuery} from "./query";
import type {ISerDe, ISerialFormat, TSerDeOptions, TSerializer} from "./serde";
import type {ICommands} from "./commands";
import type IEntityBuilder from "./entity-builder.spec";
import type {IScheduler} from "./scheduler/scheduler.spec";

export type TExecutionFunction = ((callback: Function) => any) | typeof setTimeout | typeof requestAnimationFrame;
export type TGroupHandle = number;
Expand Down
2 changes: 1 addition & 1 deletion src/world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type {
IQuery,
IEntitiesQuery,
} from "./query";
import type {IScheduler} from "./scheduler";
import type {IScheduler} from "./scheduler/scheduler.spec";
import type {IPipeline} from "./scheduler/pipeline/pipeline.spec";
import type {ISystem} from "./system";
import {getQueriesFromSystem, getSystemRunParameters} from "./system";
Expand Down

0 comments on commit 8a35a9f

Please sign in to comment.