NorbiPeti
d238c97906
Remove block info getters and setters
Regex is great
GetBlockInfo\(this, \((\w+) (\w+)\) ?=> ?\2(.+)\);
GetBlockInfo<$1>(this)$3;
SetBlockInfo\(this, \(ref (\w+) (\w+), \w+ (\w+)\) ?=> \2(.*) = \3,\s*value\);
GetBlockInfo<$1>(this)$4 = value;
3 years ago
NorbiPeti
61184145a9
Start using new extension methods, code cleanup
Removed all of the different block property getter methods
3 years ago
NorbiPeti
2d99d1d478
Generalize optional references and init data
Added extension methods to query data from ECS objects
Added base class for ECS objects
Added support for representing in-construction ECS objects with an OptionalRef<T>
3 years ago
NorbiPeti
78ee3b3bcd
Fix block type check on placement
3 years ago
NorbiPeti
aea3ef3623
Remove AsyncUtils, fix FlyCam and GetThingLookedAt()
3 years ago
NorbiPeti
62afd3b780
Some file renames that were missing
3 years ago
NorbiPeti
5172b13b7c
Update readme and version
3 years ago
NorbiPeti
c914b5b393
Renamed all references of Gamecraft to Techblox
Except those that actually refer to the game's code
3 years ago
NorbiPeti
a6f52070ee
Rename to TechbloxModdingAPI
3 years ago
NorbiPeti
807470e289
Add new block types and improve listing them
Now it prints them ordered and mostly suitable to be used in code (it only needs a couple replaces)
3 years ago
NorbiPeti
df6a2e84e1
Update to Techblox 2021.04.29.18.37
3 years ago
NorbiPeti
6e03847ab0
FlyCam additions, improve struct
Added property to get the camera from the player
Removed pointer magic
3 years ago
NorbiPeti
55b38f1678
Start working on FlyCam and create an overcomplicated struct
Just some native code that's totally unnecessary
3 years ago
NorbiPeti
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
3 years ago
NorbiPeti
6a2459b3e7
Attempts to bring console commands back (test)
3 years ago
NorbiPeti
cc4850a073
Fix fake input
3 years ago
NorbiPeti
677c8b0907
Add constructor for placing block, remove most PlaceNew args
3 years ago
NorbiPeti
1f688195af
Add support for flipped blocks and auto-wiring, other fixes
3 years ago
NorbiPeti
9a4ff858f3
Improve color API and add material API
3 years ago
NorbiPeti
124ef410c7
Attempt to bring console back and update block ID list
3 years ago
NorbiPeti
98e00de642
Fix all startup errors
3 years ago
NorbiPeti
2d41026a05
Turned the rest of the errors into TODOs
3 years ago
NorbiPeti
a6b69d94c9
Start compatibility with Techblox
Added some TODOs as well
3 years ago
NGnius (Graham)
37e3c6f718
Remove debug FMOD patches
3 years ago
NGnius (Graham)
0ef875b6b2
Document undocumented IMGUI element classes
3 years ago
NorbiPeti
d954060a5a
Add ability to change properties of existing blocks
And not storing custom block data for now
3 years ago
NorbiPeti
fdc47832f4
Store custom block IDs in save files
3 years ago
NGnius (Graham)
95574a50f8
Merge branch 'master' of https://git.exmods.org/modtainers/GamecraftModdingAPI
3 years ago
NGnius (Graham)
1c014e36ac
Add IMGUI styling and initial OOP implementation
3 years ago
NorbiPeti
879901f4b9
Add new block IDs, a property, 2 tests and fixes
3 years ago
NorbiPeti
6a90739197
Attempt to use custom cube category
3 years ago
NorbiPeti
9c5c980c0b
Merge pull request 'Add custom block support to the API and update to latest GC version' ( #6 ) from customblocks into master
3 years ago
NorbiPeti
712ece86db
Add custom block registration functionality and a test
3 years ago
NorbiPeti
a7f6a16231
Update to Gamecraft 2020.12.16.14.19 and custom block stuff
- Fixed the crash on second time start
- Tweaked more stuff about the block
Breaking changes coming from FMOD 2.0:
- Audio[int index] changed to Audio[PARAMETER_ID index]
- Audio.Parameters removed
3 years ago
NorbiPeti
4e16f251ee
Don't use the intended method to create a CubeListData
It adds it with its ID as key but the ID hasn't been set at that point
It works until the second simulation start now
3 years ago
NorbiPeti
78f0ea0162
Use the intended method to create a CubeListData
The block can be selected but not placed
3 years ago
NorbiPeti
5dfb01ef0b
Use the console block's material again - IT WORKS
It shows up in the inventory but crashes when selected
3 years ago
NorbiPeti
432d6bcf96
Use the same (physics) componentts and attempt to use custom material
3 years ago
NGnius (Graham)
be7d8ba33a
Merge branch 'master' of https://git.exmods.org/modtainers/GamecraftModdingAPI
3 years ago
NorbiPeti
56a64daa18
Merge branch 'master' into customblocks
# Conflicts:
# GamecraftModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs
3 years ago
NorbiPeti
ab1ae51ece
Update to Gamecraft 2020.11.30.16.02
3 years ago
NGnius (Graham)
404c47c7c0
Bump version to 1.8.0
4 years ago
NorbiPeti
fad3b5cbf4
Fix picking block groups...
4 years ago
NorbiPeti
1f911b1d32
Fix move/rotate during init, add blueprint properties
4 years ago
NorbiPeti
f30dcd251f
Displaying blueprint before placing, enums, ToString()s
Added support for getting the player's current building mode (build, color, config, blueprint)
Added support for getting the current game's mode (building, playing, prefab etc.)
4 years ago
NorbiPeti
680721256c
Add support for copying wires, some fixes and additions
Removing blocks from groups when they are removed from the game
Attempted to update graphics when changing blocks
Disallowing changing the block group after creation, now that we can copy blocks
4 years ago
NorbiPeti
64b42830a3
Blueprint fixes, bump version, add block copy support
Fixed getting the selected blueprint
Fixed block groups not being assigned to first block
4 years ago
NorbiPeti
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
4 years ago
NorbiPeti
3dd61b5e4f
Replace ToManagedArray() and fix getting blocks from group
4 years ago
NorbiPeti
1c4e2a0db2
Add support for setting and placing blueprints
4 years ago