theseed Engine — Design Documentation Overview
English | 中文
theseed's design origin is the server-side system areas and toolchain philosophy of BigWorld 14.4.1. KBEngine is one of the important reference implementations, mainly used to validate how the runtime loop can be implemented lightweight. The current goal is to integrate BigWorld's origin design with the KBEngine reference implementation to form an evolvable server engine for modern MMOs. The current basis does not count client rendering and WorldEditor UI details among the must-do items.
Layering Principles
This round of restructuring is no longer read by the old flat feature directory, but by the engine's system areas:
0-foundation
Engine positioning, baseline, audit scope, layering principles
1-runtime-model
tick, entity, timer, runtime memory
2-replication-and-space
AOI, Space, Ghost, Witness, Runtime Data Plane, migration, topology
3-cluster-and-availability
fault tolerance, BackupHash, lifecycle, load feedback
4-data-and-ops
data definition, primary persistence, local archive, data ops toolchain, server merge
5-access-and-control-plane
gateway, login, message bus, ops control plane, telemetry/debug
6-world-and-game-framework
physics, navigation, controllers, world streaming, lifecycle
7-scripting-and-client
script security, hot update, script debugging, client SDK
8-reference
source tracing and coverage judgmentFor the audit scope and the reasons for the restructuring, see:
Document Index
0-foundation
| Document | Contents |
|---|---|
| 01-mvp-architecture-baseline | MVP scope, runtime boundaries, synchronization timing, migration and hot update constraints |
| 02-audit-scope-and-layering | Audit scope, BigWorld/KBEngine comparison, and new layering principles |
| 03-repository-and-build-layout | monorepo directories, vcpkg, C++23 toolchain boundaries |
| 04-modern-mmo-engine-positioning | BigWorld origin, KBEngine reference, theseed's modernization integration basis |
1-runtime-model
| Document | Contents |
|---|---|
| 01-tick-model | Single-threaded tick, phase timing, main loop constraints |
| 02-entity-system | Base/Cell dual-body model, PropertyBlock, lifecycle, object pool |
| 03-timer-and-memory | TimerWheel, object pool, runtime memory management |
| 04-io-runtime-and-backend-abstraction | IORuntime, Reactor/Completion backends, cross-platform I/O abstraction |
2-replication-and-space
| Document | Contents |
|---|---|
| 01-space-topology-and-aoi | Space, AOI, topology phase model and configuration boundaries |
| 02-ghost-and-witness | Witness view synchronization, Ghost real/ghost authority model |
| 03-runtime-communication-and-transport | EntityCall, Runtime Data Plane, transport semantics and reliability boundaries |
| 04-property-replication | Property replication path, DirtyMask, sync build and flush |
| 05-entity-migration | Migration scenarios, in-window message handling, state constraints |
| 06-aoi-update-and-load-bounds | AoI update priority curve, Load Bounds, Range Update |
| 07-bsp-rebalance-and-offload | BSP grow/shrink, chunk-aware balance, offload |
3-cluster-and-availability
| Document | Contents |
|---|---|
| 01-fault-tolerance | Three-tier fault tolerance, recovery layering, MVP boundaries |
| 02-backup-hash-and-ha | BackupHash, recovery chain, hot-standby switchover authority |
| 03-cluster-lifecycle | Service Fragment, Drain, Retire, Controlled Shutdown |
| 04-runtime-profiler-and-load-feedback | EntityProfiler, load feedback, overload determination, scheduling linkage |
4-data-and-ops
| Document | Contents |
|---|---|
| 01-data-definition | XML + XSD definition specification, storage strategy, column type mapping |
| 02-persistence | Primary persistence, query interface split, online storage main path |
| 03-local-archive-and-secondary-db | LocalArchiveStore, SecondaryDB, local archive staging layer |
| 04-data-ops-toolchain | Snapshot, Transfer, Consolidate, Sync, Repair |
| 05-server-merge | Server merge scope, conflict repair, CLI tools and boundaries |
5-access-and-control-plane
| Document | Contents |
|---|---|
| 01-gateway-and-login | Access layer, login service, Challenge and login ops boundaries |
| 02-message-bus-and-cross-realm | Control plane messages, cross-Realm async and bridging |
| 03-redis-async-and-config | Redis, async task framework, unified configuration |
| 04-ops-control-plane | Distributed observation, online commands, config hot change, audit |
| 05-telemetry-and-debug | Telemetry, Debug, Diagnostics and OTel boundaries |
| 06-machine-agent-and-host-ops | machine / host ops / node summary / resource reporting |
6-world-and-game-framework
| Document | Contents |
|---|---|
| 01-physics | Server-side physics queries, IPhysicsQuery interface |
| 02-navigation | INavigationSystem, NavMesh and Space binding |
| 03-controllers | Behavior controllers, ControllerManager, script API |
| 04-world-streaming-and-compiled-space | Chunk, Geometry Mapping, Compiled Space boundaries |
| 05-built-in-entities | Built-in game objects and framework boundaries |
| 06-lifecycle-and-script-binding | Lifecycle hooks, script binding architecture, def-driven automatic binding |
7-scripting-and-client
| Document | Contents |
|---|---|
| 01-script-security | Script layer security, source protection, runtime resilience |
| 02-hot-update | L1-L4 tiered hot update, verification process, rolling update |
| 03-script-debug | Script breakpoints, execution stack, Entity context, yield/resume, version consistency |
| 04-client-sdk | Code generation, Unity/UE5/Cocos SDK, property interpolation |
8-reference
| Document | Contents |
|---|---|
| source-attribution | Source tracing, coverage judgment, and BigWorld/KBEngine comparison |
Reading Suggestions
Runtime loop
0-foundation/04-modern-mmo-engine-positioning → 0-foundation/01-mvp-architecture-baseline → 1-runtime-model/01-tick-model → 1-runtime-model/02-entity-system → 2-replication-and-space/01-space-topology-and-aoi → 2-replication-and-space/03-runtime-communication-and-transport
BigWorld origin system areas
0-foundation/04-modern-mmo-engine-positioning → 3-cluster-and-availability/02-backup-hash-and-ha → 4-data-and-ops/03-local-archive-and-secondary-db → 4-data-and-ops/04-data-ops-toolchain → 5-access-and-control-plane/01-gateway-and-login → 5-access-and-control-plane/04-ops-control-plane
Business framework
6-world-and-game-framework/06-lifecycle-and-script-binding → 6-world-and-game-framework/03-controllers → 4-data-and-ops/01-data-definition → 7-scripting-and-client/01-script-security → 7-scripting-and-client/03-script-debug
Diagnostics and ops
5-access-and-control-plane/05-telemetry-and-debug → 3-cluster-and-availability/04-runtime-profiler-and-load-feedback → 7-scripting-and-client/02-hot-update → 7-scripting-and-client/03-script-debug → 3-cluster-and-availability/03-cluster-lifecycle
Repository and toolchain
0-foundation/03-repository-and-build-layout → 0-foundation/01-mvp-architecture-baseline → 1-runtime-model/04-io-runtime-and-backend-abstraction
Host ops
5-access-and-control-plane/06-machine-agent-and-host-ops → 5-access-and-control-plane/04-ops-control-plane → 5-access-and-control-plane/05-telemetry-and-debug