11 unstable releases (3 breaking)
|new 0.6.0||Aug 28, 2023|
|0.5.2||Feb 13, 2023|
|0.5.1||Jan 28, 2023|
|0.4.2||Jan 23, 2023|
|0.3.2||Oct 26, 2022|
#1157 in Development tools
137 downloads per month
Used in 6 crates
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.