persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
SaveSystem Class Reference

#include <SaveSystem.hpp>

Inheritance diagram for SaveSystem:
Collaboration diagram for SaveSystem:

Public Member Functions

void init () override
void shutdown () override
void update (ae::q20_12_t) override
void on_receive (const Event::ReadSave)
 ETL message handler to trigger a save read.
void on_receive (const Event::WriteSave)
 ETL message handler to trigger a save write.
void on_receive_unknown (const etl::imessage &msg)
 Fallback handler for unhandled ETL messages.

Private Member Functions

bool migrate_save_version (Save *saveData)
 SaveSystem ()

Private Attributes

IOManager & io = IOManager::getInstance()

Friends

class Singleton< SaveSystem >

Detailed Description

Definition at line 19 of file SaveSystem.hpp.

Constructor & Destructor Documentation

◆ SaveSystem()

SaveSystem::SaveSystem ( )
inlineprivate

Definition at line 65 of file SaveSystem.hpp.

Here is the caller graph for this function:

Member Function Documentation

◆ init()

void SaveSystem::init ( )
inlineoverride

Definition at line 23 of file SaveSystem.hpp.

◆ migrate_save_version()

bool SaveSystem::migrate_save_version ( Save * saveData)
private

Definition at line 41 of file SaveSystem.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_receive() [1/2]

void SaveSystem::on_receive ( const Event::ReadSave )

ETL message handler to trigger a save read.

Parameters
msgThe event to trigger a read

Definition at line 5 of file SaveSystem.cpp.

Here is the call graph for this function:

◆ on_receive() [2/2]

void SaveSystem::on_receive ( const Event::WriteSave )

ETL message handler to trigger a save write.

Parameters
msgThe event to trigger a write

Definition at line 31 of file SaveSystem.cpp.

Here is the call graph for this function:

◆ on_receive_unknown()

void SaveSystem::on_receive_unknown ( const etl::imessage & msg)
inline

Fallback handler for unhandled ETL messages.

Required by the ETL message router interface. Safely ignores any messages routed to the SaveSystem that do not have a specific handler.

Parameters
msgThe unhandled incoming message (unused).

Definition at line 57 of file SaveSystem.hpp.

◆ shutdown()

void SaveSystem::shutdown ( )
inlineoverride

Definition at line 27 of file SaveSystem.hpp.

◆ update()

void SaveSystem::update ( ae::q20_12_t )
inlineoverride

Definition at line 31 of file SaveSystem.hpp.

◆ Singleton< SaveSystem >

friend class Singleton< SaveSystem >
friend

Definition at line 62 of file SaveSystem.hpp.

Member Data Documentation

◆ io

IOManager& SaveSystem::io = IOManager::getInstance()
private

Definition at line 69 of file SaveSystem.hpp.


The documentation for this class was generated from the following files: