From 8b0f6f34a97c3b0e9b32c2147e98509f5f8a9482 Mon Sep 17 00:00:00 2001 From: ZGrandison <73369239+ZGrandison@users.noreply.github.com> Date: Wed, 9 Feb 2022 21:11:06 -0500 Subject: [PATCH] Updates for DocGenerator --- src/Wolfie2D/AI/ControllerAI.ts | 3 ++- src/Wolfie2D/DataTypes/State/StateMachine.ts | 2 +- src/Wolfie2D/Physics/PhysicsManager.ts | 2 +- src/Wolfie2D/Registry/Registries/Registry.ts | 1 + .../Rendering/WebGLRendering/ShaderTypes/LabelShaderType.ts | 1 + .../Rendering/WebGLRendering/ShaderTypes/RectShaderType.ts | 1 + src/Wolfie2D/Timing/Timer.ts | 1 + src/Wolfie2D/Utils/MemoryUtils.ts | 1 + 8 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Wolfie2D/AI/ControllerAI.ts b/src/Wolfie2D/AI/ControllerAI.ts index 005e375..dfc9904 100644 --- a/src/Wolfie2D/AI/ControllerAI.ts +++ b/src/Wolfie2D/AI/ControllerAI.ts @@ -2,9 +2,10 @@ import AI from "../DataTypes/Interfaces/AI"; import GameEvent from "../Events/GameEvent"; import GameNode from "../Nodes/GameNode"; +/** */ export default abstract class ControllerAI implements AI { /** The owner of this controller */ - owner: GameNode; + protected owner: GameNode; /** Removes the instance of the owner of this AI */ destroy(): void { diff --git a/src/Wolfie2D/DataTypes/State/StateMachine.ts b/src/Wolfie2D/DataTypes/State/StateMachine.ts index a6382e7..1537490 100644 --- a/src/Wolfie2D/DataTypes/State/StateMachine.ts +++ b/src/Wolfie2D/DataTypes/State/StateMachine.ts @@ -67,7 +67,7 @@ export default class StateMachine implements Updateable { * Initializes this state machine with an initial state and sets it running * @param initialState The name of initial state of the state machine */ - initialize(initialState: string, options: Record = {}): void { + initialize(initialState: string, options: Record): void { this.stack.push(this.stateMap.get(initialState)); this.currentState = this.stack.peek(); this.currentState.onEnter(options); diff --git a/src/Wolfie2D/Physics/PhysicsManager.ts b/src/Wolfie2D/Physics/PhysicsManager.ts index b35bccd..08a1239 100644 --- a/src/Wolfie2D/Physics/PhysicsManager.ts +++ b/src/Wolfie2D/Physics/PhysicsManager.ts @@ -22,7 +22,7 @@ export default abstract class PhysicsManager implements Updateable { protected groupNames: Array; /** The default group name */ - protected static readonly DEFAULT_GROUP = "Default"; + protected static readonly DEFAULT_GROUP: string = "Default"; constructor(){ this.receiver = new Receiver(); diff --git a/src/Wolfie2D/Registry/Registries/Registry.ts b/src/Wolfie2D/Registry/Registries/Registry.ts index f67d135..4749914 100644 --- a/src/Wolfie2D/Registry/Registries/Registry.ts +++ b/src/Wolfie2D/Registry/Registries/Registry.ts @@ -1,5 +1,6 @@ import Map from "../../DataTypes/Map"; +/** */ export default abstract class Registry extends Map{ /** Preloads registry data */ diff --git a/src/Wolfie2D/Rendering/WebGLRendering/ShaderTypes/LabelShaderType.ts b/src/Wolfie2D/Rendering/WebGLRendering/ShaderTypes/LabelShaderType.ts index 7582ec0..38c9d06 100644 --- a/src/Wolfie2D/Rendering/WebGLRendering/ShaderTypes/LabelShaderType.ts +++ b/src/Wolfie2D/Rendering/WebGLRendering/ShaderTypes/LabelShaderType.ts @@ -6,6 +6,7 @@ import Label from "../../../Nodes/UIElements/Label"; import ResourceManager from "../../../ResourceManager/ResourceManager"; import QuadShaderType from "./QuadShaderType"; +/** */ export default class LabelShaderType extends QuadShaderType { constructor(programKey: string){ diff --git a/src/Wolfie2D/Rendering/WebGLRendering/ShaderTypes/RectShaderType.ts b/src/Wolfie2D/Rendering/WebGLRendering/ShaderTypes/RectShaderType.ts index e977434..63a625e 100644 --- a/src/Wolfie2D/Rendering/WebGLRendering/ShaderTypes/RectShaderType.ts +++ b/src/Wolfie2D/Rendering/WebGLRendering/ShaderTypes/RectShaderType.ts @@ -4,6 +4,7 @@ import Rect from "../../../Nodes/Graphics/Rect"; import ResourceManager from "../../../ResourceManager/ResourceManager"; import QuadShaderType from "./QuadShaderType"; +/** */ export default class RectShaderType extends QuadShaderType { constructor(programKey: string){ diff --git a/src/Wolfie2D/Timing/Timer.ts b/src/Wolfie2D/Timing/Timer.ts index d22d235..ade0796 100644 --- a/src/Wolfie2D/Timing/Timer.ts +++ b/src/Wolfie2D/Timing/Timer.ts @@ -2,6 +2,7 @@ import Updateable from "../DataTypes/Interfaces/Updateable"; import MathUtils from "../Utils/MathUtils"; import TimerManager from "./TimerManager"; +/** */ export default class Timer implements Updateable { /** The current state of this timer */ diff --git a/src/Wolfie2D/Utils/MemoryUtils.ts b/src/Wolfie2D/Utils/MemoryUtils.ts index be5e011..287b7ca 100644 --- a/src/Wolfie2D/Utils/MemoryUtils.ts +++ b/src/Wolfie2D/Utils/MemoryUtils.ts @@ -1,5 +1,6 @@ import Stack from "../DataTypes/Stack"; +/** */ export default class MemoryUtils { /** * Returns an approximate size in bytes of any object