• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

excaliburjs / Excalibur / 14804036802

02 May 2025 09:58PM UTC coverage: 5.927% (-83.4%) from 89.28%
14804036802

Pull #3404

github

web-flow
Merge 5c103d7f8 into 0f2ccaeb2
Pull Request #3404: feat: added Graph module to Math

234 of 8383 branches covered (2.79%)

229 of 246 new or added lines in 1 file covered. (93.09%)

13145 existing lines in 208 files now uncovered.

934 of 15759 relevant lines covered (5.93%)

4.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

6.67
/src/engine/Actions/ActionsSystem.ts
1
import { Query, SystemPriority, World } from '../EntityComponentSystem';
2
import { System, SystemType } from '../EntityComponentSystem/System';
3
import { ActionsComponent } from './ActionsComponent';
4

5
export class ActionsSystem extends System {
6
  static priority = SystemPriority.Higher;
1✔
7

UNCOV
8
  systemType = SystemType.Update;
×
UNCOV
9
  private _actions: ActionsComponent[] = [];
×
10
  query: Query<typeof ActionsComponent>;
11

UNCOV
12
  constructor(public world: World) {
×
UNCOV
13
    super();
×
UNCOV
14
    this.query = this.world.query([ActionsComponent]);
×
15

UNCOV
16
    this.query.entityAdded$.subscribe((e) => this._actions.push(e.get(ActionsComponent)));
×
UNCOV
17
    this.query.entityRemoved$.subscribe((e) => {
×
UNCOV
18
      const action = e.get(ActionsComponent);
×
UNCOV
19
      const index = this._actions.indexOf(action);
×
UNCOV
20
      if (index > -1) {
×
UNCOV
21
        this._actions.splice(index, 1);
×
22
      }
23
    });
24
  }
25
  update(elapsed: number): void {
UNCOV
26
    for (let i = 0; i < this._actions.length; i++) {
×
UNCOV
27
      const action = this._actions[i];
×
UNCOV
28
      action.update(elapsed);
×
29
    }
30
  }
31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc