Used ClangFormat style guide I'm happy with.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -5,15 +5,17 @@
|
||||
|
||||
#include "ScriptAggregator.hpp"
|
||||
|
||||
namespace CreatureLib::Battling{
|
||||
namespace CreatureLib::Battling {
|
||||
class ScriptSource {
|
||||
bool _areScriptsInitialized = false;
|
||||
std::vector<ScriptWrapper> _scripts;
|
||||
|
||||
protected:
|
||||
virtual void GetActiveScripts(std::vector<ScriptWrapper>& scripts) = 0;
|
||||
|
||||
public:
|
||||
ScriptAggregator GetScriptIterator(){
|
||||
if (!_areScriptsInitialized){
|
||||
ScriptAggregator GetScriptIterator() {
|
||||
if (!_areScriptsInitialized) {
|
||||
GetActiveScripts(_scripts);
|
||||
_areScriptsInitialized = true;
|
||||
}
|
||||
@@ -22,4 +24,4 @@ namespace CreatureLib::Battling{
|
||||
};
|
||||
}
|
||||
|
||||
#endif //CREATURELIB_SCRIPTSOURCE_HPP
|
||||
#endif // CREATURELIB_SCRIPTSOURCE_HPP
|
||||
|
||||
Reference in New Issue
Block a user