How does Inventory BridgeSaver's save /load are called (or invoked)? any hint welcomed

honesyokan

New member
I'm currently searching how does Inventory BridgeSaver's save /load are called (or invoked) in UIS UCC integration Demo.
I read through documentation, and read script but couldn't figure out.
Is there any hint or route after I click save-confirm button?

some event is set? or function is called?
thanks.
スクリーンショット 2023-07-23 15.13.33.png
 
I assum you've read this documentation page:

When pressing this "save" button this function is called
Code:
SaveSystemManager.Save(m_SelectedIndex);
When pressing this "load" button this function is called
Code:
SaveSystemManager.Load(m_SelectedIndex);

This tells the save system to save/load the data.

The way it works is that "Saver" components register to the SaveSystemManager. By doing so their Serialize function is called. giving the save system manager a serializable set of data it can save.

If you want to save more stuff you can simply add a new Saver component.
If you just want an event to know when the save is happening check out the EventNames.cs file:
You'll find all Opsive events there. the ones related to save/load are:

Code:
//A new Saver was registered in the Save System Manager.
public const string c_OnSaverRegistered_SaverBase = "c_OnSaverRegistered_SaverBase";
//A saver was unregistered from the Save system Manager.
public const string c_OnSaverUnregistered_SaverBase = "c_OnSaverUnregistered_SaverBase";
//The save system is about to start saving.
public const string c_WillStartSaving_Index = "c_WillStartSaving";
//The save system finished saving.
public const string c_SavingComplete_Index = "c_SavingComplete";
//The save system is about to start loading.
public const string c_WillStartLoadingSave_Index = "c_WillStartLoadingSave";
//The save system finished loading.
public const string c_LoadingSaveComplete_Index = "c_LoadingSaveComplete";
//The save system will be deleted.
public const string c_WillDeleteSave_Index = "c_WillDeleteSave";
//The save system deleted the save data.
public const string c_DeleteSaveComplete_Index = "c_DeleteSaveComplete";
//The inventory component is about to start saving.
public const string c_WillStartSaving_Inventory = "c_WillStartSaving_Inventory";
//The inventory component finished saving.
public const string c_SavingComplete_Inventory_InventorySaveData = "c_SavingComplete_Inventory_InventorySaveData";
//The inventory component is about to start loading.
public const string c_WillStartLoadingSave_Inventory_NullableInventorySaveData = "c_WillStartLoadingSave_Inventory_NullableInventorySaveData";
//The inventory component finished loading.
public const string c_LoadingSaveComplete_Inventory_InventorySaveData = "c_LoadingSaveComplete_Inventory_InventorySaveData";

I hope that helps
 
I assum you've read this documentation page:

When pressing this "save" button this function is called
Code:
SaveSystemManager.Save(m_SelectedIndex);
When pressing this "load" button this function is called
Code:
SaveSystemManager.Load(m_SelectedIndex);

This tells the save system to save/load the data.

The way it works is that "Saver" components register to the SaveSystemManager. By doing so their Serialize function is called. giving the save system manager a serializable set of data it can save.

If you want to save more stuff you can simply add a new Saver component.
If you just want an event to know when the save is happening check out the EventNames.cs file:
You'll find all Opsive events there. the ones related to save/load are:

Code:
//A new Saver was registered in the Save System Manager.
public const string c_OnSaverRegistered_SaverBase = "c_OnSaverRegistered_SaverBase";
//A saver was unregistered from the Save system Manager.
public const string c_OnSaverUnregistered_SaverBase = "c_OnSaverUnregistered_SaverBase";
//The save system is about to start saving.
public const string c_WillStartSaving_Index = "c_WillStartSaving";
//The save system finished saving.
public const string c_SavingComplete_Index = "c_SavingComplete";
//The save system is about to start loading.
public const string c_WillStartLoadingSave_Index = "c_WillStartLoadingSave";
//The save system finished loading.
public const string c_LoadingSaveComplete_Index = "c_LoadingSaveComplete";
//The save system will be deleted.
public const string c_WillDeleteSave_Index = "c_WillDeleteSave";
//The save system deleted the save data.
public const string c_DeleteSaveComplete_Index = "c_DeleteSaveComplete";
//The inventory component is about to start saving.
public const string c_WillStartSaving_Inventory = "c_WillStartSaving_Inventory";
//The inventory component finished saving.
public const string c_SavingComplete_Inventory_InventorySaveData = "c_SavingComplete_Inventory_InventorySaveData";
//The inventory component is about to start loading.
public const string c_WillStartLoadingSave_Inventory_NullableInventorySaveData = "c_WillStartLoadingSave_Inventory_NullableInventorySaveData";
//The inventory component finished loading.
public const string c_LoadingSaveComplete_Inventory_InventorySaveData = "c_LoadingSaveComplete_Inventory_InventorySaveData";

I hope that helps
Thank you for the answer. this is what I wanted to know! This saves me a lot!Thank you for great support as always!
 
Top