Updates for DocGenerator
This commit is contained in:
parent
22d0c5df55
commit
8b0f6f34a9
|
@ -2,9 +2,10 @@ import AI from "../DataTypes/Interfaces/AI";
|
||||||
import GameEvent from "../Events/GameEvent";
|
import GameEvent from "../Events/GameEvent";
|
||||||
import GameNode from "../Nodes/GameNode";
|
import GameNode from "../Nodes/GameNode";
|
||||||
|
|
||||||
|
/** */
|
||||||
export default abstract class ControllerAI implements AI {
|
export default abstract class ControllerAI implements AI {
|
||||||
/** The owner of this controller */
|
/** The owner of this controller */
|
||||||
owner: GameNode;
|
protected owner: GameNode;
|
||||||
|
|
||||||
/** Removes the instance of the owner of this AI */
|
/** Removes the instance of the owner of this AI */
|
||||||
destroy(): void {
|
destroy(): void {
|
||||||
|
|
|
@ -67,7 +67,7 @@ export default class StateMachine implements Updateable {
|
||||||
* Initializes this state machine with an initial state and sets it running
|
* Initializes this state machine with an initial state and sets it running
|
||||||
* @param initialState The name of initial state of the state machine
|
* @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.stack.push(this.stateMap.get(initialState));
|
||||||
this.currentState = this.stack.peek();
|
this.currentState = this.stack.peek();
|
||||||
this.currentState.onEnter(options);
|
this.currentState.onEnter(options);
|
||||||
|
|
|
@ -22,7 +22,7 @@ export default abstract class PhysicsManager implements Updateable {
|
||||||
protected groupNames: Array<string>;
|
protected groupNames: Array<string>;
|
||||||
|
|
||||||
/** The default group name */
|
/** The default group name */
|
||||||
protected static readonly DEFAULT_GROUP = "Default";
|
protected static readonly DEFAULT_GROUP: string = "Default";
|
||||||
|
|
||||||
constructor(){
|
constructor(){
|
||||||
this.receiver = new Receiver();
|
this.receiver = new Receiver();
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import Map from "../../DataTypes/Map";
|
import Map from "../../DataTypes/Map";
|
||||||
|
|
||||||
|
/** */
|
||||||
export default abstract class Registry<T> extends Map<T>{
|
export default abstract class Registry<T> extends Map<T>{
|
||||||
|
|
||||||
/** Preloads registry data */
|
/** Preloads registry data */
|
||||||
|
|
|
@ -6,6 +6,7 @@ import Label from "../../../Nodes/UIElements/Label";
|
||||||
import ResourceManager from "../../../ResourceManager/ResourceManager";
|
import ResourceManager from "../../../ResourceManager/ResourceManager";
|
||||||
import QuadShaderType from "./QuadShaderType";
|
import QuadShaderType from "./QuadShaderType";
|
||||||
|
|
||||||
|
/** */
|
||||||
export default class LabelShaderType extends QuadShaderType {
|
export default class LabelShaderType extends QuadShaderType {
|
||||||
|
|
||||||
constructor(programKey: string){
|
constructor(programKey: string){
|
||||||
|
|
|
@ -4,6 +4,7 @@ import Rect from "../../../Nodes/Graphics/Rect";
|
||||||
import ResourceManager from "../../../ResourceManager/ResourceManager";
|
import ResourceManager from "../../../ResourceManager/ResourceManager";
|
||||||
import QuadShaderType from "./QuadShaderType";
|
import QuadShaderType from "./QuadShaderType";
|
||||||
|
|
||||||
|
/** */
|
||||||
export default class RectShaderType extends QuadShaderType {
|
export default class RectShaderType extends QuadShaderType {
|
||||||
|
|
||||||
constructor(programKey: string){
|
constructor(programKey: string){
|
||||||
|
|
|
@ -2,6 +2,7 @@ import Updateable from "../DataTypes/Interfaces/Updateable";
|
||||||
import MathUtils from "../Utils/MathUtils";
|
import MathUtils from "../Utils/MathUtils";
|
||||||
import TimerManager from "./TimerManager";
|
import TimerManager from "./TimerManager";
|
||||||
|
|
||||||
|
/** */
|
||||||
export default class Timer implements Updateable {
|
export default class Timer implements Updateable {
|
||||||
|
|
||||||
/** The current state of this timer */
|
/** The current state of this timer */
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import Stack from "../DataTypes/Stack";
|
import Stack from "../DataTypes/Stack";
|
||||||
|
|
||||||
|
/** */
|
||||||
export default class MemoryUtils {
|
export default class MemoryUtils {
|
||||||
/**
|
/**
|
||||||
* Returns an approximate size in bytes of any object
|
* Returns an approximate size in bytes of any object
|
||||||
|
|
Loading…
Reference in New Issue
Block a user