forked from Ryan-rsm-McKenzie/CommonLibSSE
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
67 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include "RE/B/BSIntrusiveRefCounted.h" | ||
|
||
namespace RE | ||
{ | ||
class BSStorage; | ||
|
||
namespace REFREventCallbacks | ||
{ | ||
class IEventCallback : public BSIntrusiveRefCounted | ||
{ | ||
public: | ||
inline static constexpr auto RTTI = RTTI_REFREventCallbacks__IEventCallback; | ||
inline static constexpr auto VTABLE = VTABLE_REFREventCallbacks__IEventCallback; | ||
|
||
virtual ~IEventCallback(); // 00 | ||
|
||
// add | ||
virtual void operator()() = 0; // 01 | ||
virtual bool Save(BSStorage& a_storage); // 02 | ||
virtual const BSFixedString* GetType() = 0; // 03 | ||
virtual bool Load(const BSStorage& a_storage); // 04 | ||
}; | ||
static_assert(sizeof(IEventCallback) == 0x10); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#pragma once | ||
|
||
#include "RE/B/BSTSmartPointer.h" | ||
#include "RE/N/NiSmartPointer.h" | ||
|
||
namespace RE | ||
{ | ||
class TESObjectREFR; | ||
|
||
namespace REFREventCallbacks | ||
{ | ||
class IEventCallback; | ||
} | ||
|
||
struct TESTopicInfoEvent | ||
{ | ||
public: | ||
enum class TopicInfoEventType | ||
{ | ||
kTopicBegin = 0, | ||
kTopicEnd | ||
}; | ||
|
||
// members | ||
BSTSmartPointer<REFREventCallbacks::IEventCallback> callback; // 00 | ||
NiPointer<TESObjectREFR> speakerRef; // 08 | ||
FormID topicInfoFormID; // 10 | ||
stl::enumeration<TopicInfoEventType, std::uint32_t> type; // 14 | ||
std::uint16_t stage; // 18 | ||
}; | ||
static_assert(sizeof(TESTopicInfoEvent) == 0x20); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters