Commit graph

55 commits

Author SHA1 Message Date
Oliver-Akins
252cd773ac Add information for the KickPlayer event 2020-10-05 12:13:27 -06:00
Oliver-Akins
076b5fffe6 Update logger settings. 2020-10-05 12:12:43 -06:00
Oliver-Akins
6757f12f6a Add request information for the KillGame event. 2020-10-05 12:12:10 -06:00
Oliver-Akins
0ed3800467 Update response data. 2020-10-05 12:11:43 -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
0fe1008196 Add more configurability to the logger. 2020-10-02 16:55:21 -06:00
Oliver-Akins
bdc7bccfcc Implement the JoinGame event 2020-10-02 16:52:47 -06:00
Oliver-Akins
e45a1a4b89 Actually exit from the app when we're done cleaning up. 2020-10-02 16:52:17 -06:00
Oliver-Akins
2141e8bb21 Import the Game class because we need to 2020-10-02 16:51:54 -06:00
Oliver-Akins
edb083f744 Add export to the Game class 2020-10-02 16:50:49 -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
de3a8ea61e Update type for status. 2020-10-01 22:17:18 -06:00
Oliver-Akins
b842d9f8bc Add a status indicator to Game objects 2020-10-01 22:16:10 -06:00
Oliver-Akins
22a76984eb Make data actually representative of what the client will get 2020-10-01 22:04:36 -06:00
Oliver-Akins
564206dd8b Begin using the tslog module 2020-10-01 21:45:40 -06:00
Oliver-Akins
1578df961c Generate source map for tslog 2020-10-01 21:38:32 -06:00
Oliver-Akins
46b9111035 Add tslog module 2020-10-01 21:38:20 -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
8fb4c538f0 Remove ugly underscore from attribute name 2020-10-01 21:10:55 -06:00
Oliver-Akins
c4a16e5695 Add docstring 2020-10-01 21:08:04 -06:00
Oliver-Akins
64b5428136 Add a policy type alias. 2020-10-01 20:29:09 -06:00
Oliver-Akins
ea13b46c66 Add some type info for request data. 2020-10-01 20:28:56 -06:00
Oliver-Akins
1380a7919b Update/add file headers for documentation purposes 2020-09-30 23:49:10 -06:00
Oliver-Akins
d204378ea5 Add some type information for events that are sent to the client.
This isn't really used for anything in particular except documentation
2020-09-30 23:48:23 -06:00
Oliver-Akins
1063126164 Add interfaces for each event's data 2020-09-30 23:10:35 -06:00
Oliver-Akins
cfb915724f begin work on method to create a Game object from JSON 2020-09-29 22:58:33 -06:00
Oliver-Akins
cb492fd275 Create method to convert Game objects to JSON 2020-09-29 22:58:11 -06:00
Oliver-Akins
c2e28ce14b Add event listeners for cleanup 2020-09-29 22:57:48 -06:00
Oliver-Akins
729f6b7cd5 Add function to clean up and save the games to disk on exit 2020-09-29 22:57:33 -06:00
Oliver-Akins
7696de2284 Add data for storing the game objects and JSON data on exit 2020-09-29 22:57:09 -06:00
Oliver-Akins
4f00510401 Update import order 2020-09-29 17:20:02 -06:00
Oliver-Akins
b0117ed6fe Add toString override for debugging purposes. 2020-09-29 17:07:28 -06:00
Oliver-Akins
661f52292e Initial game class. 2020-09-29 16:39:52 -06:00
Oliver-Akins
169105f400 Add type alias for the players object. 2020-09-29 16:39:35 -06:00
Oliver-Akins
549383b529 Allow role to be undefined. 2020-09-29 16:34:31 -06:00
Oliver-Akins
814c291443 Update player object and example JSON 2020-09-29 16:33:01 -06:00
Oliver-Akins
76cf2e0686 Target ES2020 for compilation 2020-09-29 16:29:24 -06:00
Oliver-Akins
accc992b0b Add database folder to gitignore (allow example file) 2020-09-28 23:10:52 -06:00
Oliver-Akins
49d401a7bc Add example database. 2020-09-28 23:10:34 -06:00
Oliver-Akins
e321f33a69 Add basic command handlers for all current events 2020-09-28 23:09:16 -06:00
Oliver-Akins
98d4c25e7e Update tsconfig 2020-09-28 23:08:49 -06:00
Oliver-Akins
b3c0dfbddf Update package.json and lock file 2020-09-28 23:08:38 -06:00
Oliver-Akins
6b1e95e800 Add code to handle socket connections and listen for events 2020-09-28 23:07:57 -06:00
Oliver-Akins
44782f3e85 Add utility to generate a random game code. 2020-09-28 23:07:19 -06:00
Oliver-Akins
de8b4a1b62 Add database module 2020-09-28 23:06:51 -06:00
Oliver-Akins
5c386eb416 Add database types 2020-09-28 23:06:33 -06:00
Oliver-Akins
a1058444a9 Add request datatypes for hosting and joining a game 2020-09-28 23:06:19 -06:00
Oliver-Akins
8a9adb21f0 Add code to handle the HostGame event 2020-09-28 23:05:43 -06:00