Commit Graph

45 Commits (668fedfa528f9971577f7bf19041f948db512d3d)

Author SHA1 Message Date
Marc Gilleron a5e429de6f Moved some Vector3i function specializations to math:: namespace 2022-04-29 23:25:37 +01:00
Marc Gilleron 5965bcf98f FileLocker doesn't depend on Godot 2022-04-19 00:58:29 +01:00
Marc Gilleron 4e3d4d4ed8 Threading classes wrappers 2022-04-19 00:32:37 +01:00
Marc Gilleron 8aec9cf777 VoxelBufferInternal doesnt depend on Image 2022-04-16 16:07:45 +01:00
Marc Gilleron 75d8343700 Fix ambiguous assignment 2022-04-16 00:39:13 +01:00
Marc Gilleron a5c3f8b824 Fix code to work with Godot's new FileAccess RefCounted object 2022-04-15 23:13:31 +01:00
Marc Gilleron 87d98e9162 Engine-agnostic error macros 2022-04-11 02:10:44 +01:00
Marc Gilleron 219c7bfda3 Changed prefix of profiling macros 2022-04-09 15:33:08 +01:00
Marc Gilleron ab5d3a22d3 Abstract logging for verbose print 2022-04-09 15:00:34 +01:00
Marc Gilleron 5519054c01 Unify macro prefixes 2022-04-06 23:26:54 +01:00
Marc Gilleron 090d3485e5 Use unique pointers in ExpressionParser 2022-04-06 22:00:32 +01:00
Marc Gilleron 83dfd271a6 Fixed inverted variables in debug message 2022-03-30 23:17:48 +01:00
Marc Gilleron 55deafd0ec Removed pedantic assertion.
It can happen if the file contains just one block, and if it gets
written over a second time with data spanning more sectors.
2022-02-28 22:17:10 +00:00
Marc Gilleron 0fd25ce52a Added missing position checks to RegionFile 2022-02-28 22:15:59 +00:00
Marc Gilleron d9c2d227ac Don't use `sizeof(int)` for portability 2022-02-26 22:53:19 +00:00
Marc Gilleron b3faec2bef Removed voxel_block_request.h, use specialized structs 2022-02-12 23:37:02 +00:00
Marc Gilleron 98eed9adba Remove some usages of Vector<T>. Also fixed some indexing issues in streams.
Reason: in a future port to GDExtension, that class won't be available.
This may also apply to Map and HashMap.

Note: the issues in streams were not hit so far because they are in
multi-block load/save functions. We've been loading and saving blocks
one by one at the moment.
2022-02-06 21:26:48 +00:00
Marc Gilleron f1694b08ec Remove a few unnecessary usages of the wrapper version of VoxelBuffer 2022-02-03 00:02:10 +00:00
Marc Gilleron f838adf26a Renamed emerge/imerge_block => load_voxel_block/save_voxel_block 2022-01-16 04:21:02 +00:00
Marc Gilleron 3045e9a489 BlockSerializer is no longer a class 2022-01-16 04:01:22 +00:00
Marc Gilleron b67ca3d903 Namespaced every registered class 2022-01-09 22:16:44 +00:00
Marc Gilleron 774adfca3c VoxelServer no longer inherits Object.
The Godot-facing singleton is now a different class in gd:: namespace.
Moved the updater to its own file.
2022-01-09 04:53:33 +00:00
Marc Gilleron 9c653b8a9f Namespaced FixedArray 2022-01-09 02:53:21 +00:00
Marc Gilleron 3101d7f092 Namespaced file_utils 2022-01-09 02:21:49 +00:00
Marc Gilleron 38baeae2d9 Namespaced VoxelBufferInternal 2022-01-08 22:49:59 +00:00
Marc Gilleron e20684ce69 Namespaced math funcs 2022-01-03 23:14:18 +00:00
Marc Gilleron 2fdf0bf6df Namespaced VoxelBlockSerializerInternal 2022-01-03 02:52:06 +00:00
Marc Gilleron 404d2cd911 Namespace VoxelRegionFile 2022-01-03 02:17:41 +00:00
Marc Gilleron e2d3cb2c57 Namespace insert_bytes 2022-01-03 01:58:35 +00:00
Marc Gilleron 4d2fe30661 Use Time singleton 2021-12-29 17:06:24 +00:00
Marc Gilleron 922f361cb0 Made it compile in Godot 4
- Made a bunch of changes to comply with Godot 4 API
- Use Godot's Vector3i and add the missing stuff with helper functions
- Transvoxel uses custom attributes API, the old way would not work
- Wrap MeshOptimizer in a unique namespace (see build script why)
- Added clang-format file for the module as some rules now differ
- Prevent thirdparty code and lookup tables from being clang-formatted
- Very likely full of runtime bugs that need fixing
2021-12-13 21:38:10 +00:00
Marc Gilleron 00c228851d Fix signedness 2021-09-26 16:36:08 +01:00
Marc Gilleron 30db0c5193 Split VoxelBuffer in two, script-facing wrapper and internal.
The internal is the main use within the voxel engine,
and does not inherit Reference.
2021-09-26 04:14:50 +01:00
Marc Gilleron 967dcbd04c Don't save meta file on loading, not sure why that was done before 2021-08-01 15:42:24 +01:00
Marc Gilleron 6ea6ce9581 Initialize to the same defaults as in VoxelBuffer 2021-08-01 15:41:23 +01:00
Marc Gilleron 059f490669 Renamed udiv => floordiv 2021-07-31 15:15:43 +01:00
Marc Gilleron da8dc36590 Return all channels supported with region files and SQLite
This fixes a node configuration warning,
because before these were always returning no channels at all.
2021-06-14 18:51:19 +01:00
Marc Gilleron 84e00ccbaf Another size_t conversion 2021-06-13 17:15:11 +01:00
Marc Gilleron 6374c9831c Convert size_t to comply with Variant conversion problem on some compilers 2021-06-13 17:03:45 +01:00
Marc Gilleron 73af17e65f Avoid using size_t to comply with Variant conversion ambiguity that occurs on some compilers 2021-06-12 17:13:46 +01:00
Marc Gilleron 1ee5bcb80d Renamed Rect3i -> Box3i 2021-05-31 17:12:04 +01:00
Marc Gilleron f1e2ea9ad4 Update to latest Godot's threading primitives 2021-02-19 01:30:22 +00:00
Marc Gilleron d1207bdd96 Reorganized some utility files 2021-02-17 20:34:35 +00:00
Marc Gilleron b66b9a01a9 Removed VoxelStreamFile 2021-02-01 22:25:25 +00:00
Marc Gilleron 4353939eb4 Move region stuff to a folder 2021-01-31 16:51:42 +00:00