#include "munga.h"
#pragma hdrstop

#include "appmsg.h"
#include "app.h"

//~~~~~~~~~~~~~~~~~~~~~ Application__StateQueryMessage ~~~~~~~~~~~~~~~~~~~~~~~~
Application__StateQueryMessage::Application__StateQueryMessage(HostID requesting_host)
	: NetworkClient::Message(Application::StateQueryMessageID, sizeof(Application__StateQueryMessage))
{
	requestingHost = requesting_host;
}

//~~~~~~~~~~~~~~~~~~~~~~ Application__RunMissionMessage ~~~~~~~~~~~~~~~~~~~~~~~
Application__RunMissionMessage::Application__RunMissionMessage()
	: NetworkClient::Message(Application::RunMissionMessageID, sizeof(Application__RunMissionMessage))
{
}

//~~~~~~~~~~~~~~~~~~~~~~ Application__StopMissionMessage ~~~~~~~~~~~~~~~~~~~~~~
Application__StopMissionMessage::Application__StopMissionMessage(Enumeration exit_code)
	: NetworkClient::Message(Application::StopMissionMessageID, sizeof(Application__StopMissionMessage))
{
	exitCode = exit_code;
}

//~~~~~~~~~~~~~~~~~~~~~~ Application__AbortMissionMessage ~~~~~~~~~~~~~~~~~~~~~~
Application__AbortMissionMessage::Application__AbortMissionMessage(Enumeration exit_code)
	: NetworkClient::Message(Application::AbortMissionMessageID, sizeof(Application__AbortMissionMessage))
{
	exitCode = exit_code;
}

//~~~~~~~~~~~~~~~~~~~~ Application__SuspendMissionMessage ~~~~~~~~~~~~~~~~~~~~~
Application__SuspendMissionMessage::Application__SuspendMissionMessage()
	: NetworkClient::Message(Application::SuspendMissionMessageID, sizeof(Application__SuspendMissionMessage))
{
}

//~~~~~~~~~~~~~~~~~~~~ Application__ResumeMissionMessage ~~~~~~~~~~~~~~~~~~~~~~
Application__ResumeMissionMessage::Application__ResumeMissionMessage()
	: NetworkClient::Message(Application::ResumeMissionMessageID, sizeof(Application__ResumeMissionMessage))
{
}

//==============================================================================
