Files
game-driver/internal/schema/play.go
2024-11-05 18:39:03 +08:00

32 lines
774 B
Go

package schema
type TTSTimer struct {
Time int `json:"time"`
Value string `json:"value"`
}
type TTSModal struct {
Start string `json:"start"`
End string `json:"end"`
Stop string `json:"stop"`
Timer []TTSTimer `json:"timer"`
}
type PrintModal struct {
Time int `json:"time"`
Text string `json:"text"`
Duration int `json:"duration"`
}
type PlayModal struct {
JsonModel
Timeout int `json:"timeout"`
Power bool `json:"power"`
BGM string `json:"bgm"`
Volume float64 `json:"volume"`
DefaultPrint string `json:"default-print"`
TTS TTSModal `json:"tts"`
Print []PrintModal `json:"print"`
Game map[string]any `json:"game"`
}