mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-18 17:59:21 +01:00
Add Text rendering and Hull / Fuel Meters
This commit is contained in:
31
Game/GridSystem/GroundTileTypeManager.cpp
Normal file
31
Game/GridSystem/GroundTileTypeManager.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#include "pch.h"
|
||||
#include "GroundTileTypeManager.h"
|
||||
|
||||
#include "GridSystem/WorldTile.h"
|
||||
|
||||
GroundTileTypeManager* GroundTileTypeManager::m_pInstance = nullptr;
|
||||
|
||||
GroundTileTypeManager* GroundTileTypeManager::GetInstance() {
|
||||
if (m_pInstance == nullptr) {
|
||||
m_pInstance = new GroundTileTypeManager();
|
||||
}
|
||||
return m_pInstance;
|
||||
}
|
||||
void GroundTileTypeManager::DestroyInstance() {
|
||||
delete m_pInstance->AIR;
|
||||
delete m_pInstance->DIRT;
|
||||
delete m_pInstance->STONE;
|
||||
delete m_pInstance->LAVA;
|
||||
delete m_pInstance->IRON;
|
||||
delete m_pInstance->BRONZE;
|
||||
delete m_pInstance->GOLD;
|
||||
delete m_pInstance->HARD_LEFT;
|
||||
delete m_pInstance->HARD_RIGHT;
|
||||
delete m_pInstance->HARD_MIDDLE;
|
||||
delete m_pInstance->GRASS;
|
||||
|
||||
delete m_pInstance;
|
||||
}
|
||||
GroundTileTypeManager::GroundTileTypeManager() = default;
|
||||
|
||||
GroundTileTypeManager::~GroundTileTypeManager() = default;
|
||||
Reference in New Issue
Block a user