MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
mgl_leaderboard_server_delegate.h
[詳解]
1// SPDX-License-Identifier: Zlib
2/* ------------------------------------------------------------------------- */
9/* ------------------------------------------------------------------------- */
10
11#ifndef INCGUARD_MGL_LEADERBOARD_SERVER_DELEGATE_H_1630687009
12#define INCGUARD_MGL_LEADERBOARD_SERVER_DELEGATE_H_1630687009
13
15
16namespace MGL::Leaderboard
17{
20{
21public:
22 virtual ~ServerDelegate() noexcept = default;
23
24 /* ------------------------------------------------------------------------- */
30 /* ------------------------------------------------------------------------- */
31 virtual bool Initialize() noexcept = 0;
32
33 /* ------------------------------------------------------------------------- */
43 /* ------------------------------------------------------------------------- */
44 virtual bool FetchEntryData(Identifier identifier, uint32_t startRank, uint32_t requestSize, PlayerScope playerScope) noexcept = 0;
45
46 /* ------------------------------------------------------------------------- */
55 /* ------------------------------------------------------------------------- */
56 virtual bool FetchEntryDataAroundUser(Identifier identifier, uint32_t requestSize, PlayerScope playerScope) noexcept = 0;
57
58 /* ------------------------------------------------------------------------- */
65 /* ------------------------------------------------------------------------- */
66 virtual bool DownloadClipData(uint64_t clipID) noexcept = 0;
67
68 /* ------------------------------------------------------------------------- */
76 /* ------------------------------------------------------------------------- */
77 virtual bool UploadClipData(Identifier identifier, const ClipData &clipData) noexcept = 0;
78
79 /* ------------------------------------------------------------------------- */
88 /* ------------------------------------------------------------------------- */
89 virtual bool ReportScore(Identifier identifier, uint64_t score, const STL::vector<uint32_t> &options) noexcept = 0;
90
91 /* ------------------------------------------------------------------------- */
96 /* ------------------------------------------------------------------------- */
97 [[nodiscard]] virtual const FetchResults &GetFetchedData() const noexcept = 0;
98
99 /* ------------------------------------------------------------------------- */
104 /* ------------------------------------------------------------------------- */
105 [[nodiscard]] virtual const ReportResults &GetReportResults() const noexcept = 0;
106
107 /* ------------------------------------------------------------------------- */
112 /* ------------------------------------------------------------------------- */
113 [[nodiscard]] virtual const ClipData &GetClipData() const noexcept = 0;
114
115 /* ------------------------------------------------------------------------- */
120 /* ------------------------------------------------------------------------- */
121 [[nodiscard]] virtual ClipData::ErrorType GetClipDataUploadResults() const noexcept = 0;
122
123 /* ------------------------------------------------------------------------- */
129 /* ------------------------------------------------------------------------- */
130 [[nodiscard]] virtual bool IsProcessing() const noexcept = 0;
131};
132} // namespace MGL::Leaderboard
133
134#endif // INCGUARD_MGL_LEADERBOARD_SERVER_DELEGATE_H_1630687009
135
136// vim: et ts=4 sw=4 sts=4
クリップデータ
Definition mgl_leaderboard_clipdata.h:21
MGL リーダーボードサーバのデリゲートクラス
Definition mgl_leaderboard_server_delegate.h:20
virtual bool UploadClipData(Identifier identifier, const ClipData &clipData) noexcept=0
クリップデータの送信
virtual ClipData::ErrorType GetClipDataUploadResults() const noexcept=0
クリップデータのアップロード結果を取得
virtual bool FetchEntryDataAroundUser(Identifier identifier, uint32_t requestSize, PlayerScope playerScope) noexcept=0
プレイヤーの順位を中心にエントリデータを取得
virtual bool DownloadClipData(uint64_t clipID) noexcept=0
クリップデータのダウンロード
virtual bool Initialize() noexcept=0
初期化処理
virtual const ReportResults & GetReportResults() const noexcept=0
スコアの送信結果を取得
virtual const FetchResults & GetFetchedData() const noexcept=0
エントリ取得結果を取得
virtual bool ReportScore(Identifier identifier, uint64_t score, const STL::vector< uint32_t > &options) noexcept=0
スコアの送信
virtual const ClipData & GetClipData() const noexcept=0
ダウンロードしたクリップデータを取得
virtual bool FetchEntryData(Identifier identifier, uint32_t startRank, uint32_t requestSize, PlayerScope playerScope) noexcept=0
エントリデータを取得
virtual bool IsProcessing() const noexcept=0
処理中かどうかを取得
MGL リーダーボード関連各種定義
PlayerScope
プレイヤーのスコープ
Definition mgl_leaderboard_defs.h:40
エントリ取得結果
Definition mgl_leaderboard_defs.h:59
エントリ送信結果
Definition mgl_leaderboard_defs.h:68