Move levelmeshhelper completely out of the Common folder

Connect the level updates to the level mesh
This commit is contained in:
Magnus Norddahl 2024-08-11 18:34:03 +02:00
commit e0cba77646
7 changed files with 78 additions and 23 deletions

25
src/levelmeshhelper.cpp Normal file
View file

@ -0,0 +1,25 @@
#include "levelmeshhelper.h"
struct NullLevelMeshUpdater : UpdateLevelMesh
{
virtual void FloorHeightChanged(struct sector_t* sector) {};
virtual void CeilingHeightChanged(struct sector_t* sector) {};
virtual void MidTex3DHeightChanged(struct sector_t* sector) {};
virtual void FloorTextureChanged(struct sector_t* sector) {};
virtual void CeilingTextureChanged(struct sector_t* sector) {};
virtual void SectorChangedOther(struct sector_t* sector) {};
virtual void SideTextureChanged(struct side_t* side, int section) {};
};
static NullLevelMeshUpdater nullUpdater;
UpdateLevelMesh* LevelMeshUpdater = &nullUpdater;
void SetNullLevelMeshUpdater()
{
LevelMeshUpdater = &nullUpdater;
}