Leviathan  0.8.0.0
Leviathan game engine
Leviathan::ModelPropertiesSystem Class Reference

Handles properties of Model. More...

#include <Systems.h>

Public Member Functions

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

Detailed Description

Handles properties of Model.

Definition at line 118 of file Systems.h.

Member Function Documentation

◆ Run()

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

Definition at line 19 of file Systems.cpp.

20 {
21  for(auto iter = index.begin(); iter != index.end(); ++iter) {
22 
23  auto& node = *iter->second;
24 
25  if(!node.Marked)
26  continue;
27 
28  // TODO: this check could be for graphics outside this loop
29  if(node.GraphicalObject) {
30  node.ApplyMeshName();
31  node.GraphicalObject->SetMaterial(node.ObjectMaterial);
32  }
33 
34  node.Marked = false;
35  }
36 }

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