Skip to content

Commit fccafa8

Browse files
Merge pull request #11 from CoderGamester/develop
0.5.3
2 parents 46df343 + 006f9d0 commit fccafa8

File tree

5 files changed

+18
-8
lines changed

5 files changed

+18
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this package will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.5.3] - 2020-03-07
8+
9+
- Updated the package *com.gamelovers.configscontainer* to version 0.7.0
10+
- Updated *GoogleSheetImporter* documentation
11+
712
## [0.5.2] - 2020-04-06
813

914
- Updated to use the package *com.gamelovers.asyncawait* to version 0.2.0

Editor/GoogleSheetConfigsImporter.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ namespace GameLoversEditor.GoogleSheetImporter
1212
/// <inheritdoc />
1313
/// <remarks>
1414
/// Generic implementation of an importer to load multiple <typeparamref name="TConfig"/> configs into one
15-
/// <typeparamref name="TScriptableObject"/>
15+
/// <typeparamref name="TScriptableObject"/>.
16+
/// It will import 1 row per data entry. This means each row will represent 1 <typeparamref name="TConfig"/> entry
17+
/// and import multiple <typeparamref name="TConfig"/>
1618
/// </remarks>
1719
public abstract class GoogleSheetConfigsImporter<TConfig, TScriptableObject> : IGoogleSheetImporter
1820
where TConfig : struct
@@ -57,7 +59,9 @@ protected virtual TConfig Deserialize(Dictionary<string, string> data)
5759
/// <inheritdoc />
5860
/// <remarks>
5961
/// Generic implementation of an importer to load a single <typeparamref name="TConfig"/> config into one
60-
/// <typeparamref name="TScriptableObject"/>
62+
/// <typeparamref name="TScriptableObject"/>.
63+
/// It will import 1 entire sheet into one single<typeparamref name="TConfig"/>. This means each row will match
64+
/// a different field of the <typeparamref name="TConfig"/> represented by a Key/Value pair.
6165
/// </remarks>
6266
public abstract class GoogleSheetSingleConfigImporter<TConfig, TScriptableObject> : IGoogleSheetImporter
6367
where TConfig : struct

Editor/GoogleSheetToolImporter.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ public override void OnInspectorGUI()
7474
}
7575

7676
var tool = (GoogleSheetImporter) target;
77-
var guiContent = new GUIContent("Spreadsheet ID replace (optional)",
77+
var guiContent = new GUIContent("Spreadsheet ID (optional)",
7878
"(Optional) Put the Google Spreadsheet Id to replace from the one set in SheetImporter. " +
79-
"Will use the one set in the SheetImporter by default if not set or empty");
79+
"Will use the one set in the SheetImporter by default if not set or empty. " +
80+
"Use this option if you duplicate the Google Sheet file for testing purposes.");
8081

8182
tool.ReplaceSpreadsheetId = EditorGUILayout.TextField(guiContent, tool.ReplaceSpreadsheetId);
8283

Editor/IGoogleSheetImporter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
namespace GameLoversEditor.GoogleSheetImporter
66
{
77
/// <summary>
8-
/// Implement this interface to import a single Google Sheet
9-
/// All the process is done in Editor time
8+
/// Implement this interface to import a single Google Sheet.
9+
/// All the process is done in Editor time
1010
/// </summary>
1111
/// <remarks>
1212
/// It is required to have different implementations of this interface for as many sheets needed to be imported

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "com.gamelovers.googlesheetimporter",
33
"displayName": "GoogleSheet Importer",
4-
"version": "0.5.2",
4+
"version": "0.5.3",
55
"unity": "2019.3",
66
"description": "This package provides a tool to import GoogleSheet data into ScriptableObject persistent config data.\n\nTo help configure the GoogleSheet Import data you need to create a configuration ScriptableObject by:\n- Right Click on the Project View > Create > ScriptableObjects > Editor > GoogleSheetImporter.\n- You can import all the GoogleSheet data without a ScriptableObject by clicking in Tools > Import Google Sheet Data",
77
"type": "tool",
88
"dependencies": {
9-
"com.gamelovers.configscontainer": "0.5.0",
9+
"com.gamelovers.configscontainer": "0.7.0",
1010
"com.unity.nuget.newtonsoft-json": "2.0.0-preview",
1111
"com.gamelovers.asyncawait": "0.2.0"
1212
}

0 commit comments

Comments
 (0)