18 releases

0.6.6 Feb 28, 2024
0.6.5 Jan 9, 2024
0.6.4 Dec 5, 2023
0.6.3 Nov 2, 2023
0.4.0 Nov 26, 2022

#1944 in Development tools

Download history 1/week @ 2024-02-09 76/week @ 2024-02-16 151/week @ 2024-02-23 55/week @ 2024-03-01 40/week @ 2024-03-08 18/week @ 2024-03-15 8/week @ 2024-03-22 33/week @ 2024-03-29 4/week @ 2024-04-05 281/week @ 2024-04-26 9/week @ 2024-05-03 4/week @ 2024-05-17

294 downloads per month
Used in 6 crates

GPL-3.0 license

85KB
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–12MB
~126K SLoC