game_sync/gamesrv/slotspkg/slots/entity/round.go

19 lines
361 B
Go

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
}
}