Documentation ¶
Index ¶
- type InstructionSet
- func (s *InstructionSet) Add(instr instr.Instruction)
- func (s *InstructionSet) Assign(instructions map[string]instr.Instruction)
- func (s *InstructionSet) ExecAll(state *state.MissionState)
- func (s *InstructionSet) Items() map[string]instr.Instruction
- func (s *InstructionSet) Remove(uid string)
- func (s *InstructionSet) RemoveExecuted()
- type MissionManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstructionSet ¶
InstructionSet 指令集
func (*InstructionSet) Assign ¶
func (s *InstructionSet) Assign(instructions map[string]instr.Instruction)
Assign 批量添加指令(覆盖合并)
func (*InstructionSet) ExecAll ¶
func (s *InstructionSet) ExecAll(state *state.MissionState)
ExecAll 执行所有指令
func (*InstructionSet) Items ¶
func (s *InstructionSet) Items() map[string]instr.Instruction
Items 获取指令集
func (*InstructionSet) RemoveExecuted ¶
func (s *InstructionSet) RemoveExecuted()
RemoveExecuted 删除已执行的指令
type MissionManager ¶
type MissionManager struct {
// contains filtered or unexported fields
}
MissionManager 任务管理器
func (*MissionManager) Update ¶
func (m *MissionManager) Update() (state.MissionStatus, error)
Click to show internal directories.
Click to hide internal directories.