mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
Rename initialize for client/server/parent
This commit is contained in:
parent
9318ab10b2
commit
a035be66bd
3 changed files with 5 additions and 5 deletions
|
@ -20,7 +20,7 @@ class IClient {
|
|||
}
|
||||
|
||||
protected:
|
||||
void Initialize(SharedPtr<Parent> parent)
|
||||
void SetParent(SharedPtr<Parent> parent)
|
||||
{
|
||||
this->parent = std::move(parent);
|
||||
}
|
||||
|
|
|
@ -13,11 +13,11 @@ class IClientServerParent {
|
|||
using ServerType = Server;
|
||||
|
||||
protected:
|
||||
void Initialize()
|
||||
void SetClientServerParent()
|
||||
{
|
||||
Parent par = (Parent *)this;
|
||||
client.Initialize(par);
|
||||
server.Initialize(par);
|
||||
client.SetParent(par);
|
||||
server.SetParent(par);
|
||||
}
|
||||
|
||||
ClientType client{};
|
||||
|
|
|
@ -20,7 +20,7 @@ class IServer {
|
|||
}
|
||||
|
||||
protected:
|
||||
void Initialize(SharedPtr<Parent> parent)
|
||||
void SetParent(SharedPtr<Parent> parent)
|
||||
{
|
||||
this->parent = std::move(parent);
|
||||
this->client = &this->parent->client;
|
||||
|
|
Loading…
Reference in a new issue