0
0
Fork 0
Commit graph

129 commits

Author SHA1 Message Date
Oliver-Akins
f6a8495316 Adjust config template to be updated with the testing config + type def 2021-01-03 00:43:25 -07:00
Oliver-Akins
6be700d37c Update type signature of the objects array before population. 2021-01-03 00:07:44 -07:00
Oliver-Akins
125b941f55 Allow there to be multiple columns in the question CSV, but only grab the first column. 2021-01-03 00:07:24 -07:00
Oliver-Akins
f602f78604 Register UpdateAnswer event. 2021-01-03 00:05:53 -07:00
Oliver-Akins
d262dd3691 Change log level. 2021-01-03 00:05:40 -07:00
Oliver-Akins
fab77b06b4 Fix bug that would remove the player from the general role room if they were switching from one team to the other, but remaining in the same role. 2021-01-03 00:05:22 -07:00
Oliver-Akins
23946e8bc1 Update event emission for errors. 2021-01-03 00:04:26 -07:00
Oliver-Akins
45a9d3db45 Make the response use the expected property name 2021-01-02 18:53:48 -07:00
Oliver-Akins
88739a8baf Register SelectObject and ObjectList event listeners. 2021-01-02 18:36:22 -07:00
Oliver-Akins
3ab0d69119 Change "object" to "choice" to match data from client. 2021-01-02 18:35:29 -07:00
Oliver-Akins
41faf15d24 Correct multiple issues (see detailed description)
1) Not including a status in the 200 response
2) Emitting errors on "Error" instead of "ChosenObject"
3) Using "data.object" instead of "data.choice"
2021-01-02 18:35:11 -07:00
Oliver-Akins
8ab9f558f6 Update logs to not be getting data that isn't completely needed. 2021-01-02 18:33:49 -07:00
Oliver-Akins
1c2fdb8944 Don't emit the ChosenObject event to everyone in the game. 2021-01-02 17:35:57 -07:00
Oliver-Akins
93d7782ee8 Adjust what rooms the players are put into and add more logs. 2021-01-02 17:35:05 -07:00
Oliver-Akins
fdadfca76a Implement StartGame event 2021-01-02 13:32:56 -07:00
Oliver-Akins
69d6d3dc56 Remove logger name from config. 2021-01-02 13:32:34 -07:00
Oliver-Akins
6415e139ae Update global logger settings. 2021-01-02 13:32:20 -07:00
Oliver-Akins
5345c97f33 Update logs to use Game's logger when possible instead of Global. 2021-01-02 13:32:05 -07:00
Oliver-Akins
93de617d83 Wait until game starts to give the cards to each team. 2021-01-02 13:30:07 -07:00
Oliver-Akins
21c9034ab6 Add a child logger to the Game 2021-01-02 13:29:26 -07:00
Oliver-Akins
1512960b2a Add event registration for DeleteGame and LeaveGame 2021-01-02 00:34:20 -07:00
Oliver-Akins
82120ed516 Add data for the LeaveGame event 2021-01-02 00:33:37 -07:00
Oliver-Akins
9989409c13 Implement LeaveGame event 2021-01-02 00:33:23 -07:00
Oliver-Akins
5cee09f3f0 Add some debug logs for players joining 2021-01-02 00:33:10 -07:00
Oliver-Akins
bf4f5c878e Emit the event to all connected clients in the game. 2021-01-01 23:24:50 -07:00
Oliver-Akins
a9926fa9c2 Update error event emission names 2021-01-01 23:24:16 -07:00
Oliver-Akins
fac5dd0c7e Join the player to the game room. 2021-01-01 20:36:04 -07:00
Oliver-Akins
e2e62859b7 Make the action property actually consistent across event emits 2021-01-01 20:35:50 -07:00
Oliver-Akins
4a9d5cb533 Add proper data to the user join emit 2021-01-01 20:13:25 -07:00
Oliver-Akins
51db315e35 Add status to game-wide emission. 2021-01-01 20:13:04 -07:00
Oliver-Akins
05ec403ad1 Set optional data points to be optional. 2021-01-01 20:11:53 -07:00
Oliver-Akins
2414236454 Add player name to the modify player log 2021-01-01 20:07:55 -07:00
Oliver-Akins
69ef805b65 Remove CSV-parser 2021-01-01 16:08:15 -07:00
Oliver-Akins
00e78b60c0 Update loading the permitted hosts in the websocket server 2021-01-01 16:07:26 -07:00
Oliver-Akins
e54adf03c3 Update validation check for permitted hosts 2021-01-01 16:07:06 -07:00
Oliver-Akins
a86f02c1cf Update some types 2021-01-01 16:06:44 -07:00
Oliver-Akins
ffc82fbb98 Set to and from to be optional 2021-01-01 16:06:28 -07:00
Oliver-Akins
264125c772 Update resoonse name 2021-01-01 16:06:12 -07:00
Oliver-Akins
4fe7ba7727 Allow role and team to be null for players 2021-01-01 16:05:51 -07:00
Oliver-Akins
0fdd11b836 Move where the permitted_hosts is 2021-01-01 16:05:33 -07:00
Oliver-Akins
eca3b1d5f9 Add an id attribute and default the guessers array 2021-01-01 16:05:16 -07:00
Oliver-Akins
fc298f30d4 Add properties for role and team 2021-01-01 16:04:49 -07:00
Oliver-Akins
769078f70b Update imports 2021-01-01 16:04:30 -07:00
Oliver-Akins
728522986a Move card drawing for the teams 2021-01-01 16:04:19 -07:00
Oliver-Akins
3a765ca1e8 Default players to an empty array 2021-01-01 16:03:42 -07:00
Oliver-Akins
5ce7735d8f Add attribute for getting an array of players and their roles. 2021-01-01 16:03:03 -07:00
Oliver-Akins
aed8f3972c Make CSV parsing actually work. 2021-01-01 16:02:46 -07:00
Oliver-Akins
8b2b360621 Fix the deck being set to the single card we're removing 2021-01-01 16:01:31 -07:00
Oliver-Akins
06aabcf74e Update error events 2021-01-01 16:01:02 -07:00
Oliver-Akins
958d8a1382 Add case where the player is just joining a team for the first time. 2021-01-01 16:00:31 -07:00