Updates for DocGenerator

This commit is contained in:
ZGrandison 2022-02-09 21:11:06 -05:00
parent 22d0c5df55
commit 8b0f6f34a9
8 changed files with 9 additions and 3 deletions

View File

@ -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 {

View File

@ -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<string, any> = {}): void {
initialize(initialState: string, options: Record<string, any>): void {
this.stack.push(this.stateMap.get(initialState));
this.currentState = this.stack.peek();
this.currentState.onEnter(options);

View File

@ -22,7 +22,7 @@ export default abstract class PhysicsManager implements Updateable {
protected groupNames: Array<string>;
/** The default group name */
protected static readonly DEFAULT_GROUP = "Default";
protected static readonly DEFAULT_GROUP: string = "Default";
constructor(){
this.receiver = new Receiver();

View File

@ -1,5 +1,6 @@
import Map from "../../DataTypes/Map";
/** */
export default abstract class Registry<T> extends Map<T>{
/** Preloads registry data */

View File

@ -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){

View File

@ -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){

View File

@ -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 */

View File

@ -1,5 +1,6 @@
import Stack from "../DataTypes/Stack";
/** */
export default class MemoryUtils {
/**
* Returns an approximate size in bytes of any object