INNER CODE UNIT · C++

newWorld

GlPortal/RadixEngine · source/BaseGame.cpp:61

  std::unique_ptr<World> newWorld = std::make_unique<World>(*this);
  createWorld(*newWorld);

  lastUpdate = 0;
  lastRender = 0;

  loadMap(*newWorld);
  setWorld(std::move(newWorld));
  // From this point on, this->world is the moved newWorld

  createScreenshotCallbackHolder();

  screenRenderer = std::make_unique<ScreenRenderer>(*world, *renderer.get(), gameWorld);
  renderer->addRenderer(*screenRenderer);
  scriptEngine = std::make_unique<ScriptEngine>(*world);
  postSetup();
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…