1
0
Fork 0

[golang] implement automation loop and add contract accepting

This commit is contained in:
Julien Dessaux 2025-02-14 00:14:15 +01:00
parent 3dad3f60f2
commit d97985a694
Signed by: adyxax
GPG key ID: F92E51B86E07177E
9 changed files with 223 additions and 64 deletions

15
golang/pkg/agent/error.go Normal file
View file

@ -0,0 +1,15 @@
package agent
import "git.adyxax.org/adyxax/spacetraders/golang/pkg/model"
type shipError struct {
err error
ship *model.Ship
}
func (a *agent) sendShipError(err error, ship *model.Ship) {
a.channel <- shipError{
err: err,
ship: ship,
}
}