LeviLamina
Loading...
Searching...
No Matches
TitleMessage.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5class TitleMessage {
6public:
7 // member variables
8 // NOLINTBEGIN
9 ::ll::TypedStorage<8, 32, ::std::string> mTitle;
10 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mFilteredTitle;
11 ::ll::TypedStorage<8, 32, ::std::string> mSubtitle;
12 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mFilteredSubtitle;
13 ::ll::TypedStorage<4, 4, int> mFadeInTime;
14 ::ll::TypedStorage<4, 4, int> mStayTime;
15 ::ll::TypedStorage<4, 4, int> mFadeOutTime;
16 ::ll::TypedStorage<8, 32, ::std::string> mActionBarMessage;
17 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mFilteredActionBarMessage;
18 // NOLINTEND
19
20public:
21 // prevent constructor by default
22 TitleMessage(TitleMessage const&);
23
24public:
25 // member functions
26 // NOLINTBEGIN
27 MCAPI TitleMessage();
28
29 MCAPI void clearTitleMessages();
30
31 MCAPI ::TitleMessage& copyTitleMessageWithSubtitle(::TitleMessage const& sourceTitle);
32
33 MCFOLD ::std::string const& getActionBarMessage() const;
34
35 MCFOLD int getFadeInTime() const;
36
37 MCFOLD int getFadeOutTime() const;
38
39 MCFOLD ::std::optional<::std::string> const& getFilteredActionBarMessage() const;
40
41 MCFOLD ::std::optional<::std::string> const& getFilteredSubtitle() const;
42
43 MCFOLD ::std::optional<::std::string> const& getFilteredTitle() const;
44
45 MCFOLD int getStayTime() const;
46
47 MCFOLD ::std::string const& getSubtitle() const;
48
49 MCFOLD ::std::string const& getTitle() const;
50
51 MCFOLD bool hasSubtitle() const;
52
53 MCFOLD bool hasTitle() const;
54
55 MCAPI ::TitleMessage& operator=(::TitleMessage const&);
56
57 MCAPI void resetTitle();
58
59 MCAPI void setActionBarMessage(::std::string const& message, ::std::optional<::std::string> filteredMessage);
60
61 MCAPI void setSubtitle(::std::string const& subtitle, ::std::optional<::std::string> filteredSubtitle);
62
63 MCAPI void setTitle(::std::string const& title, ::std::optional<::std::string> filteredTitle);
64
65 MCAPI void setTitleAnimationTimes(int fadeInTime, int stayTime, int fadeOutTime);
66
67 MCAPI ~TitleMessage();
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCAPI void* $ctor();
74 // NOLINTEND
75
76public:
77 // destructor thunk
78 // NOLINTBEGIN
79 MCAPI void $dtor();
80 // NOLINTEND
81};
Definition TitleMessage.h:5