Versions in this module Expand all Collapse all v0 v0.0.2 Jan 5, 2024 v0.0.1 Jan 5, 2024 Changes in this version + type Event struct + Cancelled bool + Execute func(*Mission, *gamecomm.GameChannels) + Id string + Index int + MissionId string + Time gameclock.GameTime + type EventQueue []*Event + func (eq *EventQueue) Pop() any + func (eq *EventQueue) Push(e any) + func (eq *EventQueue) Update(event *Event, t gameclock.GameTime, cancelled bool) + func (eq EventQueue) Len() int + func (eq EventQueue) Less(i, j int) bool + func (eq EventQueue) Swap(i, j int) + type EventScheduler struct + func NewEventScheduler(gameChannels *gamecomm.GameChannels, missions map[string]*Mission, ...) *EventScheduler + func (s *EventScheduler) Run() + func (s *EventScheduler) Schedule(e *Event) + func (s *EventScheduler) UpdateEvent(eventId string, newTime gameclock.GameTime, cancelled bool) error + type Mission struct + Amount int + CorporationId uint64 + DestinationTime time.Time + Id string + NotificationChan chan string + PlanetId string + Resources []string + ReturnalTime time.Time + Squads []int + Status string + Type gamecomm.MissionType + func CreateMission(mc gamecomm.MissionCommand) (Mission, error) + type MissionScheduler struct + RW sync.RWMutex + func NewMissionScheduler(gameChannels *gamecomm.GameChannels, gc *gameclock.GameClock) *MissionScheduler + func (ms *MissionScheduler) CalculateTravelDistance(m Mission) + func (ms *MissionScheduler) CreateSquadMission(m Mission) + func (ms *MissionScheduler) CreateTransferMission(m Mission) error + func (ms *MissionScheduler) Run() + func (ms *MissionScheduler) StartMission(m Mission)