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 bundle;
28mod component;
29mod components;
30mod entity;
31mod page;
32mod query;
33mod registry;
34mod world;
35
36pub use bundle::ComponentBundle;
37pub use component::Component;
38pub use components::{Children, GlobalTransform, Parent, Transform};
39pub use entity::{EntityId, EntityMetadata};
40pub use page::{ComponentPage, PageIndex};
41pub use query::{Query, Without, WorldQuery};
42pub use registry::SemanticDomain;
43pub use world::World;
44
45#[cfg(test)]
46mod tests;