0
0
Fork 0
Commit graph

221 commits

Author SHA1 Message Date
Oliver-Akins
325a2cb423 Update log messages 2021-01-07 12:36:13 -07:00
Oliver-Akins
ffc4524127 Add the game's ID to the datastore. 2021-01-07 12:35:53 -07:00
Oliver-Akins
48840ffdec Use null socket when creating player data from JSON. 2021-01-07 12:35:36 -07:00
Oliver-Akins
00d2262663 Allow player socket to be null 2021-01-07 12:34:56 -07:00
Oliver-Akins
a982ccd704 Implement fromJSON method 2021-01-07 12:34:34 -07:00
Oliver-Akins
348b0453f7 Change constructor to work with the fromJSON method 2021-01-07 12:34:17 -07:00
Oliver-Akins
d385f8830e Implement toJSON method. 2021-01-07 12:33:36 -07:00
Oliver-Akins
b155791f26 Implement fromJSON method 2021-01-07 12:33:10 -07:00
Oliver-Akins
ce252d471a Remove unused conf import 2021-01-07 12:32:47 -07:00
Oliver-Akins
c79d8f970a Prevent host player duplication. 2021-01-07 12:32:31 -07:00
Oliver-Akins
6332673160 Close #32 -> Hand Discarding Size Increase 2021-01-07 11:22:32 -07:00
Oliver-Akins
6a0536761c Make sure newly generated IDs don't interefere with the hibernated games. 2021-01-06 17:30:48 -07:00
Oliver-Akins
ac050fc505 Begin work on implementing game loading from the datastore. 2021-01-06 17:18:43 -07:00
Oliver-Akins
28a1f1ee14 Change structure of the decks for the datastore. 2021-01-06 17:18:07 -07:00
Oliver-Akins
95c298002f Implement a toJSON function. 2021-01-06 17:17:34 -07:00
Oliver-Akins
cc10c145b5 Add filetype to the config. 2021-01-06 17:17:11 -07:00
Oliver-Akins
4195159003 Rename function to routineCheck 2021-01-06 17:16:51 -07:00
Oliver-Akins
2e8497c77d Implement toJSON and fromJSON methods. 2021-01-06 16:24:52 -07:00
Oliver-Akins
b49662f00f Add the team's answers into the datastore team object. 2021-01-06 16:24:35 -07:00
Oliver-Akins
48c0f995d1 Begin implementing toJSON and fromJSON 2021-01-05 17:03:10 -07:00
Oliver-Akins
4b5a05f57b implement toJSON and fromJSON methods 2021-01-05 17:00:38 -07:00
Oliver-Akins
f0f3032465 Add cleanup listeners if they are enabled. 2021-01-05 16:54:45 -07:00
Oliver-Akins
7914ff7e45 Update config validation to check datastores instead of webserver 2021-01-05 16:54:26 -07:00
Oliver-Akins
3a9045ef87 Update GameDeleted type to add message. 2021-01-05 16:53:35 -07:00
Oliver-Akins
483e37df73 Update config type to reflect changes for datastores. 2021-01-05 16:52:43 -07:00
Oliver-Akins
4e73b1ede5 Adjust GameDeleted response to include message. 2021-01-05 16:52:18 -07:00
Oliver-Akins
a5c9631819 Add cleanup functions for the games. 2021-01-05 16:51:54 -07:00
Oliver-Akins
5786ad2742 begin working on the data types needed for the datastore 2021-01-05 16:51:37 -07:00
Oliver-Akins
5ce4f45c89 Update error message. 2021-01-05 14:21:10 -07:00
Oliver-Akins
ee16218c18 Draw new cards for a team when the spirit selects a card to answer rather than right when the medium sends the card to the spirit. 2021-01-05 14:20:54 -07:00
Oliver-Akins
cbbe045848 Register listener for NewHand events 2021-01-05 10:34:43 -07:00
Oliver-Akins
fe9e272926 Update event emissions. 2021-01-05 10:31:25 -07:00
Oliver-Akins
eeece6ab2f Add neat-csv to packages. 2021-01-03 16:36:55 -07:00
Oliver-Akins
aed7258f1f Remove webserver file 2021-01-03 16:36:18 -07:00
Oliver-Akins
039d93ce5b Add GetHand type data 2021-01-03 16:35:45 -07:00
Oliver-Akins
d0a36cca57 Register events 2021-01-03 16:33:32 -07:00
Oliver-Akins
e6330f1ae4 Remove unused config properties 2021-01-03 16:32:42 -07:00
Oliver-Akins
4a9092bedb Use proper CSV parsing. 2021-01-03 16:30:26 -07:00
Oliver-Akins
52ec31eb0b Update error emits and change the hand drawing method. 2021-01-03 16:30:06 -07:00
Oliver-Akins
41d1a4f4d9 Adjust error response event name. 2021-01-03 16:16:53 -07:00
Oliver-Akins
b0b8b1296e Implement a GetHand event. 2021-01-03 16:16:28 -07:00
Oliver-Akins
9743e1a53a Update config to nest card information within a separate object. 2021-01-03 00:44:19 -07:00
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