mirror of
https://github.com/InstanceBrick/nightcap.git
synced 2026-10-28 17:01:23 +01:00
32 lines
896 B
C++
32 lines
896 B
C++
#ifndef MOCKTAIL_RUNTIME_ROBLOX_EXPERIENCE_PRESENCE_H_
|
|
#define MOCKTAIL_RUNTIME_ROBLOX_EXPERIENCE_PRESENCE_H_
|
|
|
|
#include "runtime/roblox_experience_launch_bridge.h"
|
|
|
|
namespace mocktail {
|
|
namespace runtime {
|
|
|
|
enum class RobloxExperiencePresencePhase {
|
|
kBrowsing,
|
|
kJoining,
|
|
kPlaying,
|
|
};
|
|
|
|
using NotifyRobloxExperiencePresenceFn =
|
|
void (*)(void* context, RobloxExperiencePresencePhase phase,
|
|
const RobloxExperienceLaunchRequest* request);
|
|
|
|
// Non-owning observer retained by RobloxExperienceComposition. Its owner must
|
|
// outlive the composition. Browsing notifications carry a null request.
|
|
struct RobloxExperiencePresenceObserver {
|
|
void* context = nullptr;
|
|
NotifyRobloxExperiencePresenceFn notify = nullptr;
|
|
|
|
bool valid() const { return notify != nullptr; }
|
|
};
|
|
|
|
} // namespace runtime
|
|
} // namespace mocktail
|
|
|
|
#endif // MOCKTAIL_RUNTIME_ROBLOX_EXPERIENCE_PRESENCE_H_
|