Castle Game Engine source code is divided into a couple of directories. The meaning of each directory, and dependencies between them, are documented on https://castle-engine.io/units_map .