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 113 of file Systems.h.

Member Function Documentation

◆ Run()

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

Definition at line 20 of file Systems.cpp.

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

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