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
10namespace ll::service {
12 class Impl;
13 std::unique_ptr<Impl> impl;
14
15 PlayerInfo();
16
17public:
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
Definition PlayerInfo.h:11
Definition UUID.h:7
Definition optional_ref.h:10
Definition Generator.h:13