package entity import ( "github.com/spf13/cast" "mongo.games.com/game/gamesrv/slotspkg/internal/generic/key" ) func (e *Entity) UpdateRound() { if e.CursorNode().Type == key.BaseSpin { e.NodeTree.Round++ roundType := int64(0) v, ok := e.Data[key.MachineRoundType] if !ok { roundType = cast.ToInt64(v) } e.NodeTree.RoundType = roundType } }