mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-17 17:08:39 +00:00
Code modernization: src/p*, src/q*, src/r*, src/s* (partial) (#6282)
* Code modernization: src/p*, src/q*, src/r*, src/s* (partial) * empty function * default constructor/destructor * for range-based loops * use emplace_back instead of push_back * C++ STL header style * Spelling: vertice -> vertex
This commit is contained in:
parent
1992db1395
commit
7528986e44
28 changed files with 363 additions and 443 deletions
|
@ -49,8 +49,8 @@ class ServerScripting;
|
|||
class ActiveBlockModifier
|
||||
{
|
||||
public:
|
||||
ActiveBlockModifier(){};
|
||||
virtual ~ActiveBlockModifier(){};
|
||||
ActiveBlockModifier() = default;
|
||||
virtual ~ActiveBlockModifier() = default;
|
||||
|
||||
// Set of contents to trigger on
|
||||
virtual const std::set<std::string> &getTriggerContents() const = 0;
|
||||
|
@ -84,7 +84,8 @@ struct LoadingBlockModifierDef
|
|||
std::string name;
|
||||
bool run_at_every_load = false;
|
||||
|
||||
virtual ~LoadingBlockModifierDef() {}
|
||||
virtual ~LoadingBlockModifierDef() = default;
|
||||
|
||||
virtual void trigger(ServerEnvironment *env, v3s16 p, MapNode n){};
|
||||
};
|
||||
|
||||
|
@ -106,7 +107,7 @@ struct LBMContentMapping
|
|||
class LBMManager
|
||||
{
|
||||
public:
|
||||
LBMManager() {}
|
||||
LBMManager() = default;
|
||||
~LBMManager();
|
||||
|
||||
// Don't call this after loadIntroductionTimes() ran.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue