Game Architecture
Last updated
Last updated
Chain Tactics is built on a modular architecture that ensures seamless on-chain gameplay while offering flexibility for modding and development. Powered by the Sovrun SDK, it uses the MUD Engine for on-chain data management and the Game IDE Integrator for Unity compatibility, creating a robust decentralized framework (see Sovrun SDK for details). The game’s architecture is also expandable to other EVM chains, allowing developers to deploy Chain Tactics across multiple blockchain networks for greater scalability and accessibility.
The key components and their interactions are as follows:
Onchain Logic: Game state is stored in MUD (Modular Universe Data) tables, managed by the MUD Engine, and updated via smart contracts, ensuring transparency, immutability, and auditability of all game actions.
Headless Client: Written in C#, this component bridges on-chain logic with external applications. It abstracts blockchain interactions, enabling developers to create custom frontends, AI agents, or automation tools without deep blockchain expertise, enhanced by the Game IDE Integrator’s support for development workflows.
CTServer: Manages off-chain coordination between all clients, ensuring smooth communication and synchronization without overloading the blockchain with non-critical data.
CTServerContext: Acts as a bridge, coordinating both the blockchain interactions (via Nethereum) and the off-chain coordination handled by the CTServer.
Nethereum: A C# library to sign Ethereum blockchain transactions, providing secure and efficient interaction with the network.
Unity Frontend: The default user interface for players, rendering the game in a visually engaging format, linked to the MUD Engine via the Game IDE Integrator. Developers can replace or extend this with custom frontends using the headless client.