This commit is contained in:
Aria 2025-03-21 22:23:30 +11:00
commit 9c94d113d3
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
10260 changed files with 1237388 additions and 0 deletions

View file

@ -0,0 +1,38 @@
#ifndef STAR_TELEPORTER_DIALOG_HPP
#define STAR_TELEPORTER_DIALOG_HPP
#include "StarPane.hpp"
#include "StarWarping.hpp"
#include "StarPlayerUniverseMap.hpp"
#include "StarBookmarkInterface.hpp"
namespace Star {
STAR_CLASS(UniverseClient);
STAR_CLASS(PaneManager);
class TeleportDialog : public Pane {
public:
TeleportDialog(UniverseClientPtr client,
PaneManager* paneManager,
Json config,
EntityId sourceEntityId,
TeleportBookmark currentLocation);
void tick() override;
void selectDestination();
void teleport();
void editBookmark();
private:
EntityId m_sourceEntityId;
UniverseClientPtr m_client;
PaneManager* m_paneManager;
List<pair<WarpAction, bool>> m_destinations;
TeleportBookmark m_currentLocation;
};
}
#endif