Commit graph

63 commits

Author SHA1 Message Date
Norbi Peti eb7a09ed22
Fixes, move command patch out of the test class
Removed some command line engines that shouldn't be registered
Fixed registering custom commands - registering it with the existing ones
2021-04-25 02:07:31 +02:00
Norbi Peti 6a2459b3e7
Attempts to bring console commands back (test) 2021-04-24 03:41:37 +02:00
Norbi Peti cc4850a073
Fix fake input 2021-04-20 01:23:39 +02:00
Norbi Peti 677c8b0907
Add constructor for placing block, remove most PlaceNew args 2021-04-19 19:32:14 +02:00
Norbi Peti 9a4ff858f3
Improve color API and add material API 2021-04-16 01:40:30 +02:00
Norbi Peti 124ef410c7
Attempt to bring console back and update block ID list 2021-04-13 02:05:16 +02:00
Norbi Peti 98e00de642
Fix all startup errors 2021-04-12 17:37:51 +02:00
Norbi Peti 2d41026a05
Turned the rest of the errors into TODOs 2021-04-11 02:36:00 +02:00
Norbi Peti d954060a5a Add ability to change properties of existing blocks
And not storing custom block data for now
2020-12-27 21:13:49 +01:00
NGnius (Graham) 95574a50f8 Merge branch 'master' of https://git.exmods.org/modtainers/GamecraftModdingAPI 2020-12-21 16:57:32 -05:00
NGnius (Graham) 1c014e36ac Add IMGUI styling and initial OOP implementation 2020-12-21 16:31:57 -05:00
Norbi Peti 879901f4b9 Add new block IDs, a property, 2 tests and fixes 2020-12-20 00:05:02 +01:00
Norbi Peti 6a90739197 Attempt to use custom cube category 2020-12-19 21:43:49 +01:00
Norbi Peti 712ece86db Add custom block registration functionality and a test 2020-12-17 20:20:46 +01:00
Norbi Peti 56a64daa18 Merge branch 'master' into customblocks
# Conflicts:
#	GamecraftModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs
2020-12-11 17:16:05 +01:00
Norbi Peti fad3b5cbf4 Fix picking block groups... 2020-11-14 22:43:45 +01:00
Norbi Peti d744aaab79 Add ability to create & move block groups & other stuff
Added a way to store block groups as blueprints
Blocks can be added/removed from block groups, although it doesn't work well atm
Added some patches to the test class in an attempt to debug an unrelated issue
Added a command to test placing a block group
Added a SelectedBlueprint property to the Player class
2020-11-13 17:02:28 +01:00
NGnius (Graham) 08138e3589 Fix build errors from beta hotfix 1 2020-11-13 17:02:27 +01:00
Norbi Peti 987fbe673a Fix initial issues and add error on patch fail
Fixed compilation and loading issues for 2020.10.27.17.13
2020-11-13 17:01:46 +01:00
Norbi Peti f295f712b6 Merge branch 'master' into customblocks
# Conflicts:
#	GamecraftModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs
2020-09-17 19:18:00 +02:00
NGnius (Graham) aae2057972 Convert relevant blocks to wireable blocks and fix wire connect during block init 2020-08-23 09:59:13 -04:00
Norbi Peti cfdc5e8c26 Fixes, block IDs, cluster & chunk health support 2020-08-22 09:24:18 -04:00
NGnius (Graham) 708dbdd81d Add wiring API and improve signal support 2020-08-03 12:45:38 -04:00
Norbi Peti 5264d98ce7 Test fixes, block event Block property
Fixed Assert.Equal()
Changed tests to reflect changes
Added Block property to the block event args
Completely removed sync things
2020-07-24 11:11:53 -04:00
Norbi Peti 89d32956d9 Automatically invoke the correct block constructor
And store delegates of dynamic methods invoking constructors
Tested with the automated tests
2020-07-24 11:11:52 -04:00
NGnius (Graham) 926d968eed Add sfx block support 2020-07-24 11:11:48 -04:00
NGnius (Graham) 60f231f939 Add standard asserts 2020-06-30 20:43:14 -04:00
NGnius (Graham) 189c3ca2a5 Document App and Test additions (+ minor tweaks) 2020-06-23 13:49:42 -04:00
NGnius (Graham) 78122ee445 Add automatic testing functionality 2020-06-17 21:04:40 -04:00
Norbi Peti 9b1e2548d1 Attempts to create custom block types
It can load certain assets (a Cube from a sample) but fails because of missing shaders
My own Cube doesn't even get that far
2020-06-14 21:40:47 +02:00
Norbi Peti 62318b0843 Update to Gamecraft 2020.06.11.18.50
Removed some inputs from FakeInput
2020-06-12 17:27:36 +02:00
Norbi Peti f62211309e Added WaitForNextFrame() and fixed block scaling
A bit hacky, but it works
2020-06-04 01:42:13 +02:00
Norbi Peti dba7c0a46f
Added 2 block events and removed BDNEException
Added an event for placing and removing blocks
Added a class to wrap event calls in a try-catch
Removed BlockDoesNotExistException
Made Block.GetSimBody() return null if block doesn't exist
2020-06-02 03:15:32 +02:00
Norbi Peti 269d30b0db Add support for connected bodies
Added center of mass
Removed delta velocities
2020-05-24 21:55:49 +02:00
Norbi Peti ab7c5805fe Add object ID block and label support 2020-05-24 19:29:02 +02:00
Norbi Peti dca6fe4c1b Fixes, added SimBody class 2020-05-23 00:06:49 +02:00
Norbi Peti 084cbb40c4 Added AsyncUtils and Block.PlaceNewAsync() 2020-05-22 03:00:33 +02:00
NGnius (Graham) e8f59e8641 Delay serializer registration and disable version check even in Debug mode to fix #5 2020-05-21 19:40:46 -04:00
NGnius (Graham) 8326d70cbf Integrate tweak and signal functionality into Blocks 2020-05-21 15:04:55 -04:00
Norbi Peti 3ff98f29bb Improve GetBlockInfo(), block colors
Made GetBlockInfo() always return a reference without needing it as a parameter
Fixed Color property
Added CustomColor property for temporarily setting any color
2020-05-20 00:08:02 +02:00
Norbi Peti 6dce87fb66 Documentation, added invalid block ID, error handling 2020-05-17 23:46:55 +02:00
Norbi Peti 1c5ce37fce Add debug interface API and improve block API
Added API for adding more information on the debug display (not object-oriented yet)
Removed the setter for block type to ensure stability
Made the block API return defaults if the block no longer exists
Added property to check if the block exists
Made a struct for the block's color property
Added missing block IDs
2020-05-17 23:46:31 +02:00
NGnius (Graham) 06b8c3664e Add Event builders 2020-05-15 17:42:04 -04:00
NGnius (Graham) 9cb6917d28 Create custom error types and error catching 2020-05-15 17:42:04 -04:00
Norbi Peti 6f8241554d Add block type and color properties 2020-05-15 17:42:04 -04:00
Norbi Peti ff57a16565 Create Block class with existing functionality
Placement, movement, rotation, removal
Block looked at (in Player class), connected blocks
2020-05-15 17:42:04 -04:00
NGnius (Graham) 1f35b2a434 Upgrade to Harmony v2.0.0 2020-05-15 17:42:04 -04:00
NGnius (Graham) 5cb27b05c0 Create CommandBuilder 2020-05-15 17:42:04 -04:00
NGnius (Graham) 07ba6f2dc4 Add game file persistence functionality 2020-04-28 21:56:34 -04:00
NGnius d1c0556b9c Update to Gamecraft 2020.04.06.14.50 2020-04-07 13:05:00 -04:00