Namespace Shard.Server
Classes
- Program
Entry point for the Shard server. This executable is just a CLI handler + module host; everything else lives in the Shard.* modules, loaded in dependency order by ModuleHost.
- ServerLoop
The server tick loop - a world-agnostic C# analogue of the Java
TickingThread. Runs on a dedicated thread at TicksPerSecond with a measured variable delta and no tick catch-up (a long tick just yields a larger next delta), spinning/sleeping to the next deadline.It is also an executor: Post(Action) queues work that runs on the tick thread, drained before and after each tick (the handoff point for the network layer). Each tick publishes a ServerTickEvent so modules can run per-tick logic.
(Per-
Worldloops will follow this same shape once worlds land.)