Move levelmeshhelper completely out of the Common folder
Connect the level updates to the level mesh
This commit is contained in:
parent
e80615e167
commit
e0cba77646
7 changed files with 78 additions and 23 deletions
25
src/levelmeshhelper.cpp
Normal file
25
src/levelmeshhelper.cpp
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue