mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-02-14 03:13:03 +00:00
IW5 support initial commit
This commit is contained in:
43
src/Common/Game/IW5/GameIW5.cpp
Normal file
43
src/Common/Game/IW5/GameIW5.cpp
Normal file
@@ -0,0 +1,43 @@
|
||||
#include "GameIW5.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "IW5.h"
|
||||
|
||||
using namespace IW5;
|
||||
|
||||
GameIW5 g_GameIW5;
|
||||
|
||||
std::string GameIW5::GetFullName()
|
||||
{
|
||||
return "Call Of Duty: Modern Warfare 3";
|
||||
}
|
||||
|
||||
std::string GameIW5::GetShortName()
|
||||
{
|
||||
return "IW5";
|
||||
}
|
||||
|
||||
void GameIW5::AddZone(Zone* zone)
|
||||
{
|
||||
m_zones.push_back(zone);
|
||||
}
|
||||
|
||||
void GameIW5::RemoveZone(Zone* zone)
|
||||
{
|
||||
const auto foundEntry = std::find(m_zones.begin(), m_zones.end(), zone);
|
||||
|
||||
if (foundEntry != m_zones.end())
|
||||
m_zones.erase(foundEntry);
|
||||
}
|
||||
|
||||
std::vector<Zone*> GameIW5::GetZones()
|
||||
{
|
||||
return m_zones;
|
||||
}
|
||||
|
||||
std::vector<GameLanguagePrefix> GameIW5::GetLanguagePrefixes()
|
||||
{
|
||||
std::vector<GameLanguagePrefix> prefixes;
|
||||
return prefixes;
|
||||
}
|
||||
Reference in New Issue
Block a user