Makinom  2.21.0
API Documentation
GamingIsLove.Makinom.SaveGameSettings Class Reference
Inheritance diagram for GamingIsLove.Makinom.SaveGameSettings:
GamingIsLove.Makinom.BaseSettings GamingIsLove.Makinom.IBaseData

Public Member Functions

 SaveGameSettings (MakinomProjectAsset project)
 
override void EditorAutoSetup (string fieldName)
 Called for the field defined using the settingAutoSetup option of the GamingIsLove.Makinom.EditorInfoAttribute. More...
 
override void SetData (DataObject data)
 Sets the variables of the class using a GamingIsLove.Makinom.DataObject. More...
 
UIButtonInputContent GetFileInfo ()
 
UIButtonInputContent GetEmptyInfo ()
 
string GetSaveName (int index)
 
void ShowAutoSaveMessage ()
 
string GetAutoName (int index)
 
bool CanSaveVariable (string key)
 
void SaveMenuPause (bool pause)
 
virtual bool BlockAutoRemoveSceneData (string sceneName)
 
- Public Member Functions inherited from GamingIsLove.Makinom.BaseSettings
virtual void LoadProject (MakinomProjectAsset project)
 Loads the settings found in the Project asset. More...
 
virtual void InitDataAssetSettings ()
 Initializes the settings of directly referenced data assets. More...
 
virtual DataFile GetSaveData (bool encrypt, DataFile.SaveFormatType format)
 Gets the save data. More...
 
virtual bool HasChanged (MakinomProjectAsset project, bool encrypt, DataFile.SaveFormatType format, out DataFile file)
 
virtual DataObject GetData ()
 Gets a GamingIsLove.Makinom.DataObject representing the class. More...
 

Public Attributes

int saveSlots = 3
 
int autoSaveSlots = 1
 
SceneLoadType loadType = SceneLoadType.LoadLevel
 
string saveFileType = typeof(PersistentDataPathSaveGameFileHandler).ToString()
 
BaseSaveGameFileHandler saveFileSettings = new PersistentDataPathSaveGameFileHandler()
 
bool encryptData = false
 
bool storeOptionLanguage = false
 
bool storeOptionGlobalVolume = false
 
bool storeOptionSoundVolume = false
 
bool storeOptionMusicVolume = false
 
bool storeSaveConfirmation = false
 
bool storeOptionTextSpeed = false
 
bool ownScreenFade = false
 
ScreenFadeSettings screenFade
 
bool saveTime = true
 
bool saveVolumes = true
 
bool savePlayerPosition = true
 
bool saveMusic = true
 
string saveSceneName = ""
 
int saveSpawnID = 0
 
bool saveBlockStates = true
 
bool saveInputID = true
 
bool saveScenePosition = true
 
SaveOption objectVariableOption = SaveOption.Save
 
SaveOption terrainChangesOption = SaveOption.None
 
SceneSaveOption saveGameObjectSavers = SceneSaveOption.None
 
bool gameObjectSaversAutoRemove = false
 
int gameObjectSaversAutoRemoveAfter = 3
 
SceneSaveOption savePrefabSavers = SceneSaveOption.None
 
bool prefabSaversAutoRemove = false
 
int prefabSaversAutoRemoveAfter = 3
 
string [] noAutoRemoveScene = new string[0]
 
Selector variableSelector = Selector.All
 
string [] variableList = new string[0]
 
LanguageData< TextContentsaveFileName = new LanguageData<TextContent>(new TextContent("File <filenumber>"))
 
string saveTimeFormat = "yyyy-MM-dd HH:mm:ss"
 
ContentInputCustom fileButtonContent = new ContentInputCustom("<filename>")
 
ContentInputCustom emptyFileButtonContent = new ContentInputCustom("File <filenumber>")
 
DeleteSaveFileSetting deleteFile = new DeleteSaveFileSetting()
 
LanguageData< TextContentautoFileName = new LanguageData<TextContent>(new TextContent("AUTO <filenumber>"))
 
bool showAutoSaveMessage = false
 
UIBoxSelection autoBoxSettings
 
float autoVisibilityTime = 3
 
Content autoSaveMessage = new Content("Autosave")
 
UIBackgroundSettings [] defaultBackground = new UIBackgroundSettings[0]
 
UIBackgroundSettings [] generalBackground = new UIBackgroundSettings[0]
 
bool pauseGame = false
 
bool pauseTime = false
 
bool freezePause = false
 
bool setTimeScale = false
 
bool setMakinomScale = false
 
float timeScale = 1
 
SaveGameControl saveMenu = new SaveGameControl()
 
LoadGameControl loadMenu = new LoadGameControl()
 
bool showSPChoice = true
 
SavePointControl savePoint = new SavePointControl()
 

Properties

override string Filename [get]
 
- Properties inherited from GamingIsLove.Makinom.BaseSettings
abstract string Filename [get]
 Gets the filename used for saving the settings. More...
 
virtual System.Type InstanceType [get]
 
virtual int Count [get]
 
virtual bool HasGeneralSettings [get]
 

Member Function Documentation

◆ EditorAutoSetup()

override void GamingIsLove.Makinom.SaveGameSettings.EditorAutoSetup ( string  fieldName)
virtual

Called for the field defined using the settingAutoSetup option of the GamingIsLove.Makinom.EditorInfoAttribute.

Parameters
fieldNameThe name of the field the function is called for.

Reimplemented from GamingIsLove.Makinom.BaseSettings.

◆ SetData()

override void GamingIsLove.Makinom.SaveGameSettings.SetData ( DataObject  data)
virtual

Sets the variables of the class using a GamingIsLove.Makinom.DataObject.

Parameters
dataGamingIsLove.Makinom.DataObject containing the data.

Reimplemented from GamingIsLove.Makinom.BaseSettings.