61 [[nodiscard]] std::uint32_t
Version()
const;
81 [[nodiscard]] std::uint32_t
Version()
const;
90 bool WriteRecord(std::uint32_t a_type, std::uint32_t a_version,
const void* a_buf, std::uint32_t a_length)
const;
98 inline std::uint32_t
WriteRecord(std::uint32_t a_type, std::uint32_t a_version,
const T& a_buf)
const
100 return WriteRecord(a_type, a_version, std::addressof(a_buf),
sizeof(T));
109 inline std::uint32_t
WriteRecord(std::uint32_t a_type, std::uint32_t a_version,
const T (&a_buf)[N])
const
111 return WriteRecord(a_type, a_version, std::addressof(a_buf),
sizeof(T) * N);
114 [[nodiscard]]
bool OpenRecord(std::uint32_t a_type, std::uint32_t a_version)
const;
140 bool GetNextRecordInfo(std::uint32_t& a_type, std::uint32_t& a_version, std::uint32_t& a_length)
const;
231 template <
class Last>
234 return Register_Impl(a_last);
237 template <
class First,
class... Rest>
240 return Register_Impl(a_first) &&
Register(a_rest...);
297 bool Dispatch(std::uint32_t a_messageType,
void* a_data, std::uint32_t a_dataLen,
const char* a_receiver)
const;
362 constexpr void AuthorName(std::string_view a_name)
noexcept { SetCharBuffer(a_name, std::span{
author }); }
371 [](
const REL::Version& a_version)
noexcept { return a_version.pack(); });
375 constexpr void PluginName(std::string_view a_plugin)
noexcept { SetCharBuffer(a_plugin, std::span{
pluginName }); }
377#ifndef SKYRIMSE_PRE_1_6_629
388#ifndef SKYRIMSE_PRE_1_6_629
399#ifndef SKYRIMSE_PRE_1_6_629
423 static constexpr void SetCharBuffer(
424 std::string_view a_src,
425 std::span<char> a_dst)
noexcept
427 assert(a_src.size() < a_dst.size());
428 std::fill(a_dst.begin(), a_dst.end(),
'\0');
429 std::copy(a_src.begin(), a_src.end(), a_dst.begin());
432 static_assert(offsetof(PluginVersionData, dataVersion) == 0x000);
433 static_assert(offsetof(PluginVersionData, pluginVersion) == 0x004);
434 static_assert(offsetof(PluginVersionData, pluginName) == 0x008);
435 static_assert(offsetof(PluginVersionData, author) == 0x108);
436 static_assert(offsetof(PluginVersionData, supportEmail) == 0x208);
437#ifndef SKYRIMSE_PRE_1_6_629
438 static_assert(offsetof(PluginVersionData, padding2) == 0x305);
439 static_assert(offsetof(PluginVersionData, padding3) == 0x306);
440 static_assert(offsetof(PluginVersionData, padding5) == 0x309);
441 static_assert(offsetof(PluginVersionData, padding6) == 0x30A);
443 static_assert(offsetof(PluginVersionData, padding2) == 0x309);
444 static_assert(offsetof(PluginVersionData, padding3) == 0x30A);
446 static_assert(offsetof(PluginVersionData, compatibleVersions) == 0x30C);
447 static_assert(offsetof(PluginVersionData, xseMinimum) == 0x34C);
448 static_assert(
sizeof(PluginVersionData) == 0x350);
Definition: IVirtualMachine.h:39
Definition: VirtualMachine.h:46
Definition: GFxMovieView.h:24
Definition: GFxValue.h:90
Definition: InventoryEntryData.h:14
Definition: Relocation.h:275
Definition: Interfaces.h:29
@ kTrampoline
Definition: Interfaces.h:40
@ kMessaging
Definition: Interfaces.h:38
@ kPapyrus
Definition: Interfaces.h:35
@ kSerialization
Definition: Interfaces.h:36
@ kObject
Definition: Interfaces.h:39
@ kTask
Definition: Interfaces.h:37
@ kInvalid
Definition: Interfaces.h:33
@ kScaleform
Definition: Interfaces.h:34
@ kTotal
Definition: Interfaces.h:41
void * QueryInterface(std::uint32_t a_id) const
PluginHandle GetPluginHandle() const
std::uint32_t GetReleaseIndex() const
const PluginInfo * GetPluginInfo(const char *a_name) const
Definition: Interfaces.h:252
Dispatcher
Definition: Interfaces.h:285
void * GetEventDispatcher(Dispatcher a_dispatcherID) const
@ kVersion
Definition: Interfaces.h:266
std::uint32_t Version() const
const detail::SKSEMessagingInterface * GetProxy() const
bool Dispatch(std::uint32_t a_messageType, void *a_data, std::uint32_t a_dataLen, const char *a_receiver) const
bool RegisterListener(const char *a_sender, EventCallback *a_callback) const
@ kTotal
Definition: Interfaces.h:281
@ kPostPostLoad
Definition: Interfaces.h:272
@ kPostLoad
Definition: Interfaces.h:271
@ kPreLoadGame
Definition: Interfaces.h:273
@ kSaveGame
Definition: Interfaces.h:275
@ kNewGame
Definition: Interfaces.h:278
@ kDataLoaded
Definition: Interfaces.h:279
@ kInputLoaded
Definition: Interfaces.h:277
@ kDeleteGame
Definition: Interfaces.h:276
@ kPostLoadGame
Definition: Interfaces.h:274
bool RegisterListener(EventCallback *a_callback) const
void(Message *a_msg) EventCallback
Definition: Interfaces.h:262
Definition: Interfaces.h:307
SKSEObjectRegistry & GetObjectRegistry() const
SKSEPersistentObjectStorage & GetPersistentObjectStorage() const
std::uint32_t Version() const
@ kVersion
Definition: Interfaces.h:311
SKSEDelayFunctorManager & GetDelayFunctorManager() const
Definition: Interfaces.h:219
bool Register(First a_first, Rest... a_rest) const
Definition: Interfaces.h:238
const detail::SKSEPapyrusInterface * GetProxy() const
std::uint32_t Version() const
@ kVersion
Definition: Interfaces.h:226
bool(RE::BSScript::Internal::VirtualMachine *a_vm) RegFunction1
Definition: Interfaces.h:221
bool(RE::BSScript::IVirtualMachine *a_vm) RegFunction2
Definition: Interfaces.h:222
bool Register(Last a_last) const
Definition: Interfaces.h:232
Definition: Interfaces.h:17
const detail::SKSEInterface * GetProxy() const
std::uint32_t EditorVersion() const
REL::Version RuntimeVersion() const
std::uint32_t SKSEVersion() const
Definition: Interfaces.h:71
std::uint32_t WriteRecord(std::uint32_t a_type, std::uint32_t a_version, const T(&a_buf)[N]) const
Definition: Interfaces.h:109
bool ResolveHandle(RE::VMHandle a_oldHandle, RE::VMHandle &a_newHandle) const
std::uint32_t WriteRecordData(const T(&a_buf)[N]) const
Definition: Interfaces.h:135
void SetLoadCallback(EventCallback *a_callback) const
std::uint32_t WriteRecord(std::uint32_t a_type, std::uint32_t a_version, const T &a_buf) const
Definition: Interfaces.h:98
void SetFormDeleteCallback(FormDeleteCallback *a_callback) const
std::uint32_t ReadRecordData(T &a_buf) const
Definition: Interfaces.h:150
void(SerializationInterface *a_intfc) EventCallback
Definition: Interfaces.h:73
void(RE::VMHandle a_handle) FormDeleteCallback
Definition: Interfaces.h:74
@ kVersion
Definition: Interfaces.h:78
std::uint32_t ReadRecordData(void *a_buf, std::uint32_t a_length) const
void SetRevertCallback(EventCallback *a_callback) const
const detail::SKSESerializationInterface * GetProxy() const
std::uint32_t WriteRecordData(const T &a_buf) const
Definition: Interfaces.h:124
void SetUniqueID(std::uint32_t a_uid) const
bool WriteRecordData(const void *a_buf, std::uint32_t a_length) const
bool GetNextRecordInfo(std::uint32_t &a_type, std::uint32_t &a_version, std::uint32_t &a_length) const
void SetSaveCallback(EventCallback *a_callback) const
std::uint32_t ReadRecordData(T(&a_buf)[N]) const
Definition: Interfaces.h:161
bool ResolveFormID(RE::FormID a_oldFormID, RE::FormID &a_newFormID) const
std::uint32_t Version() const
bool WriteRecord(std::uint32_t a_type, std::uint32_t a_version, const void *a_buf, std::uint32_t a_length) const
bool OpenRecord(std::uint32_t a_type, std::uint32_t a_version) const
Definition: Interfaces.h:192
Definition: Interfaces.h:204
Definition: Interfaces.h:174
void AddUITask(UIDelegate_v1 *a_task) const
std::function< void()> TaskFn
Definition: Interfaces.h:176
const detail::SKSETaskInterface * GetProxy() const
void AddTask(TaskFn a_task) const
void AddUITask(TaskFn a_task) const
@ kVersion
Definition: Interfaces.h:180
void AddTask(TaskDelegate *a_task) const
std::uint32_t Version() const
Definition: Interfaces.h:325
void * AllocateFromBranchPool(std::size_t a_size) const
std::uint32_t Version() const
@ kVersion
Definition: Interfaces.h:329
void * AllocateFromLocalPool(std::size_t a_size) const
std::uint32_t FormID
Definition: BSCoreTypes.h:5
std::uint64_t VMHandle
Definition: BSCoreTypes.h:7
std::uint32_t PluginHandle
Definition: Stubs.h:11
Definition: Interfaces.h:255
std::uint32_t dataLen
Definition: Interfaces.h:258
const char * sender
Definition: Interfaces.h:256
std::uint32_t type
Definition: Interfaces.h:257
void * data
Definition: Interfaces.h:259
Definition: Interfaces.h:342
std::uint32_t version
Definition: Interfaces.h:350
const char * name
Definition: Interfaces.h:349
std::uint32_t infoVersion
Definition: Interfaces.h:348
@ kVersion
Definition: Interfaces.h:345
Definition: Interfaces.h:354
std::uint8_t padding5
Definition: Interfaces.h:409
std::uint16_t padding6
Definition: Interfaces.h:410
constexpr void UsesSigScanning(bool a_value) noexcept
Definition: Interfaces.h:387
std::uint8_t padding4
Definition: Interfaces.h:408
bool structsPost629
Definition: Interfaces.h:407
constexpr void MinimumRequiredXSEVersion(REL::Version a_version) noexcept
Definition: Interfaces.h:374
constexpr void PluginName(std::string_view a_plugin) noexcept
Definition: Interfaces.h:375
std::uint16_t padding3
Definition: Interfaces.h:404
std::uint32_t pluginVersion
Definition: Interfaces.h:396
std::uint32_t xseMinimum
Definition: Interfaces.h:420
constexpr void HasNoStructUse(bool a_value) noexcept
Definition: Interfaces.h:378
constexpr void CompatibleVersions(std::initializer_list< REL::Version > a_versions) noexcept
Definition: Interfaces.h:364
char pluginName[256]
Definition: Interfaces.h:397
constexpr void AuthorEmail(std::string_view a_email) noexcept
Definition: Interfaces.h:361
bool addressLibrary
Definition: Interfaces.h:405
std::uint8_t padding1
Definition: Interfaces.h:402
constexpr void PluginVersion(REL::Version a_version) noexcept
Definition: Interfaces.h:376
char author[256]
Definition: Interfaces.h:398
@ kVersion
Definition: Interfaces.h:358
std::uint8_t padding2
Definition: Interfaces.h:403
bool sigScanning
Definition: Interfaces.h:406
constexpr void UsesStructsPost629(bool a_value) noexcept
Definition: Interfaces.h:389
constexpr void AuthorName(std::string_view a_name) noexcept
Definition: Interfaces.h:362
bool noStructUse
Definition: Interfaces.h:401
std::uint32_t compatibleVersions[16]
Definition: Interfaces.h:419
const std::uint32_t dataVersion
Definition: Interfaces.h:395
char supportEmail[252]
Definition: Interfaces.h:400
constexpr void UsesAddressLibrary(bool a_value) noexcept
Definition: Interfaces.h:383