ForNeVeR/overtone

De-staticify the `GameState`

Offen

#110 geöffnet am 09.02.2026

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)F# (1 Fork)auto 404
enhancementhelp wanted

Repository-Metriken

Stars
 (18 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Currently, the GameState contains a couple of mutable static fields: https://github.com/ForNeVeR/overtone/blob/421c1129f9efb9ebd30945f114a3dcdd1a4ffa42/Overtone.Game/GameState.fs#L15-L23

We should remove them all. GameState should be an instance type, passed to each concerned entity.

This will allow us to not rely on global mutable effects, helps with things like save games, reproducible gameplay, game replays etc.

Contributor Guide