classicborne
    Preparing search index...

    Class BaseLevelCommandInterpreter

    As an instance, I am initialized with a level. I act on the level via commands provided by the player or by other source, such as ChangeRecord loading. I may be used interactively by a player. This causes the level to block writes to avoid potential conflict with input intended as responses to my interactive questions.

    Hierarchy

    • TypedEmitter
      • BaseLevelCommandInterpreter
    Index

    Constructors

    Properties

    currentCommand: any
    currentCommandActionBytes: any[] | number[]
    currentCommandLayoutIndex: number
    level: BaseLevel
    defaultMaxListeners: number
    parsingErrors: {
        invalidBlockId: number;
        invalidPosition: number;
        positionOutBounds: number;
    } = ...

    Yet to be documented.

    Methods

    • Type Parameters

      • U extends "playerError" | "typeQuestion"

      Parameters

      • event: U
      • listener: {
            playerError: (player: BasePlayer, errorType: number) => void;
            typeQuestion: (typeQuestion: TypeQuestion) => void;
        }[U]

      Returns this

    • Type Parameters

      • U extends "playerError" | "typeQuestion"

      Parameters

      • event: U
      • ...args: Parameters<
            {
                playerError: (player: BasePlayer, errorType: number) => void;
                typeQuestion: (typeQuestion: TypeQuestion) => void;
            }[U],
        >

      Returns boolean

    • Type Parameters

      • U extends "playerError" | "typeQuestion"

      Returns U[]

    • Returns number

    • Parameters

      • type: "playerError" | "typeQuestion"

      Returns number

    • Type Parameters

      • U extends "playerError" | "typeQuestion"

      Parameters

      • type: U

      Returns {
          playerError: (player: BasePlayer, errorType: number) => void;
          typeQuestion: (typeQuestion: TypeQuestion) => void;
      }[U][]

    • Type Parameters

      • U extends "playerError" | "typeQuestion"

      Parameters

      • event: U
      • listener: {
            playerError: (player: BasePlayer, errorType: number) => void;
            typeQuestion: (typeQuestion: TypeQuestion) => void;
        }[U]

      Returns this

    • Type Parameters

      • U extends "playerError" | "typeQuestion"

      Parameters

      • event: U
      • listener: {
            playerError: (player: BasePlayer, errorType: number) => void;
            typeQuestion: (typeQuestion: TypeQuestion) => void;
        }[U]

      Returns this

    • Type Parameters

      • U extends "playerError" | "typeQuestion"

      Parameters

      • event: U
      • listener: {
            playerError: (player: BasePlayer, errorType: number) => void;
            typeQuestion: (typeQuestion: TypeQuestion) => void;
        }[U]

      Returns this

    • Type Parameters

      • U extends "playerError" | "typeQuestion"

      Parameters

      • event: U
      • listener: {
            playerError: (player: BasePlayer, errorType: number) => void;
            typeQuestion: (typeQuestion: TypeQuestion) => void;
        }[U]

      Returns this

    • Type Parameters

      • U extends "playerError" | "typeQuestion"

      Parameters

      • event: U
      • listener: {
            playerError: (player: BasePlayer, errorType: number) => void;
            typeQuestion: (typeQuestion: TypeQuestion) => void;
        }[U]

      Returns this

    • Type Parameters

      • U extends "playerError" | "typeQuestion"

      Parameters

      • type: U

      Returns {
          playerError: (player: BasePlayer, errorType: number) => void;
          typeQuestion: (typeQuestion: TypeQuestion) => void;
      }[U][]

    • Parameters

      • Optionalevent: "playerError" | "typeQuestion"

      Returns this

    • Type Parameters

      • U extends "playerError" | "typeQuestion"

      Parameters

      • event: U
      • listener: {
            playerError: (player: BasePlayer, errorType: number) => void;
            typeQuestion: (typeQuestion: TypeQuestion) => void;
        }[U]

      Returns this

    • Parameters

      • n: number

      Returns this