//===========================================================================//
// File:	NetUpdateManager.cpp											
//---------------------------------------------------------------------------//
//   Date    Who  Modification                                               //
// --------  ---  ---------------------------------------------------------- //
// 01/06/2000  JSE  Inital coding
//---------------------------------------------------------------------------//
// Copyright (C) 1998, Microsoft Corp.										 //
// All Rights reserved worldwide                                             //
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL               //
//===========================================================================//


#include "MW4Headers.hpp"

#include "NetUpdateManager.hpp"
#include "MWEntityManager.hpp"


//##########################################################################
//###########################   UpdateManager
//##########################################################################



UpdateEntry
	UpdateManager::UpdateEntries[]=
{
	UPDATE_ENTRY(MechPositionUpdate),//0
	UPDATE_ENTRY(MechAnimationUpdate),//1
	UPDATE_ENTRY(MechMovemntUpdate),//2
	UPDATE_ENTRY(MechExternalDamageUpdate),//3
	UPDATE_ENTRY(MechFirstPersonPositionUpdate),//4
	UPDATE_ENTRY(MechFirstPersonControlUpdate),//5
	UPDATE_ENTRY(WeaponCommand),//6
	UPDATE_ENTRY(MissionObjectiveUpdate),//7
	UPDATE_ENTRY(MechInternalDamageUpdate),//8
	UPDATE_ENTRY(MechInternalHeatUpdate),//9
	UPDATE_ENTRY(SubsystemUpdate),//10
	UPDATE_ENTRY(FlushUpdate),//11
	UPDATE_ENTRY(SearchLightUpdate),//12
	UPDATE_ENTRY(InternalAMSAmmoUpdate),//13
	UPDATE_ENTRY(ExternalAMSAmmoUpdate),//14
	UPDATE_ENTRY(NearBuildingExternalDamageUpdate),//15
	UPDATE_ENTRY(SecondaryBuildingExternalDamageUpdate),//16
	UPDATE_ENTRY(FarBuildingExternalDamageUpdate),//17
	UPDATE_ENTRY(ExternalJumpJetUpdate),//18
	UPDATE_ENTRY(InternalJumpJetUpdate),//19
	UPDATE_ENTRY(VehicleDamageUpdate),//20
	UPDATE_ENTRY(AirMovementUpdate),//21
	UPDATE_ENTRY(GroundMovementUpdate),//22
	UPDATE_ENTRY(TurretMovementUpdate),//23
	UPDATE_ENTRY(TorsoMovementUpdate),//24
	UPDATE_ENTRY(NavPointUpdate),//25
	UPDATE_ENTRY(FlagUpdate),//26
	UPDATE_ENTRY(TimeUpdate),//27
	UPDATE_ENTRY(SecurityQuery),//28
	UPDATE_ENTRY(SecurityResponse),//29
	UPDATE_ENTRY(PingUpdate)//30
};




int UpdateManager::GetUpdateEntryCount(int type)
{
	Verify(type < UpdateCount);
	Verify(type > BaseUpdateID);

	UpdateEntry *update = &UpdateEntries[type];
	int count = update->GetEntryCount();

	return count;

}
