CommonLibSSE (powerof3)
IStore.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSFixedString.h"
4 #include "RE/B/BSStorage.h"
5 
6 namespace RE
7 {
8  namespace BSScript
9  {
10  class IStore : public BSStorage
11  {
12  public:
13  inline static constexpr auto RTTI = RTTI_BSScript__IStore;
14  inline static constexpr auto VTABLE = VTABLE_BSScript__IStore;
15 
16  ~IStore() override; // 00
17 
18  // override (BSStorage)
19  BSStorageDefs::ErrorCode Write(std::size_t a_numBytes, const std::byte* a_bytes) override; // 05
20 
21  // add
22  virtual bool Open(const char* a_fileName) = 0; // 06
23  virtual void Close(void) = 0; // 07
24  virtual const BSFixedString& GetRelPath() = 0; // 08
25  virtual bool HasOpenFile(void) = 0; // 09
26  virtual bool FileIsGood(void) = 0; // 0A
27  virtual void Unk_0B(void) = 0; // 0B
28  };
29  static_assert(sizeof(IStore) == 0x20);
30  }
31 }
Definition: IStore.h:11
virtual bool Open(const char *a_fileName)=0
static constexpr auto VTABLE
Definition: IStore.h:14
virtual bool HasOpenFile(void)=0
virtual void Close(void)=0
virtual void Unk_0B(void)=0
virtual const BSFixedString & GetRelPath()=0
virtual bool FileIsGood(void)=0
BSStorageDefs::ErrorCode Write(std::size_t a_numBytes, const std::byte *a_bytes) override
static constexpr auto RTTI
Definition: IStore.h:13
Definition: BSStorage.h:14
ErrorCode
Definition: ErrorCodes.h:8
Definition: AbsorbEffect.h:6
constexpr std::array< REL::ID, 1 > VTABLE_BSScript__IStore
Definition: Offsets_VTABLE.h:9460
constexpr REL::ID RTTI_BSScript__IStore(static_cast< std::uint64_t >(689049))