155 Commits

Author SHA1 Message Date
Stefan Partheymüller
94f38a3d89 make source files and build file compatible with current zig compiler 0.11.0-dev.1580+a5b34a61a 2023-02-08 14:34:38 +01:00
Stefan Partheymüller
e0eb68dd5b change Iterator implementation in MultiView struct to use already existing ReverseSliceIterator 2023-02-08 11:41:48 +01:00
Stefan Partheymüller
701fbfb4db invoke singletons() function to satisfy compiler 2023-02-08 11:40:42 +01:00
Stefan Partheymüller
b1b8321fa4 change comptime access to typeInfo of load function to satisfy compiler / use function pointer in order to make @field() work 2023-02-08 11:40:19 +01:00
Stefan Partheymüller
386113ac5f copy and fix function pointer syntax in function std.sort.insertionSort to avoid compliation error 2023-02-08 11:38:18 +01:00
Stefan Partheymüller
42b2a57d1c fix invokation of sort function 2023-02-08 11:36:23 +01:00
Stefan Partheymüller
9bbff920bb exclude generated docs directory from repo 2023-02-08 11:35:54 +01:00
Stefan Partheymüller
6f0eacc8ca add name for test case 2023-02-08 11:35:33 +01:00
Stefan Partheymüller
4196c9186c fix some compilation errors caused by language changes in zig v0.10.0 2023-02-07 15:47:12 +01:00
prime31
c047390426 Merge pull request #26 from JustinRyanH/master
Fix addPackage for zig 0.9.0 and master 0b22
2022-02-15 20:44:51 -08:00
Justin Ryan Hurst
e3e039ba82 fix: Fix add package for zig 0.9.0 and master 0b22 2022-02-15 21:42:36 -06:00
prime31
d3aa1efe38 Merge pull request #25 from JacobHin2/patch-1
Generate documentation from doc comments.
2022-01-16 20:55:54 -08:00
Jacob
b630099aca Update build.zig 2022-01-16 23:55:13 +00:00
Jacob Hinchliffe
1836e941fd Generate documentation from doc comments. 2022-01-16 22:10:18 +00:00
prime31
9bf6b4af03 Merge pull request #24 from vvcarvalho/rename-singleton-field
rename singletons field, return a *TypeStore instead of TypeStore on singletons()
2022-01-06 10:17:42 -08:00
Victor carvalho
a294babecc mod(registry.zig): rename singletons field, return pointer *TypeStore.
Renaming the field `singletons` to `type_store` fixes the following
error in Zig master (0.10.0-dev.193+1d55e4cae):

`error: type '.ecs.type_store.TypeStore' not a function`

Returning a pointer makes the API a bit more ergonomic to consume,
allowing multiple calls to add and get to the singletons. For example:

```zig
var singletons = registry.singletons();
singletons.add(State.init(allocator));
var state = singletons.get(State);
```
2022-01-06 16:21:08 +00:00
prime31
6852f38a83 Update README.md 2021-12-19 19:27:17 -08:00
Mike
e589bae3b0 latest zig support 2021-12-18 13:36:06 -08:00
prime31
a7d224247b Merge pull request #23 from rudedogg/master
Update to build on latest master
2021-12-15 12:21:51 -08:00
Austin Rude
253c2ca87a Use allocator.dupe() instead of std.mem.dupe() 2021-12-15 12:10:17 -07:00
Austin Rude
0fe6d1646f Use std.debug.print instead of std.debug.warn 2021-12-15 12:06:05 -07:00
Austin Rude
a95c85f5c7 Update for allocgate 2021-12-15 11:55:58 -07:00
Austin Rude
157a554e6d Update build.zig to use the std.target.Arch enum 2021-12-15 11:45:24 -07:00
prime31
a14bfe64c3 Merge pull request #22 from Sashiri/builtin_migration
Migrate from std.builtin to @import("builtin")
2021-10-14 17:42:44 -07:00
Sashiri
5ba2773f7a Migrate from std.builtin to @import("builtin") 2021-10-15 00:14:16 +02:00
prime31
96ffd50ea6 Merge pull request #21 from Sashiri/entity_traits_definition
Update EntityTraitsDefinition
2021-10-14 14:40:04 -07:00
prime31
c93429bf3d Merge pull request #20 from Sashiri/undefined_type_fix
Fix process pause signature
2021-10-14 14:38:43 -07:00
Sashiri
aa0dd139b2 Update EntityTraitsDefinition 2021-10-14 23:03:44 +02:00
Sashiri
e4dc1dc9ca Fix process pause signature 2021-10-14 22:59:22 +02:00
prime31
2bc293066a Merge pull request #19 from locriacyber/master
Fix compile errors for zig 0.9
2021-10-06 08:17:11 -07:00
Locria Cyber
605693b8c2 Fix syntax errors 2021-10-06 12:23:57 +08:00
prime31
434aa523a3 Create LICENSE 2021-07-27 21:30:23 -07:00
prime31
e079ac5808 Merge pull request #17 from RUSshy/fix_memleak_2
Added missing entity traits changes
2021-07-17 10:04:45 -07:00
RUSshy
2161bf61b4 Added missing entity traits changes 2021-07-17 18:47:23 +02:00
prime31
0d89c0e255 Merge pull request #16 from RUSshy/master
Fix memory leak #15
2021-07-17 09:40:05 -07:00
RUSshy
4a480f84d2 Merge pull request #1 from RUSshy/fix_memleak
Fix memory leak
2021-07-17 14:10:54 +02:00
RUSshy
15d0e6d00d Update registry.zig 2021-07-17 14:08:19 +02:00
RUSshy
22b4fe2e02 Update handles.zig 2021-07-17 14:07:33 +02:00
RUSshy
e488cc384f Update sparse_set.zig 2021-07-17 14:05:30 +02:00
RUSshy
b900dfde2d Update handles.zig 2021-07-17 14:04:10 +02:00
prime31
7fd238b638 Merge pull request #10 from leroycep/update-to-0.8.0
Update to Zig 0.8.0
2021-06-29 23:03:46 -07:00
LeRoyce Pearson
33a5344b10 Remove unused variables and redudant comptimes
Latest version tested: 0.9.0-dev.339+81bf05bf6
2021-06-29 22:43:23 -06:00
LeRoyce Pearson
44192a1398 Update tests to return errors 2021-06-29 22:26:23 -06:00
prime31
9b467c6ae8 Merge pull request #12 from Nomy1/fix-util-error
Resolve use of undeclared identifier 'slice' error
2021-06-25 07:59:00 -07:00
Jonathan Bro
39af857bdc Resolve use of undeclared identifier 'slice' error 2021-06-25 23:41:06 +09:00
prime31
39219bafd9 Merge pull request #11 from nektro/patch-1
add support for Zigmod package manager
2021-06-19 22:16:31 -07:00
Meghan
04fae5d871 Create zig.mod 2021-06-19 17:18:44 -07:00
LeRoyce Pearson
514a893918 Update Registry.removeAll to 0.8.0 HashMap API 2021-06-16 00:56:01 -06:00
LeRoyce Pearson
6df575ee04 Update some uses of HashMap to match 0.8.0 changes 2021-06-13 20:07:25 -06:00
prime31
9b8e051017 Merge pull request #9 from leroycep/master
Update to zig 0.8.0-dev.1721
2021-04-12 08:09:51 -07:00