mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Cleanup and formatting of H3M loader code
This commit is contained in:
@@ -10,19 +10,25 @@
|
||||
|
||||
#include "StdInc.h"
|
||||
#include "MapFeaturesH3M.h"
|
||||
|
||||
#include "CMap.h"
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
MapFormatFeaturesH3M MapFormatFeaturesH3M::find(EMapFormat format)
|
||||
{
|
||||
switch (format)
|
||||
switch(format)
|
||||
{
|
||||
case EMapFormat::ROE: return getFeaturesROE();
|
||||
case EMapFormat::AB: return getFeaturesAB();
|
||||
case EMapFormat::SOD: return getFeaturesSOD();
|
||||
case EMapFormat::WOG: return getFeaturesWOG();
|
||||
case EMapFormat::HOTA: return getFeaturesHOTA();
|
||||
case EMapFormat::ROE:
|
||||
return getFeaturesROE();
|
||||
case EMapFormat::AB:
|
||||
return getFeaturesAB();
|
||||
case EMapFormat::SOD:
|
||||
return getFeaturesSOD();
|
||||
case EMapFormat::WOG:
|
||||
return getFeaturesWOG();
|
||||
case EMapFormat::HOTA:
|
||||
return getFeaturesHOTA();
|
||||
default:
|
||||
throw std::runtime_error("Invalid map format!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user