forked from broderickhyman/albiondata-client
-
Notifications
You must be signed in to change notification settings - Fork 29
/
client.go
37 lines (29 loc) · 850 Bytes
/
client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package client
import (
"github.com/ao-data/albiondata-client/log"
)
var version string
//Client struct base
type Client struct {
}
//NewClient return a new Client instance
func NewClient(_version string) *Client {
version = _version
return &Client{}
}
//Run starts client settings and run
func (client *Client) Run() error {
log.Infof("Starting Albion Data Client, version: %s", version)
log.Info("This is a third-party application and is in no way affiliated with Sandbox Interactive or Albion Online.")
log.Info("Additional parameters can listed by calling this file with the -h parameter.")
ConfigGlobal.setupDebugEvents()
ConfigGlobal.setupDebugOperations()
createDispatcher()
if ConfigGlobal.Offline {
processOffline(ConfigGlobal.OfflinePath)
} else {
apw := newAlbionProcessWatcher()
return apw.run()
}
return nil
}