Leviathan  0.8.0.0
Leviathan game engine
Leviathan::RenderNodePropertiesSystem Class Reference

Handles properties of scene objects that have a changed RenderNode. More...

#include <Systems.h>

Public Member Functions

void Run (GameWorld &world, std::unordered_map< ObjectID, RenderNode * > &index)
 

Detailed Description

Handles properties of scene objects that have a changed RenderNode.

Definition at line 99 of file Systems.h.

Member Function Documentation

◆ Run()

void Leviathan::RenderNodePropertiesSystem::Run ( GameWorld world,
std::unordered_map< ObjectID, RenderNode * > &  index 
)
inline

Definition at line 101 of file Systems.h.

102  {
103  for(auto iter = index.begin(); iter != index.end(); ++iter) {
104 
105  auto& node = *iter->second;
106 
107  if(!node.Marked)
108  continue;
109 
110  node.Node->SetHidden(node.Hidden);
111  node.Node->SetScale(node.Scale);
112  node.Marked = false;
113  }
114  }

The documentation for this class was generated from the following file: