Commit Graph

253 Commits (81e49b505b535e028caf40f21325398e6839ba7e)
 

Author SHA1 Message Date
noah metz 230f4a88eb Added control state and game state to Match graphql 2023-06-08 16:48:28 -06:00
noah metz be2e227a1d Added updateEvent to event tree and tested cancelling the event over graphql 2023-06-08 16:41:51 -06:00
noah metz fd144eea02 Added arena to gql 2023-06-08 00:36:16 -06:00
noah metz 9e2ca6907a Added team and alliances to gql_vex.go 2023-06-08 00:19:55 -06:00
noah metz 77eb76bc9c Added vex match as module for gql node 2023-06-07 23:01:06 -06:00
noah metz a403ea82cb Moved gql node to own file 2023-06-07 22:46:42 -06:00
noah metz 531676c5c3 Fixed bug and typo 2023-06-07 22:38:02 -06:00
noah metz 592bf387f4 Moved gql types to functions 2023-06-07 22:30:06 -06:00
noah metz a42104883c Moved from relay to custom handler with context for gql 2023-06-07 21:59:56 -06:00
noah metz 34cc51d4c8 Added basic gql handler 2023-06-07 20:51:53 -06:00
noah metz 8284c77cfe Added abort on syscall signals 2023-06-07 16:27:45 -06:00
noah metz 75d0eb0396 Created GQL resource which will act as a graphql server for the attached node and all nodes under it 2023-06-07 00:36:40 -06:00
noah metz 2d31daa916 Made cancel and abort handlers instead of abort being a special signal type 2023-06-06 23:04:49 -06:00
noah metz 3605e3ee37 Added graphql library 2023-06-06 20:01:44 -06:00
noah metz 7e8045ce39 Renamd Resource.Connect to Resource.Init 2023-06-06 16:53:33 -06:00
noah metz bfd295b3db Memory and CPU profiling 2023-06-04 17:23:49 -06:00
noah metz cdc682f844 mend 2023-06-04 14:15:26 -06:00
noah metz a34df43d35 Updated main.go to have 2 divisions in an event, and fixed event.go to check child.Parent() instead of event.Parent() 2023-06-04 14:15:01 -06:00
noah metz 00abdc8b1c Moved logging to a global object that's initialized on first log call 2023-06-04 13:18:10 -06:00
noah metz 0f92de1619 Moved wait action to a closure generator instead of using a non-pointer closure that didn't pickup any event changes 2023-06-03 23:49:25 -06:00
noah metz debeed7091 Updated fake client so that it runs the fake event in main.go 2023-06-03 21:27:20 -06:00
noah metz 08eb543af0 Fixed tests 2023-06-03 18:56:14 -06:00
noah metz 9342169281 Removed extra handlers from event.go and renamed arena_connected to resource_connected 2023-06-03 10:59:42 -06:00
noah metz 301dbb6b94 Added Trace to signal so that nodes can discard based on direction 2023-06-03 02:45:16 -06:00
noah metz a43310daad Updated go.mod 2023-06-03 02:08:40 -06:00
noah metz 3f7d452954 Added WaitForValue test function 2023-06-03 02:07:16 -06:00
noah metz f6a36f9028 Added call to resource update in arena update 2023-06-03 01:54:14 -06:00
noah metz f838f53dda Basic vex Match 2023-06-03 01:38:35 -06:00
noah metz 0085a71142 Updated manager_test.go to run faster 2023-06-02 17:39:28 -06:00
noah metz 02aa464af2 Removed extra update send in unlock 2023-06-02 17:34:35 -06:00
noah metz b5db5f53b5 fix 2023-06-02 17:33:10 -06:00
noah metz c467e267ed Removed trace log statements for locking. Need to add configurable log levels and categories to make debugging/developing better. 2023-06-02 17:32:40 -06:00
noah metz 100a5f8f2e Moved class methods to package methods. Updated graph once again 2023-06-02 17:31:29 -06:00
noah metz 55d977e9b8 Updated listener to have explicit unregister. Cleanup of initializers. More stuff I don't remember. 2023-06-01 22:42:47 -06:00
noah metz d7b13de82f Updated tests and fixed updates before/after locking/unlocking 2023-06-01 13:48:38 -06:00
noah metz 990b93757f Added virtual arena that responds to signals on a channel, cleaned up log messages, and fixed update() hierarchy 2023-06-01 13:11:32 -06:00
noah metz 26a2a63d83 Removed graphql dependency 2023-05-31 00:37:51 -06:00
noah metz b7365f7dfb Made event part of the closure and created first step of match 2023-05-30 21:50:59 -06:00
noah metz 62dbe54e81 Cleaned up Event to make new structures easier, added vex Match and tests 2023-05-30 20:45:16 -06:00
noah metz 07097bfd9d Unlock required resources on event unlock 2023-05-30 00:00:14 -06:00
noah metz f6834c9201 Added basic event queue machine 2023-05-29 23:54:52 -06:00
noah metz 0c3193162c renamed graph_test.go to manager_test.go 2023-05-29 19:20:45 -06:00
noah metz 11bf1e5344 Split to seperate files and removed FSM libary to prepare for embedded callback mechanism 2023-05-29 19:17:52 -06:00
noah metz c06ff16fc9 Added EventQueue and added child_event_type that defines the required type of child_info. Look at how to make this not take up memory in each struct. 2023-05-08 21:42:33 -06:00
noah metz 272022629b Added TestAddEvent test 2023-04-08 16:59:36 -06:00
noah metz 81b3ab65bf Added constructor for EventManger that requires a single event with no children and a list of Resources ordered by dependency. Updated main and tests to match. 2023-04-08 16:51:34 -06:00
noah metz d4da75d6a1 Removed comment 2023-04-08 15:52:06 -06:00
noah metz 3e5b52884f Added update to lock/unlock for resource 2023-04-08 15:51:42 -06:00
noah metz 2b562abe01 Added naive locking/unlocking. Want to verify if it's possible to get into a deadlock with current implementation. 2023-04-08 15:47:51 -06:00
noah metz e4366c5bf2 Added 3rd tier to TestResourceUpdate 2023-04-08 15:26:04 -06:00