diff --git a/Assets/Scripts/NewDesign/Core/GameInformation.cs b/Assets/Scripts/NewDesign/Core/GameInformation.cs deleted file mode 100644 index a3f5925..0000000 --- a/Assets/Scripts/NewDesign/Core/GameInformation.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -namespace Obscurum.Core{ - public class GameInformation : MonoBehaviour - { - // Start is called before the first frame update - void Start() - { - - } - - // Update is called once per frame - void Update() - { - - } - } - -} diff --git a/Assets/Scripts/NewDesign/Core/GameInformation.meta b/Assets/Scripts/NewDesign/Core/GameInformation.meta new file mode 100644 index 0000000..0abb7e5 --- /dev/null +++ b/Assets/Scripts/NewDesign/Core/GameInformation.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a45f2b9aa05729f43904a395d6ef0255 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/NewDesign/Core/GameInformation/GameInformation.cs b/Assets/Scripts/NewDesign/Core/GameInformation/GameInformation.cs new file mode 100644 index 0000000..05c565a --- /dev/null +++ b/Assets/Scripts/NewDesign/Core/GameInformation/GameInformation.cs @@ -0,0 +1,35 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Obscurum.Core{ + /// + /// Handles all operations about the current game state including: Current GameSave, Current Level and active parameters. + /// + public class GameInformation : MonoBehaviour + { + private static GameSave activeSave; + private static string activeLevel; + /// + /// The current save being run. + /// + public static GameSave ActiveSave + { + get { return activeSave; } + set { value.Load(); activeSave = value; } + } + + // Start is called before the first frame update + void Start() + { + + } + + // Update is called once per frame + void Update() + { + + } + } + +} diff --git a/Assets/Scripts/NewDesign/Core/GameInformation.cs.meta b/Assets/Scripts/NewDesign/Core/GameInformation/GameInformation.cs.meta similarity index 100% rename from Assets/Scripts/NewDesign/Core/GameInformation.cs.meta rename to Assets/Scripts/NewDesign/Core/GameInformation/GameInformation.cs.meta diff --git a/Assets/Scripts/NewDesign/Core/GameInformation/GameSave.cs b/Assets/Scripts/NewDesign/Core/GameInformation/GameSave.cs new file mode 100644 index 0000000..9e6e34f --- /dev/null +++ b/Assets/Scripts/NewDesign/Core/GameInformation/GameSave.cs @@ -0,0 +1,50 @@ +using System.Collections; +using System.Collections.Generic; +using System.Runtime.CompilerServices; +using UnityEngine; + +namespace Obscurum.Core +{ + /// + /// Handles operations related to a game save: + /// Loading/Saving operations + /// Savefile path managemnet. + /// + public class GameSave + { + + /// + /// Gets all saves from saves folder. + /// + /// + public static GameSave[] GetSaves() { return new GameSave[0]; } + + + + private string path; + private string name; + public string Path { get { return path; } } + public string Name { get { return name; } } + public GameSave(string name, string path) { + this.path = path; + this.name = name; + } + + /// + /// Loads this save from file. + /// + public void Load() + { + + } + + /// + /// Saves this game save object. + /// + public void Save() + { + + } + + } +} diff --git a/Assets/Scripts/NewDesign/Core/GameInformation/GameSave.cs.meta b/Assets/Scripts/NewDesign/Core/GameInformation/GameSave.cs.meta new file mode 100644 index 0000000..cf589ee --- /dev/null +++ b/Assets/Scripts/NewDesign/Core/GameInformation/GameSave.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4904e6df255f0024281e023b719fa592 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/NewDesign/Core/MultiplayerInformation.cs b/Assets/Scripts/NewDesign/Core/MultiplayerInformation.cs index a293909..c6e9df8 100644 --- a/Assets/Scripts/NewDesign/Core/MultiplayerInformation.cs +++ b/Assets/Scripts/NewDesign/Core/MultiplayerInformation.cs @@ -4,8 +4,18 @@ using UnityEngine; namespace Obscurum.Core{ + /// + /// Stores/Manages information about the current multiplayer session. + /// public class MultiplayerInformation : MonoBehaviour { + //Todo: Madev enhance. + private static List lobbyNames = new List(); + private static bool isServer; + private static string serverAddress; + private static string steamLobby; + + // Start is called before the first frame update void Start() { diff --git a/Assets/Scripts/NewDesign/Core/PlayerInformation.meta b/Assets/Scripts/NewDesign/Core/PlayerInformation.meta new file mode 100644 index 0000000..415b07b --- /dev/null +++ b/Assets/Scripts/NewDesign/Core/PlayerInformation.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fe57ad92038744748871f5df1a088607 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/NewDesign/Core/PlayerInformation.cs b/Assets/Scripts/NewDesign/Core/PlayerInformation/PlayerAchievement.cs similarity index 73% rename from Assets/Scripts/NewDesign/Core/PlayerInformation.cs rename to Assets/Scripts/NewDesign/Core/PlayerInformation/PlayerAchievement.cs index 98e5399..d4964f0 100644 --- a/Assets/Scripts/NewDesign/Core/PlayerInformation.cs +++ b/Assets/Scripts/NewDesign/Core/PlayerInformation/PlayerAchievement.cs @@ -2,21 +2,20 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; -namespace Obscurum.Core{ - public class PlayerInformation : MonoBehaviour +namespace Obscurum.Core +{ + public class PlayerAchievement { - // Start is called before the first frame update void Start() { - + } // Update is called once per frame void Update() { - + } } - } diff --git a/Assets/Scripts/NewDesign/Core/PlayerInformation/PlayerAchievement.cs.meta b/Assets/Scripts/NewDesign/Core/PlayerInformation/PlayerAchievement.cs.meta new file mode 100644 index 0000000..cb826c0 --- /dev/null +++ b/Assets/Scripts/NewDesign/Core/PlayerInformation/PlayerAchievement.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5769891d81ba7c444bb21e52a8622468 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/NewDesign/Core/PlayerInformation/PlayerInformation.cs b/Assets/Scripts/NewDesign/Core/PlayerInformation/PlayerInformation.cs new file mode 100644 index 0000000..1ac371a --- /dev/null +++ b/Assets/Scripts/NewDesign/Core/PlayerInformation/PlayerInformation.cs @@ -0,0 +1,29 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Obscurum.Core +{ + public class PlayerInformation : MonoBehaviour + { + private string playerName; + private List achievemnets = new List(); + + + public string PlayerName { get { return this.playerName; } } + public List Achievements { get { return this.achievemnets; } } + + // Start is called before the first frame update + void Start() + { + + } + + // Update is called once per frame + void Update() + { + + } + } + +} diff --git a/Assets/Scripts/NewDesign/Core/PlayerInformation.cs.meta b/Assets/Scripts/NewDesign/Core/PlayerInformation/PlayerInformation.cs.meta similarity index 100% rename from Assets/Scripts/NewDesign/Core/PlayerInformation.cs.meta rename to Assets/Scripts/NewDesign/Core/PlayerInformation/PlayerInformation.cs.meta