24 releases

new 0.6.13 Dec 30, 2024
0.6.12 Nov 30, 2024
0.6.11 Sep 9, 2024
0.6.9 Jul 29, 2024
0.4.0 Nov 26, 2022

#1711 in Development tools

Download history 142/week @ 2024-09-09 50/week @ 2024-09-16 30/week @ 2024-09-23 99/week @ 2024-09-30 8/week @ 2024-10-07 3/week @ 2024-10-14 6/week @ 2024-10-21 10/week @ 2024-11-04 12/week @ 2024-11-18 139/week @ 2024-11-25 57/week @ 2024-12-02 81/week @ 2024-12-09 8/week @ 2024-12-16

288 downloads per month
Used in 6 crates

GPL-3.0 license

91KB
2K SLoC

Xvc Entity-Component System is the basic storage mechanism behind Xvc. It defines an integer-based entity type ([XvcEntity]), a trait to be implemented by components (structs) and stores to save, load and operate on these components.

It's an alternative to an object-oriented design where the relations between classes should be known beforehand. It allows to implement new components for entities at any point in the evolution of software. These components can have 1-1, 1-N or M-N relationships.

In a sense components are analogous to database tables, and entities are primary keys. [XvcStore] can be considered akin to a table, and [R11Store], [R1NStore] and [RMNStore] can be considered as relations.

Dependencies

~3–10MB
~115K SLoC