Add basic command handlers for all current events
This commit is contained in:
parent
98d4c25e7e
commit
e321f33a69
12 changed files with 49 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
import { Socket } from 'socket.io';
|
||||
export const ChancellorNomination = (socket: Socket, data: any) => {
|
||||
console.log(`ChancellorNomination event`);
|
||||
};
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
import { Socket } from 'socket.io';
|
||||
export const ChancellorPolicy = (socket: Socket, data: any) => {
|
||||
console.log(`Chancellor policy`);
|
||||
};
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
import { Socket } from 'socket.io';
|
||||
export const JoinGame = (socket: Socket, data: JoinGame) => {
|
||||
console.log(`User: ${data.username} (${data.game_code})`);
|
||||
console.log(`Joining a game`);
|
||||
};
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
import { Socket } from 'socket.io';
|
||||
export const PresidentPolicies = (socket: Socket, data: any) => {
|
||||
console.log(`Received Presidential policies`);
|
||||
};
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
import { Socket } from 'socket.io';
|
||||
export const StartGame = (socket: Socket, data: any) => {
|
||||
console.log(`Game starting`);
|
||||
};
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
import { Socket } from 'socket.io';
|
||||
export const VetoConfirm = (socket: Socket, data: any) => {
|
||||
console.log(`President's veto confirmation`);
|
||||
};
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
import { Socket } from 'socket.io';
|
||||
export const VetoRequest = (socket: Socket, data: any) => {
|
||||
console.log(`Chancellor requesting veto`);
|
||||
};
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
import { Socket } from 'socket.io';
|
||||
export const Vote = (socket: Socket, data: any) => {
|
||||
console.log(`Vote received`);
|
||||
};
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
import { Socket } from 'socket.io';
|
||||
export const ExecutePlayer = (socket: Socket, data: any) => {
|
||||
console.log(`Killing a player`);
|
||||
};
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
import { Socket } from 'socket.io';
|
||||
export const ExecutiveConfirmation = (socket: Socket, data: any) => {
|
||||
console.log(`Just a plain ole confirmation`);
|
||||
};
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
import { Socket } from 'socket.io';
|
||||
export const InvestigateAffiliation = (socket: Socket, data: any) => {
|
||||
console.log(`Investigating a player`);
|
||||
};
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
import { Socket } from 'socket.io';
|
||||
export const NextPresident = (socket: Socket, data: any) => {
|
||||
console.log(`Choosing the Next President`);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue