Commit graph

25 commits

Author SHA1 Message Date
8586bdabd7 Fix duplicate saving on quit
Slight refactor to split server stop and close functions
	Quit function explicitly sends SIGTERM
	SIGTERM doesn't trigger an os.Exit

	Bonus: Properly save the world on spawning the rover
2020-06-07 18:06:34 +01:00
5e1f9b0d31 Refactor rover attributes to add a name 2020-06-06 16:52:30 +01:00
ea67fe1cbe Fix executing a tick every second for a minute 2020-06-06 16:31:39 +01:00
c6fbf1341a Allow the server tick to be customised 2020-06-06 16:01:49 +01:00
573bfbf9c7 Add cron tick of command queue 2020-06-06 15:52:03 +01:00
0a0a32cf58 Implement a command queue on the world
Not currently executed
2020-06-06 14:44:59 +01:00
e3ce87e964 Simplify duplicate command types 2020-06-06 12:45:45 +01:00
1d2087e2b9 Fix test instabilities by refactoring to make address dynamic and readable 2020-06-06 11:52:12 +01:00
cade908ed2 Refactor APIs to take an /{accountid}/ prefix 2020-06-05 23:08:59 +01:00
9d57f48f98 Add /rover command to get rover info 2020-06-05 22:23:01 +01:00
3474e6ca8c Pull out API definitions and testing into it's own package 2020-06-05 17:24:27 +01:00
6ef69cec02 Even more cleanup and refactor to simplify handlers 2020-06-05 16:52:15 +01:00
6461b51c5c Fully implement the bearing based movement
Instant, and without limit, for now
2020-06-04 21:59:00 +01:00
0fbad15c01 Huge Instance -> Rover refactor, for clarification 2020-06-04 21:19:25 +01:00
6f248f1bd2 Small server refactor and rename 2020-06-04 18:10:55 +01:00
376a036067 Large refactor to server code to re-organise 2020-06-04 17:53:25 +01:00
b95d92350a Refactor route handlers 2020-06-04 17:21:23 +01:00
e2857d7506 Add the /commands path to handle a set of commands
Entirely synchronous now but allows for the "move" command
2020-06-03 18:40:19 +01:00
c5ebbc3c40 Extract persistence code into own class 2020-06-03 12:10:31 +01:00
68d117e0d8 Serialise the World as well 2020-06-02 18:00:51 +01:00
5033ec4e63 Specify the persistence path using the command line 2020-06-02 16:12:44 +01:00
07c5b9cf5a Fix passing port on command line 2020-06-01 18:10:25 +01:00
d104c90445 Fix tests with a proper start-up and shutdown procedure with a sync 2020-05-31 19:48:43 +01:00
179dd3f984 Implement saving and loading for account data, currently a basic json file 2020-05-31 19:15:57 +01:00
93decc027b Refactor into server object to handle registered accounts 2020-05-31 11:18:26 +01:00