mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-04-24 21:44:51 +00:00
28 lines
506 B
C++
28 lines
506 B
C++
#pragma once
|
|
|
|
#include <mesosphere/core/types.hpp>
|
|
|
|
namespace mesosphere
|
|
{
|
|
|
|
template<typename Parent, typename Client, typename Server>
|
|
class IClientServerParent {
|
|
public:
|
|
using ParentType = Parent;
|
|
using ClientType = Client;
|
|
using ServerType = Server;
|
|
|
|
void SetClientServerParent()
|
|
{
|
|
Parent *par = (Parent *)this;
|
|
client.SetParent(par);
|
|
server.SetParentAndClient(par, &client);
|
|
}
|
|
|
|
protected:
|
|
|
|
ClientType client{};
|
|
ServerType server{};
|
|
};
|
|
|
|
}
|