diff --git a/Assets/Fungus/Resources/Prefabs/SaveSystem.meta b/Assets/Fungus/Resources/Prefabs/SaveSystem.meta new file mode 100644 index 000000000..4d682e344 --- /dev/null +++ b/Assets/Fungus/Resources/Prefabs/SaveSystem.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 292d3019ddaa6b243a6e242894d067c5 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveCategories.prefab b/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveCategories.prefab new file mode 100644 index 000000000..1ac204482 --- /dev/null +++ b/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveCategories.prefab @@ -0,0 +1,123 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &4504014508030327488 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2106627647463313732} + - component: {fileID: 3238018775091389388} + - component: {fileID: 7884604544248928662} + - component: {fileID: 3195644961600647213} + - component: {fileID: 8994370576535070087} + m_Layer: 0 + m_Name: SaveCategories + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &2106627647463313732 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4504014508030327488} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &3238018775091389388 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4504014508030327488} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7a334fe2ffb574b3583ff3b18b4792d3, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 1 + scrollPos: {x: 0, y: 0} + variablesScrollPos: {x: 0, y: 0} + variablesExpanded: 1 + blockViewHeight: 400 + zoom: 1 + scrollViewRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + selectedBlocks: [] + selectedCommands: [] + variables: + - {fileID: 7884604544248928662} + - {fileID: 3195644961600647213} + - {fileID: 8994370576535070087} + description: Holds various save categories the user may want to have available + for their game. Think of this as a way to have save categories as enums in Unity + without having to make them Scriptable Objects the normal way. + stepPause: 0 + colorCommands: 1 + hideComponents: 1 + saveSelection: 1 + localizationId: + showLineNumbers: 0 + hideCommands: [] + luaEnvironment: {fileID: 0} + luaBindingName: flowchart +--- !u!114 &7884604544248928662 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4504014508030327488} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4580f28dd8581476b810b38eea2f1316, type: 3} + m_Name: + m_EditorClassIdentifier: + scope: 1 + key: normal + value: normal +--- !u!114 &3195644961600647213 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4504014508030327488} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4580f28dd8581476b810b38eea2f1316, type: 3} + m_Name: + m_EditorClassIdentifier: + scope: 1 + key: auto + value: auto +--- !u!114 &8994370576535070087 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4504014508030327488} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4580f28dd8581476b810b38eea2f1316, type: 3} + m_Name: + m_EditorClassIdentifier: + scope: 1 + key: battle + value: battle diff --git a/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveCategories.prefab.meta b/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveCategories.prefab.meta new file mode 100644 index 000000000..5f80ef55f --- /dev/null +++ b/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveCategories.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: c127bf737104ce649a5800dbf62dfba9 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Resources/Prefabs/SaveData.prefab b/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveData.prefab similarity index 100% rename from Assets/Fungus/Resources/Prefabs/SaveData.prefab rename to Assets/Fungus/Resources/Prefabs/SaveSystem/SaveData.prefab diff --git a/Assets/Fungus/Resources/Prefabs/SaveData.prefab.meta b/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveData.prefab.meta similarity index 100% rename from Assets/Fungus/Resources/Prefabs/SaveData.prefab.meta rename to Assets/Fungus/Resources/Prefabs/SaveSystem/SaveData.prefab.meta diff --git a/Assets/Fungus/Resources/Prefabs/SaveMenu.prefab b/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveMenu.prefab similarity index 100% rename from Assets/Fungus/Resources/Prefabs/SaveMenu.prefab rename to Assets/Fungus/Resources/Prefabs/SaveSystem/SaveMenu.prefab diff --git a/Assets/Fungus/Resources/Prefabs/SaveMenu.prefab.meta b/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveMenu.prefab.meta similarity index 100% rename from Assets/Fungus/Resources/Prefabs/SaveMenu.prefab.meta rename to Assets/Fungus/Resources/Prefabs/SaveSystem/SaveMenu.prefab.meta diff --git a/Assets/Fungus/Resources/Prefabs/SaveMenuSingle.prefab b/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveMenuSingle.prefab similarity index 100% rename from Assets/Fungus/Resources/Prefabs/SaveMenuSingle.prefab rename to Assets/Fungus/Resources/Prefabs/SaveSystem/SaveMenuSingle.prefab diff --git a/Assets/Fungus/Resources/Prefabs/SaveMenuSingle.prefab.meta b/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveMenuSingle.prefab.meta similarity index 100% rename from Assets/Fungus/Resources/Prefabs/SaveMenuSingle.prefab.meta rename to Assets/Fungus/Resources/Prefabs/SaveSystem/SaveMenuSingle.prefab.meta diff --git a/Assets/Fungus/Resources/Prefabs/SaveMenuSlots.prefab b/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveMenuSlots.prefab similarity index 100% rename from Assets/Fungus/Resources/Prefabs/SaveMenuSlots.prefab rename to Assets/Fungus/Resources/Prefabs/SaveSystem/SaveMenuSlots.prefab diff --git a/Assets/Fungus/Resources/Prefabs/SaveMenuSlots.prefab.meta b/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveMenuSlots.prefab.meta similarity index 100% rename from Assets/Fungus/Resources/Prefabs/SaveMenuSlots.prefab.meta rename to Assets/Fungus/Resources/Prefabs/SaveSystem/SaveMenuSlots.prefab.meta diff --git a/Assets/Fungus/Resources/Prefabs/SaveSlot.prefab b/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveSlot.prefab similarity index 100% rename from Assets/Fungus/Resources/Prefabs/SaveSlot.prefab rename to Assets/Fungus/Resources/Prefabs/SaveSystem/SaveSlot.prefab diff --git a/Assets/Fungus/Resources/Prefabs/SaveSlot.prefab.meta b/Assets/Fungus/Resources/Prefabs/SaveSystem/SaveSlot.prefab.meta similarity index 100% rename from Assets/Fungus/Resources/Prefabs/SaveSlot.prefab.meta rename to Assets/Fungus/Resources/Prefabs/SaveSystem/SaveSlot.prefab.meta diff --git a/Assets/Fungus/Scripts/Save/SaveData.cs b/Assets/Fungus/Scripts/Save/SaveData.cs index f5bea7834..8c0f7d3d2 100644 --- a/Assets/Fungus/Scripts/Save/SaveData.cs +++ b/Assets/Fungus/Scripts/Save/SaveData.cs @@ -11,7 +11,7 @@ namespace Fungus public class SaveData { public int version = FungusConstants.CurrentSaveGameDataVersion; - public string saveName; + public string saveName, category; public StringPairList saveDataItems; public StringPairList stringPairs; public string lastWrittenDateTimeString; diff --git a/Assets/Fungus/Scripts/Save/SaveGameMetaData.cs b/Assets/Fungus/Scripts/Save/SaveGameMetaData.cs index f46537547..dd08b8b7e 100644 --- a/Assets/Fungus/Scripts/Save/SaveGameMetaData.cs +++ b/Assets/Fungus/Scripts/Save/SaveGameMetaData.cs @@ -9,7 +9,7 @@ namespace Fungus /// public class SaveGameMetaData { - public string saveName; + public string saveName, category; public string description; public System.DateTime lastWritten; public string fileLocation;