Skip to content

Commit

Permalink
tick modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Tumble committed Feb 18, 2021
1 parent 324556a commit c09b6cc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ int main(int argc, char* argv[]) {
}
}
}

moduleManager->tickModules(time->getDeltaTime());

// Rotate cube
cubePos->roll(25.0f * time->getDeltaTime());
cubePos->yaw(50.0f * time->getDeltaTime());
Expand Down
6 changes: 6 additions & 0 deletions engine/managers/module_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,9 @@ ce::ModuleManger::~ModuleManger()
}
}

void ce::ModuleManger::tickModules(float deltaTime)
{
for(int i=0;i<m_modules.size();i++) m_modules[i].module->tick(deltaTime);
}


Binary file modified res/modules/libsample_module.so
Binary file not shown.

0 comments on commit c09b6cc

Please sign in to comment.