-
Notifications
You must be signed in to change notification settings - Fork 10
/
GameObjectBrowser.ixx
46 lines (35 loc) · 1.18 KB
/
GameObjectBrowser.ixx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* SDK module for Trilogy Online modification.
* The author of this file is the lead developer of Trilogy Online.
* Detailed information can be found on the website.
* https://trilogy-online.com/
*/
module;
#include <string>
#include <vector>
#include <memory>
export module TrilogyOnline.SDK.GameObjectBrowser;
import TrilogyOnline.SDK.Fundamental;
import TrilogyOnline.SDK.Browser;
export namespace TrilogyOnline
{
namespace API
{
class CGameObjectBrowser : public CBrowser
{
public:
class CState
{
public:
virtual ~CState() noexcept = default;
virtual void OnEvent(CGameObjectBrowser& gameObjectBrowser, const std::u16string_view eventName, const std::vector<std::unique_ptr<CMultiArgument>>& multiArguments) { }
virtual void OnLoadStart(CGameObjectBrowser& gameObjectBrowser) { }
virtual void OnLoadEnd(CGameObjectBrowser& gameObjectBrowser, const Int32 httpStatusCode) { }
virtual void OnLoadError(CGameObjectBrowser& gameObjectBrowser, const std::u16string_view errorText, const std::u16string_view failedUrl) { }
};
virtual void SetState(CState* const value) noexcept = 0;
[[nodiscard]]
virtual CState* GetState() const noexcept = 0;
};
}
}