How kateusz/gameengine works
MulEngine is a component-based game engine with a docked visual editor and a standalone player. The main workflow is to open a project, load or edit a scene, then enter Play or run the player: scenes and systems operate on ECS entities, script assemblies supply game logic, and rendering/audio produce the result. The README also documents physics, prefabs, asset/model import, and publishing. Source excerpts establish the core loop and selected wiring; other capability links are documented by the README, not independently verified in source.
Main entry points: Scene.cs Scene and hierarchy · Application.cs Application loop · SceneManager.cs Scene workflow · EngineIoCContainer.cs Engine composition
Components 25
Hosts and composition
- Visual editor
Editor/Editor.cs - Standalone player
Runtime/Program.cs - Application loop
Engine/Core/Application.cs - Engine composition
Engine/Core/DI/EngineIoCContainer.cs
Scenes and gameplay
- Entities and components
ECS/Entity.cs - Entity context
ECS/Context.cs - Scene and hierarchy
Engine/Scene/Scene.cs - Scene systems
Engine/Scene/SceneSystemsFactory.cs - Scene and prefab files
Engine/Scene/Serializer/SceneSerializer.cs - 2D physics
Engine/Scene/Systems/PhysicsSimulationSystem.cs - Game scripting
Engine/Scripting/ScriptEngine.cs
Editor workflow
- Project workflow
Editor/Features/Project/ProjectManager.cs - Scene workflow
Editor/Features/Scene/SceneManager.cs - Viewport tools
Editor/Features/Viewport/ViewportToolManager.cs - Undo history
Editor/Features/History/EditorHistory.cs - Asset browser
Editor/AssetPicker/AssetPickSession.cs - Build and publish
Editor/Publisher/GamePublisher.cs
Rendering and assets
- Scene rendering
Engine/Scene/SceneRenderPipeline.cs - Graphics interfaces
Engine/Renderer/Pipeline/IGraphics3D.cs - OpenGL backend
Engine/Platform/OpenGL/OpenGLRendererApi.cs
Runtime services
- Window and input
Engine/Platform/SilkNet - Project context
Engine/Project/ProjectContext.cs - Asset path resolution
Engine/Project/PathBuilder.cs - Audio playback
Engine/Platform/OpenAL/OpenALAudioEngine.cs
Other components
- Project user
Connections 27
- Project user → Visual editor: edits project
- Project user → Standalone player: runs build
- Visual editor → Application loop: inherits loop
Editor/Editor.cs - Standalone player → Application loop: starts application
Runtime/Program.cs - Engine composition → OpenGL backend: registers backend
Engine/Core/DI/EngineIoCContainer.cs - Engine composition → Project context: registers context
Engine/Core/DI/EngineIoCContainer.cs - Engine composition → Asset path resolution: wires context
Engine/Core/DI/EngineIoCContainer.cs - Application loop → Window and input: receives events
Engine/Core/Application.cs - Application loop → Audio playback: updates audio
Engine/Core/Application.cs - Project workflow → Project context: applies project
Editor/Features/Project/ProjectManager.cs - Project workflow → Scene workflow: coordinates scenes
Editor/Features/Project/ProjectManager.cs - Scene workflow → Scene and hierarchy: loads scenes
Editor/Features/Scene/SceneManager.cs - Scene and hierarchy → Entity context: registers entities
Engine/Scene/Scene.cs - Entity context → Entities and components: indexes components
ECS/Context.cs - Scene and hierarchy → Scene systems: runs systems
- Scene and hierarchy → Scene and prefab files: serializes scene
- Scene and hierarchy → 2D physics: simulates physics
- Scene and hierarchy → Game scripting: loads game logic
- Scene workflow → Undo history: records changes
- Viewport tools → Scene and hierarchy: edits entities
- Asset browser → Asset path resolution: resolves assets
Editor/AssetPicker/AssetPickSession.cs - Asset browser → Scene workflow: imports models
- Visual editor → Build and publish: publishes builds
- Scene and hierarchy → Scene rendering: renders scene
Engine/Scene/SceneRenderPipeline.cs - Scene rendering → Graphics interfaces: issues draw calls
Engine/Scene/SceneRenderPipeline.cs - Graphics interfaces → OpenGL backend: implemented by
- Scene and hierarchy → Audio playback: plays component audio