Commit graph

23 commits

Author SHA1 Message Date
Oliver-Akins
c5e1621366 Add player to the game's socket room 2020-10-08 21:21:59 -06:00
Oliver-Akins
f43f36eb46 Add socket ID to player's information and remove host from initializer 2020-10-08 21:19:23 -06:00
Oliver-Akins
efa7540404 Condense the game object creation 2020-10-08 11:14:48 -06:00
Oliver-Akins
e3d9bc7e13 Add users to game room when they create a game. 2020-10-08 11:14:32 -06:00
Oliver-Akins
86199d71d5 Begin work on the Kickplayer event 2020-10-06 23:15:58 -06:00
Oliver-Akins
9f96850e8e Change from debug to error level 2020-10-06 23:15:02 -06:00
Oliver-Akins
e8b9b41453 Pretty-print error on catching it 2020-10-06 23:14:49 -06:00
Oliver-Akins
252cd773ac Add information for the KickPlayer event 2020-10-05 12:13:27 -06:00
Oliver-Akins
6757f12f6a Add request information for the KillGame event. 2020-10-05 12:12:10 -06:00
Oliver-Akins
b5f054f0b7 remove references for the DB 2020-10-05 12:11:26 -06:00
Oliver-Akins
dbd6aefbd2 Add more log events to the JoinGame function. 2020-10-02 16:57:44 -06:00
Oliver-Akins
bdc7bccfcc Implement the JoinGame event 2020-10-02 16:52:47 -06:00
Oliver-Akins
c284735e5e Add needed import for Game object. 2020-10-02 16:50:31 -06:00
Oliver-Akins
494a001afd Update GetPlayerList to use the game objects. 2020-10-02 16:50:09 -06:00
Oliver-Akins
564206dd8b Begin using the tslog module 2020-10-01 21:45:40 -06:00
Oliver-Akins
d2b6bfb54f Switch over to the Game object instead of DB
This is to prevent the shit tonne of race conditions that writing to disk would've cause.
2020-10-01 21:12:55 -06:00
Oliver-Akins
c4a16e5695 Add docstring 2020-10-01 21:08:04 -06:00
Oliver-Akins
1380a7919b Update/add file headers for documentation purposes 2020-09-30 23:49:10 -06:00
Oliver-Akins
1063126164 Add interfaces for each event's data 2020-09-30 23:10:35 -06:00
Oliver-Akins
e321f33a69 Add basic command handlers for all current events 2020-09-28 23:09:16 -06:00
Oliver-Akins
8a9adb21f0 Add code to handle the HostGame event 2020-09-28 23:05:43 -06:00
Oliver-Akins
11c671ef25 Add function to handle the request for the player list. 2020-09-28 23:05:22 -06:00
Oliver-Akins
69ec651f6d Initialize typescript files. 2020-09-20 21:59:50 -06:00