31 lines
763 B
Go
31 lines
763 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 {
|
|
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"`
|
|
}
|