NorbiPeti
94c0c1370b
Removed 2 non-OOP classes and fixed fly cam teleport
Remvoed Hotbar and GameClient since their functions are also implemented in OOP classes
Added static methods to add/remove persistent debug info
Made some patches and other things internal
Added support for FlyCams in SetLocation
3 years ago
NorbiPeti
b8fd14d934
Move speed settings to Player and make it work with players
Probably
3 years ago
NorbiPeti
5bfd0b7f10
Integrate FlyCam class into Player
Using QueryEntityOptional directly with the player properties
Character structs are camera structs in build mode
The FlyCam rotation is not updated in build mode, only the camera is
3 years ago
NorbiPeti
220eb02a19
Return descriptions with command names, selected block/color fix
3 years ago
NorbiPeti
e8515ef42b
Fix events not firing and event exception handling
Copying to Plugins folder on build
Registering deterministic game engines automatically
Each event handler is wrapped so if one fails it will still trigger the rest
3 years ago
NorbiPeti
f5e3010e48
Removed all obsolete classes and some commented out code
3 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
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