Skip to content

Architecture

Maginy’s architecture is split into two parts, the organizational aspect of the toolkit (Modules) and the structure of the code itself, setting the rules of how additional modules should be created (Implementation).

Modules

In Maginy we have two types of Modules:

  • Adapter modules, which serve as a bridge from an existing framework to Maginy, currently Godot and Unity, ex. Base, Spatial, Audio.
  • Feature modules, which are the main meat and potatoes of Maginy, containing the actual work required to create functioning applications. They can not contain any external references (except Nuget packages). Ex. Combat, Abilities, Entity.

Every module, not matter the type, is required to have a module.json, example:

{
"name": "Combat",
"description": "Core combat module, adding features for health and damage.",
"version": "0.1",
"maintainer": "Lobian",
"maginy_dependencies": [
{
"name": "Base",
"version": "0.1"
}]
}

Maginy is hosted on Codeberg, relying heavily on the git submodule functionality to decentralize the codebase and then link together all of it’s parts again. As this adds too much overhead for an individual developer or small team, each Adapter comes with tooling to install and manage modules.

Maginy’s implementation borrows ideas from Godot and Unity to create a powerful but easy to grasp workflow that fits a wide variety of applications.

As with Godot, everything in Maginy is a Node, but we categorize them further based on the purpose they serve, notably:

  • Scenes, hosts all other nodes, functions as Server
  • ModularSystems, hosts Parts, meant to influence on the level of a Scene, usually max one instance per scene
  • SystemParts, defines System functionality
  • SceneObjects, hosts Components, meant to influence other objects, one or many instances per scene
  • ObjectComponent, defines Object functionality
  • DataNode, holds Data relevant to Parts or Components, can be influenced by multiples of one type at the same time.

Read more here.