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
4f0645492c
Fix block color and group
3 years ago
NorbiPeti
58d703f502
Fix block tests and add test command to toggle time mode
3 years ago
NGnius
db08bf1ac0
Fix docs (hopefully)
3 years ago
NorbiPeti
dd2680abd5
Set the grid scale as well when changing the scale
3 years ago
NorbiPeti
4807c12387
Fix placing blocks
Most of the removed initialitzers are actually important
Also, the prefab ID was not calculated correctly
Also, the category is 1, not sure why but it is
3 years ago
NorbiPeti
3432a1ae33
Return block objects based on the group, not a type param
Replaced typeToGroup with GroupToConstructor
The block object's type is determined by the exclusive group instead of a type parameter
Removed the Specialise() method, the API should always return specialised objects
This fixes the not supported exception but not the game crash that follows
3 years ago
NorbiPeti
7a53e1d32f
Fix command registration
3 years ago
NorbiPeti
aa12b848d0
Merge branch 'feature-ecs_object_base'
3 years ago
NorbiPeti
b6b9a29a3c
Convert more things to use EcsObjectBase
Though the major benefit is only for blocks right now (using initializers)
3 years ago
NorbiPeti
6fedf90380
Remove struct layout stuff
It broke everything using the type
3 years ago
NorbiPeti
3eef859095
Update gen_csproj script and references
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
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
4 years ago
NGnius (Graham)
0ef875b6b2
Document undocumented IMGUI element classes
4 years ago
NorbiPeti
d954060a5a
Add ability to change properties of existing blocks
And not storing custom block data for now
4 years ago
NorbiPeti
fdc47832f4
Store custom block IDs in save files
4 years ago
NGnius (Graham)
95574a50f8
Merge branch 'master' of https://git.exmods.org/modtainers/GamecraftModdingAPI
4 years ago
NGnius (Graham)
1c014e36ac
Add IMGUI styling and initial OOP implementation
4 years ago
NorbiPeti
879901f4b9
Add new block IDs, a property, 2 tests and fixes
4 years ago
NorbiPeti
6a90739197
Attempt to use custom cube category
4 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
4 years ago
NorbiPeti
712ece86db
Add custom block registration functionality and a test
4 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
4 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
4 years ago
NorbiPeti
78f0ea0162
Use the intended method to create a CubeListData
The block can be selected but not placed
4 years ago