Commit graph

130 commits

Author SHA1 Message Date
Oliver-Akins
5ef4544822 Finish renaming event 2020-10-08 23:25:32 -06:00
Oliver-Akins
6ccb5f840e Rename event. 2020-10-08 23:24:02 -06:00
Oliver-Akins
a451c69dad Add placeholders for all the planned events. 2020-10-08 23:22:06 -06:00
Oliver-Akins
d2014d6742 Add base function for killing the game 2020-10-08 23:12:47 -06:00
Oliver-Akins
b58d1e7049 Add groups for event responses 2020-10-08 23:09:58 -06:00
Oliver-Akins
12798e7a53 Begin work on event documentation 2020-10-08 23:06:21 -06:00
Oliver-Akins
150a719116 Emit the correct event 2020-10-08 23:06:09 -06:00
Oliver-Akins
46620ec326 remove game_code from client data interface 2020-10-08 23:05:32 -06:00
Oliver-Akins
79fae1a8a7 Change response emission to not include "Response" 2020-10-08 23:05:13 -06:00
Oliver-Akins
5d328da49c Emit only to the game room, remove game code from response 2020-10-08 23:04:17 -06:00
Oliver-Akins
c0e9efcc9f Add server variable to the event handlers. 2020-10-08 21:30:39 -06:00
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
d49b214762 Adjust the log stack for the cleanup 2020-10-06 23:18:09 -06:00
Oliver-Akins
d4d01bf3ac Change property name. 2020-10-06 23:17:40 -06:00
Oliver-Akins
05dc6995e5 Add remove_player method. 2020-10-06 23:17:12 -06:00
Oliver-Akins
30ee2febcb Adjust string output 2020-10-06 23:16:53 -06:00
Oliver-Akins
bdb7f6fc14 Add getter for host of the game 2020-10-06 23:16:36 -06:00
Oliver-Akins
86199d71d5 Begin work on the Kickplayer event 2020-10-06 23:15:58 -06:00
Oliver-Akins
5fa807f034 Add response data for Kickplayer 2020-10-06 23:15:41 -06:00
Oliver-Akins
b24e0574a7 Update NewPlayer event response 2020-10-06 23:15:23 -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
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