// 12/02/97  DPB  First writing of				                             //
// 11/03/98  SMJ  Modified for MW4											 //
//---------------------------------------------------------------------------//
// Copyright (C) 1995-98, Virtual World Entertainment, Inc.                  //
// All Rights reserved worldwide                                             //
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL               //
//===========================================================================//

#pragma once

	#include "MW4GameEd.h"
	#include <MW4\MWApplication.hpp>
	#include <MW4\MW4.hpp>
	

	//##########################################################################
	//#####################    MW4GameEdApplication    #########################
	//##########################################################################

//	typedef Application__LoadGameMessage			MWGameEdApplication__LoadGameMessage;

	class MW4GameEdApplication:
		public MechWarrior4::MWApplication
	{
	//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	//
	public:

	//	typedef MWGameEdApplication__LoadGameMessage			LoadGameMessage;

		static void
			InitializeClass();
		static void
			TerminateClass();
		MW4GameEdApplication();
		~MW4GameEdApplication();

		static MW4GameEdApplication*
			Make();

	//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	// Message Support
	//
	public:
		void
			LoadMissionResources(const char *mission_name);
		void
			LoadGameMessageHandler(int connection, Stuff::MemoryStream *message);
		void
			EnterRunningGameState(void* data);
		void
			PauseGameMessageHandler(const PauseGameMessage *message);

		Entity::CreateMessage *
			MakePlayerCreationMessage(int player_id);

	protected:
		static const MessageEntry
			MessageEntries[];

	//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	//
	public:
		static ClassData
			*DefaultData;

   };


