From 3c60258c2fb0d5422a6a82e2392bf7c2c1d0875e Mon Sep 17 00:00:00 2001 From: konh Date: Mon, 24 Sep 2018 20:46:14 +0700 Subject: [PATCH] Enchancement: adds explicit constructors to easyiest setup save items from code; --- Scripts/Controllers/Save/Save.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Scripts/Controllers/Save/Save.cs b/Scripts/Controllers/Save/Save.cs index 3f85fff..7420dc0 100644 --- a/Scripts/Controllers/Save/Save.cs +++ b/Scripts/Controllers/Save/Save.cs @@ -32,6 +32,13 @@ public class SaveItem { /// [Tooltip("Name of the instance in save file")] public string Name; + + public SaveItem() { } + + public SaveItem(Type type, string name) { + Type = type; + Name = name; + } } ///