mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-07 08:07:40 +03:00
18 lines
468 B
C++
18 lines
468 B
C++
#pragma once
|
|
#include <memory>
|
|
|
|
#include "Activity.h"
|
|
|
|
class ActivityWithSubactivity : public Activity {
|
|
protected:
|
|
std::unique_ptr<Activity> subActivity = nullptr;
|
|
|
|
public:
|
|
void exitActivity();
|
|
void enterNewActivity(Activity* activity);
|
|
explicit ActivityWithSubactivity(std::string name, GfxRenderer& renderer, MappedInputManager& mappedInput)
|
|
: Activity(std::move(name), renderer, mappedInput) {}
|
|
void loop() override;
|
|
void onExit() override;
|
|
};
|