dolphin/Source/Core/VideoCommon/NetPlayGolfUI.h
Lioncash cf0f2bbf1d VideoCommon/NetPlayGolfUI: Default the destructor in the cpp file
Ensures the destruction logic is kept local to the translation unit. It
also doesn't really do much to have it specified in the header.
2019-05-29 06:20:05 -04:00

27 lines
487 B
C++

// Copyright 2019 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include <string>
namespace NetPlay
{
class NetPlayClient;
}
class NetPlayGolfUI
{
public:
explicit NetPlayGolfUI(std::shared_ptr<NetPlay::NetPlayClient> netplay_client);
~NetPlayGolfUI();
void Display();
private:
std::weak_ptr<NetPlay::NetPlayClient> m_netplay_client;
};
extern std::unique_ptr<NetPlayGolfUI> g_netplay_golf_ui;