21 lines
438 B
C
21 lines
438 B
C
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Engine/Platform/Platform.h"
|
|
#include "Engine/Platform/User.h"
|
|
#include "Engine/Core/Collections/Array.h"
|
|
|
|
inline void OnPlatformUserAdd(User* user)
|
|
{
|
|
Platform::Users.Add(user);
|
|
Platform::UserAdded(user);
|
|
}
|
|
|
|
inline void OnPlatformUserRemove(User* user)
|
|
{
|
|
Platform::Users.Remove(user);
|
|
Platform::UserRemoved(user);
|
|
Delete(user);
|
|
}
|