Skip to content

Commit

Permalink
Remove all mention of CHALLENGE_DATA
Browse files Browse the repository at this point in the history
  • Loading branch information
Hal-9k1 committed Oct 24, 2024
1 parent 8d69c0b commit 81ddc38
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions src/main/network/RuntimeComms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const PING_INTERVAL = 5000;

/**
* A type of packet.
* Note CHALLENGE_DATA type has been omitted since 2021 Dawn as Shepherd is now in charge of
* checking challenges.
*/
enum MsgType {
RUN_MODE = 0,
Expand Down Expand Up @@ -185,18 +187,6 @@ export default class RuntimeComms {
}
}

/**
* Sends challenge data.
* @param data - the textual challenge data to send.
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
sendChallengeInputs(data: protos.IText) {
if (this.#tcpSock) {
throw new Error('Not implemented.'); // MsgTypes from old dawn are inconsistent?
// this.#tcpSock.write(this.#createPacket(MsgType.CHALLENGE_DATA, data));
}
}

/**
* Sends the robot's starting position.
* @param startPos - the robot's starting position index to send.
Expand Down Expand Up @@ -431,14 +421,6 @@ export default class RuntimeComms {
*/
#createPacket(type: MsgType.TIME_STAMPS, data: protos.ITimeStamps): Buffer;

/*
* Encodes a challenge data packet.
* @param type - the packet type.
* @param data - the packet payload.
* @returns The packet encoded in a Buffer
*/
// #createPacket(type: MsgType.CHALLENGE_DATA, data: protos.IText): Buffer;

/**
* Encodes an input state packet.
* @param type - the packet type.
Expand Down

0 comments on commit 81ddc38

Please sign in to comment.