Issue various useful commands to the game engine.

Generated

from protobuf message SC2APIProtocol.DebugCommand

interface DebugCommand {
    command: {
        draw: DebugDraw;
        oneofKind: "draw";
    } | {
        gameState: DebugGameState;
        oneofKind: "gameState";
    } | {
        createUnit: DebugCreateUnit;
        oneofKind: "createUnit";
    } | {
        killUnit: DebugKillUnit;
        oneofKind: "killUnit";
    } | {
        oneofKind: "testProcess";
        testProcess: DebugTestProcess;
    } | {
        oneofKind: "score";
        score: DebugSetScore;
    } | {
        endGame: DebugEndGame;
        oneofKind: "endGame";
    } | {
        oneofKind: "unitValue";
        unitValue: DebugSetUnitValue;
    } | {
        oneofKind: undefined;
    };
}

Properties

Properties

command: {
    draw: DebugDraw;
    oneofKind: "draw";
} | {
    gameState: DebugGameState;
    oneofKind: "gameState";
} | {
    createUnit: DebugCreateUnit;
    oneofKind: "createUnit";
} | {
    killUnit: DebugKillUnit;
    oneofKind: "killUnit";
} | {
    oneofKind: "testProcess";
    testProcess: DebugTestProcess;
} | {
    oneofKind: "score";
    score: DebugSetScore;
} | {
    endGame: DebugEndGame;
    oneofKind: "endGame";
} | {
    oneofKind: "unitValue";
    unitValue: DebugSetUnitValue;
} | {
    oneofKind: undefined;
}

Type declaration

  • draw: DebugDraw

    Generated

    from protobuf field: SC2APIProtocol.DebugDraw draw = 1;

  • oneofKind: "draw"

Type declaration

  • gameState: DebugGameState

    Generated

    from protobuf field: SC2APIProtocol.DebugGameState game_state = 2;

  • oneofKind: "gameState"

Type declaration

  • createUnit: DebugCreateUnit

    Generated

    from protobuf field: SC2APIProtocol.DebugCreateUnit create_unit = 3;

  • oneofKind: "createUnit"

Type declaration

  • killUnit: DebugKillUnit

    Generated

    from protobuf field: SC2APIProtocol.DebugKillUnit kill_unit = 4;

  • oneofKind: "killUnit"

Type declaration

  • oneofKind: "testProcess"
  • testProcess: DebugTestProcess

    Generated

    from protobuf field: SC2APIProtocol.DebugTestProcess test_process = 5;

Type declaration

  • oneofKind: "score"
  • score: DebugSetScore

    Generated

    from protobuf field: SC2APIProtocol.DebugSetScore score = 6;

Type declaration

  • endGame: DebugEndGame

    Generated

    from protobuf field: SC2APIProtocol.DebugEndGame end_game = 7;

  • oneofKind: "endGame"

Type declaration

  • oneofKind: "unitValue"
  • unitValue: DebugSetUnitValue

    Generated

    from protobuf field: SC2APIProtocol.DebugSetUnitValue unit_value = 8;

Type declaration

  • oneofKind: undefined

Generated

from protobuf oneof: command

Generated using TypeDoc