SYMBOL INDEX (249 symbols across 19 files) FILE: src/ecs/ComponentId.ts function getComponentId (line 10) | function getComponentId( function getComponentClass (line 25) | function getComponentClass(component: NonNullable, re... constant COMPONENT_CLASS_ID (line 36) | let COMPONENT_CLASS_ID = '__componentClassId__'; type ComponentId (line 39) | type ComponentId = Class & { FILE: src/ecs/Engine.ts class Engine (line 11) | class Engine { method entities (line 32) | public get entities(): ReadonlyArray { method systems (line 39) | public get systems(): ReadonlyArray { method queries (line 46) | public get queries(): ReadonlyArray { method constructor (line 50) | public constructor() { method subscriptions (line 57) | public get subscriptions(): ReadonlyArray> { method sharedConfig (line 66) | public get sharedConfig(): Entity { method addEntity (line 77) | public addEntity(entity: Entity): Engine { method removeEntity (line 99) | public removeEntity(entity: Entity, safe: boolean = false): Engine { method getEntityById (line 114) | public getEntityById(id: number): Entity | undefined { method removeSystem (line 126) | public removeSystem(system: System): Engine { method update (line 140) | public update(dt: number): void { method getSystem (line 163) | public getSystem(systemClass: Class): T | undefin... method removeAllSystems (line 170) | public removeAllSystems(): void { method removeAllQueries (line 182) | public removeAllQueries(): void { method removeAllEntities (line 195) | public removeAllEntities(): void { method clear (line 204) | public clear(): void { method removeEntityNow (line 210) | private removeEntityNow(entity: Entity): Engine { method addQuery (line 228) | public addQuery(query: Query): Engine { method addSystem (line 242) | public addSystem(system: System, priority: number = 0): Engine { method removeQuery (line 265) | public removeQuery(query: Query) { method subscribe (line 281) | public subscribe(messageType: Class | T, handler: (value: T) => ... method unsubscribe (line 292) | public unsubscribe(messageType: Class | T, handler?: (value: T) ... method unsubscribeAll (line 299) | public unsubscribeAll(): void { method addSubscription (line 306) | public addSubscription(messageType: Class | T, handler: (value: ... method removeSubscription (line 318) | public removeSubscription(messageType: Class | T, handler: ((val... method dispatch (line 332) | public dispatch(message: T) { method connectEntity (line 340) | private connectEntity(entity: Entity) { method disconnectEntity (line 346) | private disconnectEntity(entity: Entity) { method connectQuery (line 352) | private connectQuery(query: Query) { method disconnectQuery (line 357) | private disconnectQuery(query: Query) { method removeAllEntitiesInternal (line 362) | private removeAllEntitiesInternal(silently: boolean): void { FILE: src/ecs/Entity.ts type ReadonlyEntity (line 11) | interface ReadonlyEntity { class Entity (line 237) | class Entity implements ReadonlyEntity { method components (line 271) | public get components(): Readonly> { method tags (line 279) | public get tags(): ReadonlySet { method add (line 318) | public add(componentOrTag: NonNullable... method append (line 359) | public append(component: NonN... method withdraw (line 388) | public withdraw(componentClass: Class): T | undefined { method pick (line 420) | public pick(componentOrResolveClass: NonNullable | Class, res... method addComponent (line 458) | public addComponent(component: NonNull... method appendComponent (line 507) | public appendComponent(compon... method addTag (line 538) | public addTag(tag: Tag): Entity { method has (line 560) | public has(componentClassOrTag: Class | Tag, id?: string): boole... method contains (line 585) | public contains(component: NonNullable, resolveClas... method hasComponent (line 607) | public hasComponent(component: Class, id?: string): boolean { method hasTag (line 624) | public hasTag(tag: Tag): boolean { method hasAny (line 641) | public hasAny(...componentClassOrTag: Array | Tag>): bo... method hasAll (line 658) | public hasAll(...componentClassOrTag: Array | Tag>): bo... method get (line 669) | public get(componentClass: Class, id?: string): T | undefined { method getComponents (line 690) | public getComponents(): unknown[] { method getTags (line 697) | public getTags(): Tag[] { method remove (line 720) | public remove(componentClassOrTag: Class | Tag): T | undefined { method removeComponent (line 743) | public removeComponent(componentClassOrTag: Class): T | undefined { method removeTag (line 771) | public removeTag(tag: Tag): void { method clear (line 781) | public clear(): void { method copyFrom (line 796) | public copyFrom(entity: Entity): this { method iterate (line 829) | public iterate(componentClass: Class, action: (component: T) => ... method getAll (line 846) | public* getAll(componentClass: Class): Generator(componentClass: Class, predicate: (component: T) => ... method lengthOf (line 881) | public lengthOf(componentClass: Class): number { method invalidate (line 894) | public invalidate(): void { method takeSnapshot (line 904) | public takeSnapshot(result: EntitySnapshot, changedComponentOrTag?:... method getLinkedComponentList (line 937) | public getLinkedComponentList(componentClassOrId: number | Class,... method withdrawComponent (line 948) | private withdrawComponent(com... method dispatchOnComponentAdded (line 966) | private dispatchOnComponentAdded(component: NonNullable): void { method dispatchOnComponentRemoved (line 972) | private dispatchOnComponentRemoved(value: NonNullable): void { class EntitySnapshot (line 989) | class EntitySnapshot { method current (line 997) | public get current(): Entity { method current (line 1004) | public set current(value: Entity) { method previous (line 1011) | public get previous(): ReadonlyEntity { type ComponentUpdateHandler (line 1021) | type ComponentUpdateHandler = (entity: Entity, component: NonNullable... FILE: src/ecs/IterativeSystem.ts method constructor (line 42) | protected constructor(query: Query | QueryBuilder | QueryPredicate) { method update (line 46) | public update(dt: number) { method onAddedToEngine (line 50) | public onAddedToEngine() { method onRemovedFromEngine (line 55) | public onRemovedFromEngine() { method updateEntities (line 60) | protected updateEntities(dt: number) { FILE: src/ecs/LinkedComponent.ts type ILinkedComponent (line 6) | interface ILinkedComponent { class LinkedComponent (line 15) | class LinkedComponent implements ILinkedComponent { method constructor (line 18) | public constructor(public id?: string) { function isLinkedComponent (line 25) | function isLinkedComponent(component: any): component is ILinkedComponent { FILE: src/ecs/LinkedComponentList.ts class LinkedComponentList (line 3) | class LinkedComponentList { method head (line 6) | public get head(): T | undefined { method isEmpty (line 10) | public get isEmpty(): boolean { method add (line 14) | public add(linkedComponent: T): void { method remove (line 31) | public remove(linkedComponent: T): boolean { method nodes (line 44) | public* nodes() { method iterate (line 52) | public iterate(action: (value: T) => void): void { method clear (line 58) | public clear(): void { method find (line 62) | private find(linkedComponent: T): [prev: T | undefined, current: T | u... FILE: src/ecs/Query.ts type QueryPredicate (line 12) | type QueryPredicate = (entity: Entity) => boolean; class Query (line 18) | class Query { method constructor (line 36) | public constructor(predicate: QueryPredicate) { method entities (line 43) | public get entities(): ReadonlyArray { method first (line 51) | public get first(): Entity | undefined { method last (line 60) | public get last(): Entity | undefined { method length (line 69) | public get length(): number { method countBy (line 78) | public countBy(predicate: QueryPredicate): number { method find (line 92) | public find(predicate: QueryPredicate): Entity | undefined { method filter (line 102) | public filter(predicate: QueryPredicate): Entity[] { method has (line 111) | public has(entity: Entity): boolean { method matchEntities (line 121) | public matchEntities(entities: ReadonlyArray) { method isEmpty (line 128) | public get isEmpty(): boolean { method clear (line 135) | public clear(): void { method validateEntity (line 142) | public validateEntity(entity: Entity): void { function hasAll (line 229) | function hasAll(entity: Entity, components: Set, tags: Set)... class QueryBuilder (line 256) | class QueryBuilder { method contains (line 264) | public contains(...componentsOrTags: Array): QueryBuilder { method build (line 283) | public build(): Query { method getComponents (line 290) | public getComponents(): ReadonlySet { method getTags (line 297) | public getTags(): ReadonlySet { function isQueryPredicate (line 305) | function isQueryPredicate(item: unknown): item is QueryPredicate { function isQueryBuilder (line 312) | function isQueryBuilder(item: unknown): item is QueryBuilder { FILE: src/ecs/ReactionSystem.ts method constructor (line 34) | protected constructor(query: Query | QueryBuilder | QueryPredicate) { method entities (line 45) | protected get entities(): ReadonlyArray { method onAddedToEngine (line 49) | public onAddedToEngine() { method onRemovedFromEngine (line 56) | public onRemovedFromEngine() { method prepare (line 63) | protected prepare() {} FILE: src/ecs/Subscription.ts class Subscription (line 6) | class Subscription { method constructor (line 7) | public constructor( method equals (line 12) | public equals(messageType: Class | T, handler?: (message: T) => voi... FILE: src/ecs/System.ts method engine (line 18) | public get engine(): Engine { method isRemovalRequested (line 28) | public get isRemovalRequested(): boolean { method sharedConfig (line 36) | protected get sharedConfig(): Entity { method priority (line 44) | public get priority(): number { method update (line 52) | public update(dt: number) {} method onAddedToEngine (line 57) | public onAddedToEngine() {} method onRemovedFromEngine (line 62) | public onRemovedFromEngine() {} method dispatch (line 100) | public dispatch(message: T): void { method setEngine (line 110) | public setEngine(engine: Engine | undefined): void { method setPriority (line 117) | public setPriority(priority: number): void { method requestRemoval (line 121) | protected requestRemoval(): void { FILE: src/ecs/Tag.ts type Tag (line 5) | type Tag = number | string; function isTag (line 12) | function isTag(item: unknown): item is Tag { FILE: src/utils/Class.ts type Class (line 1) | type Class = { FILE: src/utils/Signal.ts class Signal (line 4) | class Signal any> { method hasHandlers (line 11) | public get hasHandlers(): boolean { method handlersAmount (line 19) | public get handlersAmount(): number { method connect (line 28) | public connect(handler: Handler, priority: number = 0): void { method disconnect (line 48) | public disconnect(handler: Handler): void { method disconnectAll (line 59) | public disconnectAll(): void { method emit (line 67) | public emit(...args: Parameters): void { class SignalHandler (line 74) | class SignalHandler any> { method constructor (line 75) | public constructor(public readonly handler: Handler, public priority: ... method equals (line 77) | public equals(handler: Handler): boolean { method handle (line 81) | public handle(...args: any[]) { FILE: tests/unit/engine.spec.ts class Component (line 3) | class Component {} class Message (line 5) | class Message {} method constructor (line 12) | protected constructor( method update (line 20) | public update(dt: number) { method updateEntity (line 27) | protected updateEntity(entity: Entity, dt: number): void { class TestSystem1 (line 31) | class TestSystem1 extends TestSystem { method constructor (line 32) | public constructor(arr?: number[]) { class TestSystem2 (line 37) | class TestSystem2 extends TestSystem { method constructor (line 38) | public constructor(arr?: number[]) { class TestSystem3 (line 43) | class TestSystem3 extends TestSystem { method constructor (line 44) | public constructor(arr?: number[]) { class TestSystem (line 142) | class TestSystem extends IterativeSystem { method constructor (line 143) | public constructor() { method updateEntity (line 147) | protected updateEntity(entity: Entity, dt: number): void { class GameOverSystem (line 226) | class GameOverSystem extends ReactionSystem { method constructor (line 229) | public constructor() { method update (line 233) | public update(dt: number) { method prepare (line 242) | protected prepare() { method constructor (line 270) | public constructor() { method update (line 274) | public update(dt: number) { method prepare (line 283) | protected prepare() { class GameOver (line 263) | class GameOver {} class OtherMessage (line 265) | class OtherMessage {} class GameOverSystem (line 267) | class GameOverSystem extends ReactionSystem { method constructor (line 229) | public constructor() { method update (line 233) | public update(dt: number) { method prepare (line 242) | protected prepare() { method constructor (line 270) | public constructor() { method update (line 274) | public update(dt: number) { method prepare (line 283) | protected prepare() { FILE: tests/unit/entity.spec.ts class Position (line 3) | class Position { method constructor (line 7) | constructor(x: number = 0, y: number = 0) { class Damage (line 13) | class Damage extends LinkedComponent { method constructor (line 14) | public constructor( class AnotherDamage (line 22) | class AnotherDamage extends LinkedComponent { method constructor (line 23) | public constructor() { class DamageChild (line 28) | class DamageChild extends Damage { method constructor (line 29) | public constructor() { class Test1 (line 43) | class Test1 { class Test2 (line 46) | class Test2 { class Test1 (line 57) | class Test1 { class Test2 (line 60) | class Test2 { class Ancestor (line 146) | class Ancestor {} class Descendant (line 148) | class Descendant extends Ancestor {} class Descendant2 (line 150) | class Descendant2 extends Ancestor {} class Ancestor (line 170) | class Ancestor {} class Descendant (line 172) | class Descendant extends Ancestor {} class Other (line 174) | class Other {} class Ancestor (line 188) | class Ancestor {} class Descendant (line 190) | class Descendant extends Ancestor {} class Other (line 204) | class Other {} class Other (line 212) | class Other {} class A (line 214) | class A {} class Other (line 233) | class Other {} class Component (line 609) | class Component {} class Component (line 617) | class Component {} class NotAComponent (line 619) | class NotAComponent {} class ComponentA (line 631) | class ComponentA {} class ComponentB (line 633) | class ComponentB {} class ComponentA (line 658) | class ComponentA {} FILE: tests/unit/linked.list.spec.ts class Component (line 4) | class Component extends LinkedComponent {} FILE: tests/unit/query.spec.ts class Position (line 3) | class Position { method constructor (line 7) | constructor(x: number = 0, y: number = 0) { class View (line 13) | class View {} class Move (line 15) | class Move {} class Stay (line 17) | class Stay {} class Damage (line 19) | class Damage extends LinkedComponent {} function getQuery (line 104) | function getQuery() { class LogComponent (line 449) | class LogComponent extends LinkedComponent { method constructor (line 450) | public constructor(public readonly log: string) { FILE: tests/unit/shared.config.spec.ts method onAddedToEngine (line 9) | public onAddedToEngine() { method constructor (line 23) | public constructor() { class Component (line 33) | class Component {} method onAddedToEngine (line 41) | public onAddedToEngine() { FILE: tests/unit/system.spec.ts class Position (line 3) | class Position { method constructor (line 7) | public constructor(x: number = 0, y: number = 0) { class MovementSystem (line 13) | class MovementSystem extends IterativeSystem { method constructor (line 14) | public constructor() { method updateEntity (line 18) | protected updateEntity(entity: Entity, dt: number): void { method constructor (line 79) | public constructor() { method updateEntity (line 83) | protected updateEntity(entity: Entity, dt: number): void { class TestSystem (line 49) | class TestSystem extends IterativeSystem { method constructor (line 50) | public constructor() { method prepare (line 54) | protected prepare() { method updateEntity (line 58) | protected updateEntity(entity: Entity, dt: number): void { method update (line 166) | public update(dt: number) { method update (line 180) | public update(dt: number) { method constructor (line 196) | public constructor() { method updateEntity (line 200) | protected updateEntity(entity: Entity, dt: number) { class MovementSystem (line 78) | class MovementSystem extends IterativeSystem { method constructor (line 14) | public constructor() { method updateEntity (line 18) | protected updateEntity(entity: Entity, dt: number): void { method constructor (line 79) | public constructor() { method updateEntity (line 83) | protected updateEntity(entity: Entity, dt: number): void { class Health (line 111) | class Health { method constructor (line 112) | public constructor(public value: number) { class HealthTickSystem (line 116) | class HealthTickSystem extends IterativeSystem { method constructor (line 117) | public constructor() { method updateEntity (line 121) | protected updateEntity(entity: Entity, dt: number): void { class Message (line 162) | class Message { class TestSystem (line 165) | class TestSystem extends System { method constructor (line 50) | public constructor() { method prepare (line 54) | protected prepare() { method updateEntity (line 58) | protected updateEntity(entity: Entity, dt: number): void { method update (line 166) | public update(dt: number) { method update (line 180) | public update(dt: number) { method constructor (line 196) | public constructor() { method updateEntity (line 200) | protected updateEntity(entity: Entity, dt: number) { class Message (line 176) | class Message { class TestSystem (line 179) | class TestSystem extends System { method constructor (line 50) | public constructor() { method prepare (line 54) | protected prepare() { method updateEntity (line 58) | protected updateEntity(entity: Entity, dt: number): void { method update (line 166) | public update(dt: number) { method update (line 180) | public update(dt: number) { method constructor (line 196) | public constructor() { method updateEntity (line 200) | protected updateEntity(entity: Entity, dt: number) { class Component (line 190) | class Component { class TestSystem (line 195) | class TestSystem extends IterativeSystem { method constructor (line 50) | public constructor() { method prepare (line 54) | protected prepare() { method updateEntity (line 58) | protected updateEntity(entity: Entity, dt: number): void { method update (line 166) | public update(dt: number) { method update (line 180) | public update(dt: number) { method constructor (line 196) | public constructor() { method updateEntity (line 200) | protected updateEntity(entity: Entity, dt: number) { class Component (line 220) | class Component { method constructor (line 227) | public constructor() { method updateEntity (line 231) | protected updateEntity(entity: Entity, dt: number) { method update (line 253) | public update(dt: number) {