LeviLamina
Loading...
Searching...
No Matches
PlayerInfo.h
1
#pragma once
2
3
#include <memory>
4
5
#include "ll/api/base/Macro.h"
6
#include "ll/api/coro/Generator.h"
7
8
#include "mc/platform/UUID.h"
9
10
namespace
ll::service {
11
class
PlayerInfo
{
12
class
Impl;
13
std::unique_ptr<Impl> impl;
14
15
PlayerInfo
();
16
17
public
:
18
struct
PlayerInfoEntry
{
19
mce::UUID
uuid;
20
std::string xuid;
21
std::string name;
22
};
23
24
LLAPI
static
PlayerInfo
& getInstance();
25
26
LLAPI
bool
erase(
mce::UUID
);
27
LLNDAPI
optional_ref<PlayerInfoEntry const>
fromUuid(
mce::UUID
)
const
;
28
LLNDAPI
optional_ref<PlayerInfoEntry const>
fromXuid(std::string_view)
const
;
29
LLNDAPI
optional_ref<PlayerInfoEntry const>
fromName(std::string_view)
const
;
30
LLNDAPI
coro::Generator<PlayerInfoEntry const&>
entries()
const
;
31
};
32
}
// namespace ll::service
ll::service::PlayerInfo
Definition
PlayerInfo.h:11
mce::UUID
Definition
UUID.h:7
optional_ref
Definition
optional_ref.h:10
ll::coro::Generator
Definition
Generator.h:13
ll::service::PlayerInfo::PlayerInfoEntry
Definition
PlayerInfo.h:18
src-server
ll
api
service
PlayerInfo.h
Generated on Sun Oct 12 2025 06:31:19 for LeviLamina by
1.12.0