Chicane

Instance

Header
Chicane/Application/Instance.hpp
Namespace
Chicane::Application::Instance

Construtores

ModificadorNomeDescrição
Instance()

Destruidores

ModificadorNomeDescrição
~Instance()

Funções

AcessoModificadorTipoNomeDescrição
publicvoidsetup(const CreateInfo& inCreateInfo)
publicvoidrun()
publicconst Telemetry&getTelemetry()
publicboolhasController()
publicController*getController()
publicvoidsetController(Controller* inController)
publicSubscription<Controller*>*watchController(std::function<void (Controller*)> inNext, std::function<void (const std::string&)> inError, std::function<void ()> inComplete)
publicboolhasLevel()
publicLevel*getLevel()
publicvoidsetLevel(Level* inLevel)
publicSubscription<Level*>*watchLevel(std::function<void (Level*)> inNext, std::function<void (const std::string&)> inError, std::function<void ()> inComplete)
publicboolhasCamera()
publicCameraComponent*getCamera()
publicvoidsetCamera(CameraComponent* inCamera)
publicSubscription<CameraComponent*>*watchCamera(std::function<void (CameraComponent*)> inNext, std::function<void (const std::string&)> inError, std::function<void ()> inComplete)
publicboolhasView()
publicGrid::View*getView()
publicvoidsetView(Grid::View* inView)
publicSubscription<View*>*watchCamera(std::function<void (Grid::View*)> inNext, std::function<void (const std::string&)> inError, std::function<void ()> inComplete)
publicboolhasWindow()
publicT*getWindow<T = Window::Instance>()
publicboolhasRenderer()
publicT*getRenderer<T = Renderer::Instance>()
privatevoidinitWindow(const Window::CreateInfo& inCreateInfo)
privatevoidinitRenderer(Renderer::Type inRenderer)
privatevoidinitDefaultController()
privatevoidinitDefaultLevel()
privatevoidinitDefaultCamera()
privatevoidinitDefaultLayers()
privatevoidinitEvents()
privatevoidonEvent(const SDL_Event& inEvent)
privatevoidonRender()

Propriedades

AcessoModificadorTipoNomeDescrição
privateTelemetrym_telemetry
privatestd::unique_ptr<Controller>m_defaultController
privateController*m_controller
privatestd::unique_ptr<Observable<Controller*>>m_controllerObservable
privatestd::unique_ptr<Level>m_defaultLevel
privateLevel*m_level
privatestd::unique_ptr<Observable<Level*>>m_levelObservable
privateCameraComponent*m_defaultCamera
privateCameraComponent*m_camera
privatestd::unique_ptr<Observable<CameraComponent*>>m_cameraObservable
privatestd::unordered_map<std::string, Grid::View*>m_views
privateGrid::View*m_view
privatestd::unique_ptr<Observable<Grid::View*>>m_viewObservable
privatestd::unique_ptr<Window::Instance>m_window
privatestd::unique_ptr<Renderer::Instance>m_renderer