CommonLibSSE (Parapets fork)
BSUIMessageData.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSFixedString.h"
4 #include "RE/B/BSString.h"
5 #include "RE/I/IUIMessageData.h"
6 #include "RE/U/UIMessage.h"
7 
8 namespace RE
9 {
11  {
12  public:
13  inline static constexpr auto RTTI = RTTI_BSUIMessageData;
14  inline static constexpr std::string_view CLASS_NAME = "BSUIMessageData";
15 
16  union Data
17  {
18  bool b;
19  std::uint32_t u;
20  float f;
21  void* p;
22  };
23  static_assert(sizeof(Data) == 0x8);
24 
25  ~BSUIMessageData() override; // 00
26 
27  static void SendUIBoolMessage(const BSFixedString& a_menu, UI_MESSAGE_TYPE a_type, bool a_data);
28  static void SendUIMessage(const BSFixedString& a_menu, UI_MESSAGE_TYPE a_type, std::uint32_t a_data);
29  static void SendUIPtrMessage(const BSFixedString& a_menu, UI_MESSAGE_TYPE a_type, void* a_data);
30  static void SendUIStringBoolMessage(const BSFixedString& a_menu, UI_MESSAGE_TYPE a_type, const BSFixedString& a_str, bool a_data);
31  static void SendUIStringFloatMessage(const BSFixedString& a_menu, UI_MESSAGE_TYPE a_type, const BSFixedString& a_str, float a_data);
32  static void SendUIStringMessage(const BSFixedString& a_menu, UI_MESSAGE_TYPE a_type, const BSFixedString& a_str);
33  static void SendUIStringUIntMessage(const BSFixedString& a_menu, UI_MESSAGE_TYPE a_type, const BSFixedString& a_str, std::uint32_t a_data);
34 
35  // members
36  BSString* str; // 10
38  Data data; // 20
39  };
40  static_assert(sizeof(BSUIMessageData) == 0x28);
41 }
Definition: BSUIMessageData.h:11
static void SendUIPtrMessage(const BSFixedString &a_menu, UI_MESSAGE_TYPE a_type, void *a_data)
static void SendUIStringUIntMessage(const BSFixedString &a_menu, UI_MESSAGE_TYPE a_type, const BSFixedString &a_str, std::uint32_t a_data)
static void SendUIMessage(const BSFixedString &a_menu, UI_MESSAGE_TYPE a_type, std::uint32_t a_data)
Data data
Definition: BSUIMessageData.h:38
static void SendUIStringMessage(const BSFixedString &a_menu, UI_MESSAGE_TYPE a_type, const BSFixedString &a_str)
BSFixedString fixedStr
Definition: BSUIMessageData.h:37
BSString * str
Definition: BSUIMessageData.h:36
static constexpr std::string_view CLASS_NAME
Definition: BSUIMessageData.h:14
static void SendUIStringFloatMessage(const BSFixedString &a_menu, UI_MESSAGE_TYPE a_type, const BSFixedString &a_str, float a_data)
~BSUIMessageData() override
static constexpr auto RTTI
Definition: BSUIMessageData.h:13
static void SendUIStringBoolMessage(const BSFixedString &a_menu, UI_MESSAGE_TYPE a_type, const BSFixedString &a_str, bool a_data)
static void SendUIBoolMessage(const BSFixedString &a_menu, UI_MESSAGE_TYPE a_type, bool a_data)
Definition: IUIMessageData.h:6
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_BSUIMessageData
Definition: Offsets_RTTI.h:3630
UI_MESSAGE_TYPE
Definition: UIMessage.h:10
Definition: BSUIMessageData.h:17
std::uint32_t u
Definition: BSUIMessageData.h:19
void * p
Definition: BSUIMessageData.h:21
bool b
Definition: BSUIMessageData.h:18
float f
Definition: BSUIMessageData.h:20