Christopher
8 years ago
11 changed files with 1077 additions and 2246 deletions
@ -0,0 +1,25 @@ |
|||||||
|
using UnityEngine; |
||||||
|
using System.Collections.Generic; |
||||||
|
|
||||||
|
namespace Fungus |
||||||
|
{ |
||||||
|
[System.Serializable] |
||||||
|
public class SaveGameObjects : MonoBehaviour |
||||||
|
{ |
||||||
|
[SerializeField] protected List<Flowchart> flowcharts = new List<Flowchart>(); |
||||||
|
|
||||||
|
#region Public methods |
||||||
|
|
||||||
|
public void Encode(SavePointData savePointData) |
||||||
|
{ |
||||||
|
for (int i = 0; i < flowcharts.Count; i++) |
||||||
|
{ |
||||||
|
var flowchart = flowcharts[i]; |
||||||
|
var flowchartData = FlowchartData.Encode(flowchart); |
||||||
|
savePointData.FlowchartDatas.Add(flowchartData); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
#endregion |
||||||
|
} |
||||||
|
} |
@ -1,17 +0,0 @@ |
|||||||
using UnityEngine; |
|
||||||
using System.Collections.Generic; |
|
||||||
|
|
||||||
namespace Fungus |
|
||||||
{ |
|
||||||
[System.Serializable] |
|
||||||
public class SaveGameObjects |
|
||||||
{ |
|
||||||
[SerializeField] protected List<Flowchart> flowcharts = new List<Flowchart>(); |
|
||||||
|
|
||||||
#region Public methods |
|
||||||
|
|
||||||
public List<Flowchart> Flowcharts { get { return flowcharts; } } |
|
||||||
|
|
||||||
#endregion |
|
||||||
} |
|
||||||
} |
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@ |
|||||||
fileFormatVersion: 2 |
fileFormatVersion: 2 |
||||||
guid: ac03b2b3b2c07411da18c6ddc7c6e9ec |
guid: bd2b99773f3e0489aae9f9b5053ad360 |
||||||
timeCreated: 1479485548 |
timeCreated: 1481298777 |
||||||
licenseType: Free |
licenseType: Free |
||||||
NativeFormatImporter: |
NativeFormatImporter: |
||||||
userData: |
userData: |
Loading…
Reference in new issue