Missions ex-server
IMissionServerEx is a higher-level mission server API. It wraps IMissionServer and adds mission storage, mission execution, and command handlers for mission items.
Register required services:
Get the service:
Simple mission execution setup:
MissionServerState
Value | Description |
|---|---|
| No mission execution in progress. |
| Mission execution is running. |
| Mission execution completed successfully. |
| Mission execution ended with error. |
| Mission execution was canceled. |
IMissionServerEx
Property | Type | Description |
|---|---|---|
|
| Underlying low-level mission server. |
|
| Current mission item index. |
|
| Last reached mission item index. |
|
| Mission storage. |
|
| Current mission execution state. |
|
| Commands that currently have registered handlers. |
Indexer | Description |
|---|---|
| Register/remove mission command handler. |
Method | Return Type | Description |
|---|---|---|
|
| Adds items to mission storage. |
|
| Removes items from mission storage. |
|
| Clears mission storage. |
|
| Returns snapshot copy of mission items. |
|
| Changes current mission item index. |
|
| Starts mission execution. |
|
| Stops mission execution. |
IMissionServerEx.AddItems
Parameter | Type | Description |
|---|---|---|
|
| Items to append. |
IMissionServerEx.RemoveItems
Parameter | Type | Description |
|---|---|---|
|
| Items to remove. |
IMissionServerEx.ChangeCurrentMissionItem
Parameter | Type | Description |
|---|---|---|
|
| Mission item index. |
IMissionServerEx.StartMission
Parameter | Type | Description |
|---|---|---|
|
| Start index ( |
IMissionServerEx.StopMission
Parameter | Type | Description |
|---|---|---|
|
| Cancel token argument. |
MissionTaskDelegate
Parameter | Type | Description |
|---|---|---|
|
| Mission item to execute. |
|
| Cancel token argument. |