Skip to content

Commit

Permalink
docs: Update JSDoc for System class (#3125)
Browse files Browse the repository at this point in the history
Closes: #3123
  • Loading branch information
robbertstevens authored Jul 13, 2024
1 parent b60baf0 commit 950272a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/engine/EntityComponentSystem/System.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export enum SystemType {
* For example:
*
* ```typescript
* class MySystem extends System<ComponentA | ComponentB> {
* class MySystem extends System {
* public readonly types = ['a', 'b'] as const;
* public readonly systemType = SystemType.Update;
* public update(entities: Entity<ComponentA | ComponentB>) {
* public update(elapsedMs) {
* ...
* }
* }
Expand All @@ -52,7 +52,6 @@ export abstract class System {

/**
* Update all entities that match this system's types
* @param entities Entities to update that match this system's types
* @param elapsedMs Time in milliseconds
*/
abstract update(elapsedMs: number): void;
Expand Down

0 comments on commit 950272a

Please sign in to comment.