CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
SkyrimScriptStore.h
Go to the documentation of this file.
1#pragma once
2
4#include "RE/I/IStore.h"
5
6namespace RE
7{
8 namespace BSResource
9 {
10 class Stream;
11 }
12
13 namespace SkyrimScript
14 {
15 class Store : public BSScript::IStore
16 {
17 public:
18 inline static constexpr auto RTTI = RTTI_SkyrimScript__Store;
19
20 ~Store() override; // 00
21
22 // override (BSScript::IStore)
23 std::size_t GetSize() const override; // 01
24 std::size_t GetPosition() const override; // 02
25 BSStorageDefs::ErrorCode Seek(std::size_t a_offset, BSStorageDefs::SeekMode a_seekMode) const override; // 03
26 BSStorageDefs::ErrorCode Read(std::size_t a_numBytes, std::byte* a_bytes) const override; // 04
27 bool Open(const char* a_fileName) override; // 06
28 void Close(void) override; // 07
29 const BSFixedString& GetRelPath() override; // 08 - { return relPath; }
30 bool HasOpenFile() override; // 09 - { return hasOpenFile; }
31 bool FileIsGood() override; // 0A - { return fileIsGood; }
32 void Unk_0B(void) override; // 0B
33
34 // members
35 std::uint64_t unk20; // 20
38 bool hasOpenFile; // 38
39 bool fileIsGood; // 39
40 std::uint16_t pad3A; // 3A
41 std::uint32_t pad3C; // 3C
42 };
43 static_assert(sizeof(Store) == 0x40);
44 }
45}
Definition: Stream.h:21
Definition: IStore.h:11
Definition: SkyrimScriptStore.h:16
const BSFixedString & GetRelPath() override
bool hasOpenFile
Definition: SkyrimScriptStore.h:38
std::size_t GetSize() const override
BSStorageDefs::ErrorCode Read(std::size_t a_numBytes, std::byte *a_bytes) const override
std::uint64_t unk20
Definition: SkyrimScriptStore.h:35
BSFixedString relPath
Definition: SkyrimScriptStore.h:37
bool HasOpenFile() override
static constexpr auto RTTI
Definition: SkyrimScriptStore.h:18
std::size_t GetPosition() const override
std::uint32_t pad3C
Definition: SkyrimScriptStore.h:41
BSStorageDefs::ErrorCode Seek(std::size_t a_offset, BSStorageDefs::SeekMode a_seekMode) const override
void Close(void) override
bool fileIsGood
Definition: SkyrimScriptStore.h:39
bool FileIsGood() override
void Unk_0B(void) override
std::uint16_t pad3A
Definition: SkyrimScriptStore.h:40
bool Open(const char *a_fileName) override
BSResource::Stream * stream
Definition: SkyrimScriptStore.h:36
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_SkyrimScript__Store
Definition: Offsets_RTTI.h:5862