wavelength 1.0.0
Loading...
Searching...
No Matches
saveerrorscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/errorscreen.h"
4#include "script/dataarray.h"
6#include "ui/uiscreen.h"
7
16public:
24 explicit SaveErrorScreen(DataArray *pData) : ErrorScreen(pData) {
25 }
26
33 ~SaveErrorScreen() override {
34 }
35
44 static UIScreen *New(DataArray *pData) {
45 return new SaveErrorScreen(pData);
46 }
47
55 const char *Title() override {
56 return "";
57 }
58
67 bool DispatchPriv(Message *pMsg) override;
68
69private:
81 bool HandleSelect(UIComponentSelectMsg *pMsg);
82};
Reference-counted array of script data nodes.
Definition dataarray.h:20
ErrorScreen(DataArray *pData)
Construct the screen from its script description.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
bool DispatchPriv(Message *pMsg) override
Route the choice to HandleSelect().
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition saveerrorscreen.h:44
SaveErrorScreen(DataArray *pData)
Construct the screen from its script description.
Definition saveerrorscreen.h:24
~SaveErrorScreen() override
Destroy the screen.
Definition saveerrorscreen.h:33
const char * Title() override
Report the empty title of the screen.
Definition saveerrorscreen.h:55
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIScreen(DataArray *pData)
Construct a screen from its script description.