NorbiPeti
a6f52070ee
Rename to TechbloxModdingAPI
3 years ago
NorbiPeti
df6a2e84e1
Update to Techblox 2021.04.29.18.37
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
a6b69d94c9
Start compatibility with Techblox
Added some TODOs as well
3 years ago
NorbiPeti
879901f4b9
Add new block IDs, a property, 2 tests and fixes
3 years ago
NorbiPeti
712ece86db
Add custom block registration functionality and a test
3 years ago
NorbiPeti
ab1ae51ece
Update to Gamecraft 2020.11.30.16.02
3 years ago
NorbiPeti
fad3b5cbf4
Fix picking block groups...
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
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
3 years ago
NorbiPeti
4f8feaa24b
Add new blocks and some blueprint/block group support
3 years ago
NGnius (Graham)
08138e3589
Fix build errors from beta hotfix 1
3 years ago
NGnius (Graham)
c6a1ea35cc
Add damped spring
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
64aace3bde
Remove ScalingEngine.Setup() and add object ID to dict
3 years ago
NorbiPeti
c9e71d84b4
Add support for getting the RGB of block colors
Only works if the constructors are used
3 years ago
NGnius (Graham)
4dfa7b0f4e
Implement SFX block API and bump version
3 years ago
NorbiPeti
f2ce037564
Fix TextBlock.Text=null, most new blocks and others
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
NGnius (Graham)
708dbdd81d
Add wiring API and improve signal support
3 years ago
NorbiPeti
057a030c20
Update music block and attempt to fix test
3 years ago
NorbiPeti
15485481a2
Add some info and prev. value for setters
3 years ago
NorbiPeti
b53dff5d12
Remove initializer data once the block is placed
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
5e335e78ff
Implement init for position and rotation
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
89d32956d9
Automatically invoke the correct block constructor
And store delegates of dynamic methods invoking constructors
Tested with the automated tests
3 years ago
NorbiPeti
aa0aefd41b
Find block when group is unknown
3 years ago
NorbiPeti
f403feb298
Update to Gamecraft 2020.06.17.08.41 (preview)
Removed BlockIdentifiers.OWNED_BLOCKS as the original got replaced with an array
Added the correct group for each supported functional block
Removed EntityFactory property from IEntitySerializer as it is provided on deserialization
3 years ago
NorbiPeti
cae626197f
Implement Equals for the OOPs & fix Player properties
Fixed setting player properties
Changed player rotation to float3
Added constructor for BlockColor with an index param
Improved Player.Exists() ~~hopefully~~
4 years ago
NorbiPeti
f62211309e
Added WaitForNextFrame() and fixed block scaling
A bit hacky, but it works
4 years ago
NorbiPeti
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
4 years ago
NorbiPeti
0b8491cecf
Move Sync() to properties and improve Block doc
4 years ago
NorbiPeti
ab7c5805fe
Add object ID block and label support
4 years ago
NorbiPeti
dca6fe4c1b
Fixes, added SimBody class
4 years ago
NorbiPeti
084cbb40c4
Added AsyncUtils and Block.PlaceNewAsync()
4 years ago
NGnius (Graham)
4e08acf44c
Reduce potentially unnecessary calls to Sync() by always forcing Sync() for new blocks
4 years ago
NGnius (Graham)
8326d70cbf
Integrate tweak and signal functionality into Blocks
4 years ago
NGnius (Graham)
fb841b6542
Add Timer and spawn point block properties
4 years ago
NorbiPeti
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
4 years ago
NGnius (Graham)
97de5e606b
Add first block children ConsoleBlock and TextBlock, I hope they're not bullied at school for those names
4 years ago
NorbiPeti
6dce87fb66
Documentation, added invalid block ID, error handling
4 years ago
NorbiPeti
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
4 years ago
NorbiPeti
6f8241554d
Add block type and color properties
4 years ago
NorbiPeti
ff57a16565
Create Block class with existing functionality
Placement, movement, rotation, removal
Block looked at (in Player class), connected blocks
4 years ago