11#ifndef INCGUARD_MGL_SAVEDATA_H_1628644650 
   12#define INCGUARD_MGL_SAVEDATA_H_1628644650 
   17namespace MGL::Savedata
 
   27template <
class DelegateClass, 
class... Args>
 
   28inline int32_t CreateServer(Args... args) 
noexcept 
   39    return server.Initialize(delegate);
 
 
   59bool SaveRequests(DataIdentifier identifier, uint32_t index = 0) noexcept;
 
   60bool LoadRequests(const STL::vector<RequestInfo> &requests, 
bool haltOnError = true, 
bool errorOnFileNotExist = true) noexcept;
 
   61bool LoadRequests(DataIdentifier identifier, uint32_t index = 0, 
bool errorOnFileNotExist = true) noexcept;
 
   63bool SaveSynchronously(const STL::vector<RequestInfo> &requests, 
bool haltOnError = true) noexcept;
 
   64bool SaveSynchronously(DataIdentifier identifier, uint32_t index = 0) noexcept;
 
   65bool LoadSynchronously(const STL::vector<RequestInfo> &requests, 
bool haltOnError = true, 
bool errorOnFileNotExist = true) noexcept;
 
   66bool LoadSynchronously(DataIdentifier identifier, uint32_t index = 0, 
bool errorOnFileNotExist = true) noexcept;
 
   68[[nodiscard]] 
bool IsLoading() noexcept;
 
   69[[nodiscard]] 
bool IsSaving() noexcept;
 
   70[[nodiscard]] 
bool IsReady() noexcept;
 
   71[[nodiscard]] 
bool IsProcessing() noexcept;
 
   72[[nodiscard]] 
bool IsSucceeded() noexcept;
 
   73[[nodiscard]] STL::vector<Result> GetLastResults() noexcept;
 
セーブデータサーバ
Definition mgl_savedata_server.h:26
 
static Server & CreateInstance(Args... args) noexcept
Definition mgl_singleton.h:52
 
static Server & GetInstance() noexcept
Definition mgl_singleton.h:74
 
static bool HasInstance() noexcept
Definition mgl_singleton.h:102
 
Server * GetServer() noexcept
セーブデータサーバの取得
Definition mgl_savedata.h:48
 
std::vector< T, Allocator< T > > vector
std::vectorの代替
Definition mgl_stl_containers.h:51
 
std::unique_ptr< T, Deleter > unique_ptr
MGLのアロケータを利用するユニークポインタ
Definition mgl_stl_memory.h:256