Skip to content

Commit 7846bd0

Browse files
committed
Impls game data.
1 parent 63b190c commit 7846bd0

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/**
2+
* $File: JCS_GameData.cs $
3+
* $Date: 2020-07-10 12:15:20 $
4+
* $Revision: $
5+
* $Creator: Jen-Chieh Shen $
6+
* $Notice: See LICENSE.txt for modification and distribution information
7+
* Copyright © 2020 by Shen, Jen-Chieh $
8+
*/
9+
using System.Collections;
10+
using System.Collections.Generic;
11+
using UnityEngine;
12+
13+
namespace JCSUnity
14+
{
15+
/// <summary>
16+
/// Base game data structure.
17+
/// </summary>
18+
[System.Serializable]
19+
public abstract class JCS_GameData
20+
{
21+
/// <summary>
22+
/// Get complete save data path.
23+
/// </summary>
24+
public static string SavePath()
25+
{
26+
var gs = JCS_GameSettings.instance;
27+
return Application.dataPath + gs.DATA_PATH;
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)