A dungeon-crawler, single-player RPG framework and game.
Here is the list of projects and their purpose.
- Morgemil.Console
- Command line tools to interact with game data outside the context of a complete graphical game engine.
- Morgemil.Core
- The actual game logic and constructs necessary to be a game.
- Morgemil.Data
- The game's responsibilities for reading from data stores, validating data from those stores, and if necessary, translating data from the stores.
- Morgemil.GameEngine
- The graphical game engine lives in here, built on top of SadConsole engine.
- Morgemil.Generation
- An experimental addition to enable code generation of boilerplate. Especially relevant for purposes of serialization and deserialization of data.
- Morgemil.Math
- A custom math library dedicated to ease of use and composition. Has recently been replaced with SadRogue.Primitives.
- Morgemil.Models
- These are the rich domain models that the game is built on top of.
- Morgemil.Utility
- A catch-all namespace.
- build
- F# Fake build project.
These coding guidelines are not absolute. There are always cases not considered and cases where the guidelines should be set aside.
- Consider using F# code type annotations to be specifically clear about expected purpose.
- Every field on an F# record should be immutable (which is the default).
- Every piece of randomness should use a provided RNG (Random Number Generator) in order for the game logic to be completely deterministic.
- Every F# discriminated union should use the
RequireQualifiedAccess
attribute by default. - Use F# discriminated unions in place of .NET enums by default.
- Be sparing with returning a
Tuple
as a result. If there are two or more fields, consider using a record with defined names. - Most F# data models shouldn't depend on any services or injected functions. These data models are subject to serialization and being sent over a network.
- Casing
- Pascal Casing for Types and the Type's Methods and Properties.
- camel Casing for function parameters and privately scoped variables.
- Be sparing in use of F# Computation Expressions.
No guarantees are made towards backwards compatible save files, scenario files, or serialized data of any sort. Files are associated with and expected to be used with the same version program.
- JetBrains Rider
- .NET 8.0
- TheSadRogue.Primitives
- SadConsole