From 950272a462a1e5eec4f850cc62162484fae71066 Mon Sep 17 00:00:00 2001 From: Robbert Stevens Date: Sat, 13 Jul 2024 13:00:41 +0200 Subject: [PATCH] docs: Update JSDoc for System class (#3125) Closes: #3123 --- src/engine/EntityComponentSystem/System.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/engine/EntityComponentSystem/System.ts b/src/engine/EntityComponentSystem/System.ts index 69c4124ba..ad0cebf9f 100644 --- a/src/engine/EntityComponentSystem/System.ts +++ b/src/engine/EntityComponentSystem/System.ts @@ -22,10 +22,10 @@ export enum SystemType { * For example: * * ```typescript - * class MySystem extends System { + * class MySystem extends System { * public readonly types = ['a', 'b'] as const; * public readonly systemType = SystemType.Update; - * public update(entities: Entity) { + * public update(elapsedMs) { * ... * } * } @@ -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;