http connector first impl
This commit is contained in:
@@ -6,6 +6,9 @@ import (
|
||||
)
|
||||
|
||||
type Client interface {
|
||||
// Version returns semantic version of the Client
|
||||
Version() string
|
||||
|
||||
// Run initializes necessary UI layout an settings, and activates client's main window.
|
||||
// This is a blocking operation until client's main window is closed.
|
||||
Run() error
|
||||
@@ -24,7 +27,7 @@ func (i GameID) String() string {
|
||||
}
|
||||
|
||||
type State struct {
|
||||
// TODO: store user login key
|
||||
// TODO: store user's login key
|
||||
GameState []GameState `json:"gameState"`
|
||||
ActiveGameID GameID `json:"activeGameId"`
|
||||
}
|
||||
@@ -40,8 +43,3 @@ type GameData struct {
|
||||
Report report.Report `json:"report"`
|
||||
Order *order.Order `json:"order,omitempty"`
|
||||
}
|
||||
|
||||
type Settings struct {
|
||||
// TODO: use fyne.Storage for initializing and storing data
|
||||
StoragePath string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user