khora_data/ecs/
mod.rs

1// Copyright 2025 eraflo
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Implements Khora's custom **Chunked Relational Page ECS (CRPECS)**.
16//!
17//! This module contains the complete implementation of the engine's Entity-Component-System,
18//! which is the heart of the **[D]ata** layer in the CLAD architecture.
19//!
20//! The CRPECS is designed from the ground up to enable the **Adaptive Game Data Flows (AGDF)**
21//! concept from the SAA philosophy. Its key architectural feature is the dissociation
22//! of an entity's identity from the physical storage of its component data, which allows
23//! for extremely fast structural changes (adding/removing components).
24//!
25//! The primary entry point for interacting with the ECS is the [`World`] struct.
26
27mod bitset;
28mod bundle;
29mod component;
30mod components;
31mod entity;
32mod entity_store;
33mod page;
34mod planner;
35mod query;
36mod query_plan;
37mod registry;
38mod serialization;
39mod storage;
40mod world;
41
42pub use bitset::DomainBitset;
43pub use bundle::ComponentBundle;
44pub use component::Component;
45pub use components::*;
46pub use entity::*;
47pub use page::*;
48pub use query::*;
49pub use query_plan::{QueryMode, QueryPlan};
50pub use registry::*;
51pub use world::*;
52
53#[cfg(test)]
54mod tests;