- Add random live handlers, schemas and persistence for lot/play/continue/gameover/reward flow - Update live status and schedule generation, including special rotation handling and CN timezone alignment - Add config support for unlocking all daily special rotation songs and document the option - Refresh live play, reward, precise score and session logic plus bundled main.db updates Signed-off-by: Sean Du <do4suki@gmail.com>
32 lines
944 B
Go
32 lines
944 B
Go
package rliveschema
|
|
|
|
import liveschema "honoka-chan/internal/schema/live"
|
|
|
|
type PlayReq struct {
|
|
Module string `json:"module"`
|
|
PartyUserID int64 `json:"party_user_id"`
|
|
Action string `json:"action"`
|
|
Mgd int `json:"mgd"`
|
|
IsTraining bool `json:"is_training"`
|
|
UnitDeckID int `json:"unit_deck_id"`
|
|
Token string `json:"token"`
|
|
TimeStamp int `json:"timeStamp"`
|
|
LpFactor int `json:"lp_factor"`
|
|
CommandNum string `json:"commandNum"`
|
|
}
|
|
|
|
func (req PlayReq) ToLivePlayReq(liveDifficultyID int) liveschema.PlayReq {
|
|
return liveschema.PlayReq{
|
|
Module: req.Module,
|
|
PartyUserID: req.PartyUserID,
|
|
Action: req.Action,
|
|
Mgd: req.Mgd,
|
|
IsTraining: req.IsTraining,
|
|
UnitDeckID: req.UnitDeckID,
|
|
LiveDifficultyID: itoa(liveDifficultyID),
|
|
TimeStamp: req.TimeStamp,
|
|
LpFactor: req.LpFactor,
|
|
CommandNum: req.CommandNum,
|
|
}
|
|
}
|