MCPcopy Create free account
hub / github.com/chrxh/alien / newSimulation

Method newSimulation

source/EngineImpl/SimulationFacadeImpl.cpp:5–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "EngineInterface/Descriptions.h"
4
5void _SimulationFacadeImpl::newSimulation(uint64_t timestep, GeneralSettings const& generalSettings, SimulationParameters const& parameters)
6{
7 _generalSettings = generalSettings;
8 _origSettings.generalSettings = generalSettings;
9 _origSettings.simulationParameters = parameters;
10 _worker.newSimulation(timestep, generalSettings, parameters);
11
12 _thread = new std::thread(&EngineWorker::runThreadLoop, &_worker);
13
14 _selectionNeedsUpdate = true;
15 _realTime = std::chrono::milliseconds(0);
16 _simRunTimePoint.reset();
17
18 ++_sessionId;
19}
20
21int _SimulationFacadeImpl::getSessionId() const
22{

Callers

nothing calls this directly

Calls 1

resetMethod · 0.80

Tested by

no test coverage detected