Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ben_singer committed Nov 17, 2024
2 parents 50bab1b + f7fb914 commit 22352cd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/docfx/docs/architecture-overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Architecture Overview

## Overview
NetAF has a simple architecture and understanding it will help when developing games.

* A **Game** encapsulates all assets and provides top level logic.
* When the **Game** is executing the following loop runs for the duration of the execution.
* A **Game** accepts user input and passes it to its own **Interpreter** and the **Interpreter** for the current **GameMode** in order to process it.
* The **Interpreter** tries to parse the input and return an instance of **Command**.
* The returned **Command** is then invoked and returns a **Reaction** that details the result.
* Some instances of **Command** deal with interactions between assets. In this case an **Interaction** between an **Item** and a target is invoked and the result returned the **Command** which will return an appropriate **Reaction**.
* The **Game** processes the **Reaction** as required.

0 comments on commit 22352cd

Please sign in to comment.