ForNeVeR/overtone

De-staticify the `GameState`

開放

#110 建立於 2026年2月9日

 (0 則留言) (0 個反應) (0 位負責人)F# (1 個分叉)auto 404
enhancementhelp wanted

倉庫指標

星標
 (18 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南