PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer Class Reference

Persistent data component for S-Inventory containers. More...

Inheritance diagram for PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer:
Collaboration diagram for PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer:

Public Member Functions

void OnRecordPersistentData ()
 Saves the item group's contents in Variable ItemGroup_saveName. More...
 
void OnApplyPersistentData ()
 Replaces the contents of the item group with the saved data. More...
 
void OnRecordPersistentData ()
 Saves the item group's contents in Variable ItemGroup_saveName. More...
 
void OnApplyPersistentData ()
 Replaces the contents of the item group with the saved data. More...
 

Public Attributes

string saveName = string.Empty
 
bool debug = false
 

Protected Member Functions

virtual void Awake ()
 
virtual void OnEnable ()
 
virtual void OnDisable ()
 
virtual void Awake ()
 
virtual void OnEnable ()
 
virtual void OnDisable ()
 

Properties

string? internalName [get, set]
 
string variableName [get]
 

Detailed Description

Persistent data component for S-Inventory containers.

Member Function Documentation

◆ Awake() [1/2]

virtual void PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer.Awake ( )
protectedvirtual

◆ Awake() [2/2]

virtual void PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer.Awake ( )
protectedvirtual

◆ OnApplyPersistentData() [1/2]

void PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer.OnApplyPersistentData ( )

Replaces the contents of the item group with the saved data.

◆ OnApplyPersistentData() [2/2]

void PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer.OnApplyPersistentData ( )

Replaces the contents of the item group with the saved data.

◆ OnDisable() [1/2]

virtual void PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer.OnDisable ( )
protectedvirtual

◆ OnDisable() [2/2]

virtual void PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer.OnDisable ( )
protectedvirtual

◆ OnEnable() [1/2]

virtual void PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer.OnEnable ( )
protectedvirtual

◆ OnEnable() [2/2]

virtual void PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer.OnEnable ( )
protectedvirtual

◆ OnRecordPersistentData() [1/2]

void PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer.OnRecordPersistentData ( )

Saves the item group's contents in Variable ItemGroup_saveName.

The saved data is a string in the format "#:name, #:name, ..." where # is the amount and name is the name of the item.

◆ OnRecordPersistentData() [2/2]

void PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer.OnRecordPersistentData ( )

Saves the item group's contents in Variable ItemGroup_saveName.

The saved data is a string in the format "#:name, #:name, ..." where # is the amount and name is the name of the item.

Member Data Documentation

◆ debug

bool PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer.debug = false

◆ saveName

string PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer.saveName = string.Empty

Property Documentation

◆ internalName

string PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer.internalName
getset

◆ variableName

string PixelCrushers.DialogueSystem.SInventory.SInventoryPersistentContainer.variableName
get

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