NorbiPeti
dfe1bfb504
Begin updating to Techblox 2022.04.28.14.02
Updated project generator script to always order assemblies (it didn't do that for me on Linux) and to fix minor issues
2 years ago
NorbiPeti
f9aa6ce2bb
Re-add object ID class, add some wheel rig properties, remove old game assembly refernces
2 years ago
NorbiPeti
c0ef8f1fae
Fix support for accessing properties using reflection
The test still crashes the game
2 years ago
NorbiPeti
c4a9125ed3
Update to Techblox 2022.03.17.17.24
2 years ago
NorbiPeti
c6dae688fe
Update to Techblox 2022.02.17.10.32
2 years ago
NorbiPeti
0ec47cd38b
Add method to get ghost block
2 years ago
NorbiPeti
ddaa933e7d
Add option to delay entity change publish and remove reflection stuff
Neither of them work actually
Added some delay between tests
2 years ago
NorbiPeti
5fea7dc3b3
Add support for generating block classes that use reflection to access internal components
Added Engine properties again
2 years ago
NorbiPeti
4684b33c69
Fix tests, getting machine blocks, block labels and visuals
- Checking the material property again, it seems to work now
- Fixed the Seat events not triggering during tests (the player in build and in sim is different)
- Fixed Game.GetAllBlocksInGame() returning environment blocks (since a Game refers to a machine save)
- Fixed the Block.Label property
- Fixed the block visuals not being updated after applying changes
2 years ago
NorbiPeti
d27bcee8d5
Update to Techblox 2022.01.25.15.52
- Fixed compilation errors
- Fixed patching errors and added missing anti-cheat patch
- Added check to verify that the init data has been removed from blocks once they are placed in game
- Removed block place event deduplication as it seems to be not needed anymore
- Fixed async tests not properly running
- Added Player.State
- Attempted to fix seat entering/leaving (we can only send inputs in client code)
- Fixed the weak dictionary ContainsKey returning true even if the item is no longer there
2 years ago
NorbiPeti
5c1fe34f46
Bump version and restore displayed block fix attempt
It doesn't work but anyway
Also remove parameter that allowed placing blocks in sim
2 years ago
NorbiPeti
e3a7961be4
Made the Game.Enter event only fire once loading finishes and fixed player building mode
Also attempted to fix material changing and updating the rendered block
2 years ago
NorbiPeti
52ccbe4dad
Fix tests and add new materials
2 years ago
NorbiPeti
1cbe252727
Move block engines into their own namespace
3 years ago
NorbiPeti
b3f7dcd36d
Add start of Engine class, removed nonexistent blocks
Not all engine properties are added (yet)
The old block types can be brought back when/if they come back, potentially with different properties
3 years ago
NorbiPeti
e9df67f462
Use Block.New everywhere, testing *every block property*
Fixed prefab update for nonexistent blocks
Removed Type from block placed/removed event args
Added test to check the block ID enum (whether it has any extra or missing IDs)
Added test to place every block on the ID enum
Added test to set and verify each property of each block type (type-specific properties are also set when they can be through the API)
Added support for enumerator test methods with exception handling
3 years ago
NorbiPeti
70b322583a
Fix setting the material of a block
Also fixed ID of wood material
3 years ago
NorbiPeti
858a5c9b5c
Fix remaining errors, add support for managed entity DB
3 years ago
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
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
df6a2e84e1
Update to Techblox 2021.04.29.18.37
3 years ago
NorbiPeti
1f688195af
Add support for flipped blocks and auto-wiring, other fixes
3 years ago
NorbiPeti
a6b69d94c9
Start compatibility with Techblox
Added some TODOs as well
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
ab1ae51ece
Update to Gamecraft 2020.11.30.16.02
3 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
3 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
3 years ago
NorbiPeti
3dd61b5e4f
Replace ToManagedArray() and fix getting blocks from group
3 years ago
NGnius (Graham)
08138e3589
Fix build errors from beta hotfix 1
3 years ago
NorbiPeti
987fbe673a
Fix initial issues and add error on patch fail
Fixed compilation and loading issues for 2020.10.27.17.13
3 years ago
NorbiPeti
f1376f5df6
Replace ToManagedArray() and fix getting blocks from group
3 years ago
NGnius (Graham)
1cb663b4d1
Fix build errors from beta hotfix 1
3 years ago
NorbiPeti
0bd348bd47
Fix initial issues and add error on patch fail
Fixed compilation and loading issues for 2020.10.27.17.13
3 years ago
NorbiPeti
abbb83da26
Chunk and cluster fixes and improvements & bump version
Added Cluster.GetSimBodies() and SimBody.GetBlocks()
Fixed some issues with IDs and bad handling of them
3 years ago
NorbiPeti
c9e71d84b4
Add support for getting the RGB of block colors
Only works if the constructors are used
3 years ago
NorbiPeti
ee6a0e3af6
Add support for getting the RGB of block colors
Only works if the constructors are used
3 years ago
NorbiPeti
cfdc5e8c26
Fixes, block IDs, cluster & chunk health support
3 years ago
NGnius (Graham)
fd97194903
Fix build issues for latest Gamecraft preview version
3 years ago
NorbiPeti
2172364d26
Fixes, block IDs, cluster & chunk health support
3 years ago
NGnius (Graham)
50ebf4f0a6
Fix build issues for latest Gamecraft preview version
3 years ago
NorbiPeti
15485481a2
Add some info and prev. value for setters
3 years ago
NorbiPeti
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
3 years ago
NorbiPeti
7336fe8353
Add support for initializing blocks with properties
Newly created blocks use the initializer to set properties, allowing the user to set per-block properties
3 years ago
NorbiPeti
3f2139d592
Add some info and prev. value for setters
3 years ago
NorbiPeti
cc4ed3e174
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
3 years ago
NorbiPeti
3592c6f464
Add support for initializing blocks with properties
Newly created blocks use the initializer to set properties, allowing the user to set per-block properties
3 years ago
NorbiPeti
aa0aefd41b
Find block when group is unknown
3 years ago