refactor(tracker): Player sends PlayerStatus to the Model

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2025-06-19 11:37:11 +03:00
parent c77d541dc6
commit 4f2c73d0db
4 changed files with 42 additions and 44 deletions

View File

@ -6,7 +6,6 @@ import (
"time"
"github.com/vsariola/sointu"
"github.com/vsariola/sointu/vm"
)
type (
@ -59,11 +58,9 @@ type (
// avoid allocations. All the infrequently passed messages can be boxed &
// cast to any; casting pointer types to any is cheap (does not allocate).
MsgToModel struct {
HasPanicPosLevels bool
Panic bool
SongPosition sointu.SongPos
VoiceLevels [vm.MAX_VOICES]float32
CPULoad float64
HasPanicPlayerStatus bool
Panic bool
PlayerStatus PlayerStatus
HasDetectorResult bool
DetectorResult DetectorResult