Add basic command handlers for all current events

This commit is contained in:
Oliver-Akins 2020-09-28 23:09:16 -06:00
parent 98d4c25e7e
commit e321f33a69
12 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,4 @@
import { Socket } from 'socket.io';
export const ChancellorNomination = (socket: Socket, data: any) => {
console.log(`ChancellorNomination event`);
};

View file

@ -0,0 +1,4 @@
import { Socket } from 'socket.io';
export const ChancellorPolicy = (socket: Socket, data: any) => {
console.log(`Chancellor policy`);
};

View file

@ -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`);
};

View file

@ -0,0 +1,4 @@
import { Socket } from 'socket.io';
export const PresidentPolicies = (socket: Socket, data: any) => {
console.log(`Received Presidential policies`);
};

View file

@ -0,0 +1,4 @@
import { Socket } from 'socket.io';
export const StartGame = (socket: Socket, data: any) => {
console.log(`Game starting`);
};

View file

@ -0,0 +1,4 @@
import { Socket } from 'socket.io';
export const VetoConfirm = (socket: Socket, data: any) => {
console.log(`President's veto confirmation`);
};

View file

@ -0,0 +1,4 @@
import { Socket } from 'socket.io';
export const VetoRequest = (socket: Socket, data: any) => {
console.log(`Chancellor requesting veto`);
};

View file

@ -0,0 +1,4 @@
import { Socket } from 'socket.io';
export const Vote = (socket: Socket, data: any) => {
console.log(`Vote received`);
};

View file

@ -0,0 +1,4 @@
import { Socket } from 'socket.io';
export const ExecutePlayer = (socket: Socket, data: any) => {
console.log(`Killing a player`);
};

View file

@ -0,0 +1,4 @@
import { Socket } from 'socket.io';
export const ExecutiveConfirmation = (socket: Socket, data: any) => {
console.log(`Just a plain ole confirmation`);
};

View file

@ -0,0 +1,4 @@
import { Socket } from 'socket.io';
export const InvestigateAffiliation = (socket: Socket, data: any) => {
console.log(`Investigating a player`);
};

View file

@ -0,0 +1,4 @@
import { Socket } from 'socket.io';
export const NextPresident = (socket: Socket, data: any) => {
console.log(`Choosing the Next President`);
};