BlockHandler initialisation is a constant expression (#4891)
* BlockHandler initialisation is a constant expression If we can't make it all namespaces, this is the next best I guess. + Tag handlers constexpr, const as needed + Inherit constructors * Privatise handler functions * More constexpr Co-authored-by: Alexander Harkness <me@bearbin.net>
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
#include "BlockInfo.h"
|
||||
#include "BlockType.h"
|
||||
#include "Blocks/BlockHandler.h"
|
||||
|
||||
|
||||
|
||||
@@ -422,15 +421,6 @@ cBlockInfo::cBlockInfo():
|
||||
|
||||
|
||||
|
||||
cBlockHandler * cBlockInfo::GetHandler(BLOCKTYPE a_Type)
|
||||
{
|
||||
return &cBlockHandler::GetBlockHandler(a_Type);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
float cBlockInfo::GetExplosionAbsorption(const BLOCKTYPE Block)
|
||||
{
|
||||
switch (Block)
|
||||
|
||||
Reference in New Issue
Block a user