Finish renaming event
This commit is contained in:
parent
6ccb5f840e
commit
5ef4544822
3 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import { Server, Socket } from 'socket.io';
|
import { Server, Socket } from 'socket.io';
|
||||||
export const InvestigateAffiliation = (io: Server, socket: Socket, data: InvestigateAffiliation) => {
|
export const InvestigateParty = (io: Server, socket: Socket, data: InvestigateParty) => {
|
||||||
console.log(`Investigating a player`);
|
console.log(`Investigating a player`);
|
||||||
};
|
};
|
||||||
|
|
@ -16,7 +16,7 @@ import { ChancellorNomination } from "./events/ChancellorNomination";
|
||||||
import { ExecutePlayer } from "./events/special/Execution/ExecutePlayer";
|
import { ExecutePlayer } from "./events/special/Execution/ExecutePlayer";
|
||||||
import { NextPresident } from "./events/special/SpecialElection/NextPresident";
|
import { NextPresident } from "./events/special/SpecialElection/NextPresident";
|
||||||
import { ExecutiveConfirmation } from "./events/special/ExecutiveConfirmation";
|
import { ExecutiveConfirmation } from "./events/special/ExecutiveConfirmation";
|
||||||
import { InvestigateAffiliation } from "./events/special/InvestigateLoyalty/InvestigateParty";
|
import { InvestigateParty } from "./events/special/InvestigateLoyalty/InvestigateParty";
|
||||||
|
|
||||||
export var log: Logger = new Logger({
|
export var log: Logger = new Logger({
|
||||||
displayFunctionName: false,
|
displayFunctionName: false,
|
||||||
|
|
@ -78,7 +78,7 @@ io.on(`connection`, (socket: sio.Socket) => {
|
||||||
socket.on(`ExecutePlayer`, (data: any) => ExecutePlayer(io, socket, data));
|
socket.on(`ExecutePlayer`, (data: any) => ExecutePlayer(io, socket, data));
|
||||||
socket.on(`NextPresident`, (data: any) => NextPresident(io, socket, data));
|
socket.on(`NextPresident`, (data: any) => NextPresident(io, socket, data));
|
||||||
socket.on(`ExecutiveConfirmation`, (data: any) => ExecutiveConfirmation(io, socket, data));
|
socket.on(`ExecutiveConfirmation`, (data: any) => ExecutiveConfirmation(io, socket, data));
|
||||||
socket.on(`InvestigateAffiliation`, (data: any) => InvestigateAffiliation(io, socket, data));
|
socket.on(`InvestigateParty`, (data: any) => InvestigateParty(io, socket, data));
|
||||||
|
|
||||||
|
|
||||||
// Utility Events
|
// Utility Events
|
||||||
|
|
|
||||||
2
src/types/data.d.ts
vendored
2
src/types/data.d.ts
vendored
|
|
@ -7,7 +7,7 @@ interface ExecutePlayer extends request {
|
||||||
target: string;
|
target: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface InvestigateAffiliation extends request {
|
interface InvestigateParty extends request {
|
||||||
target: string;
|
target: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue