net.dreditor.freetime 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.attestation.p7m +0 -0
- package/CharacterReaction.cs +45 -45
- package/CharacterReaction.cs.meta +11 -11
- package/DREditor.FreeTime.asmdef +25 -25
- package/DREditor.FreeTime.asmdef.meta +7 -7
- package/FTECharacterDialogues.cs +55 -55
- package/FTECharacterDialogues.cs.meta +11 -11
- package/FTEData.cs +51 -51
- package/FTEData.cs.meta +11 -11
- package/FTEDataHandler.cs +180 -180
- package/FTEDataHandler.cs.meta +11 -11
- package/FTEDatabase.cs +68 -68
- package/FTEDatabase.cs.meta +11 -11
- package/FTEDatabaseEditor.cs +101 -101
- package/FTEDatabaseEditor.cs.meta +11 -11
- package/FTEDialogues.cs +32 -32
- package/FTEDialogues.cs.meta +11 -11
- package/FTEManager.cs +322 -322
- package/FTEManager.cs.meta +11 -11
- package/IFTEDataHandler.cs +37 -37
- package/IFTEDataHandler.cs.meta +11 -11
- package/MoveToNextDayEvent.cs +213 -213
- package/MoveToNextDayEvent.cs.meta +11 -11
- package/PresentReaction.cs +36 -36
- package/PresentReaction.cs.meta +11 -11
- package/ReactionDatabase.cs +111 -111
- package/ReactionDatabase.cs.meta +11 -11
- package/ReactionUtility.cs +43 -43
- package/ReactionUtility.cs.meta +11 -11
- package/{Samples → Samples~}/FTE_Data_Handler.prefab +49 -49
- package/{Samples → Samples~}/FTE_Data_Handler.prefab.meta +7 -7
- package/{Samples → Samples~}/FTE_Manager_ETemplate.prefab +218 -218
- package/{Samples → Samples~}/FTE_Manager_ETemplate.prefab.meta +7 -7
- package/{Samples → Samples~}/Move_To_Next_Day_Event.prefab +83 -83
- package/{Samples → Samples~}/Move_To_Next_Day_Event.prefab.meta +7 -7
- package/{Samples → Samples~}/Start_FTE_Handler_ETemplate.prefab +336 -336
- package/{Samples → Samples~}/Start_FTE_Handler_ETemplate.prefab.meta +7 -7
- package/SimpleFTEEntryCollection.cs +28 -28
- package/SimpleFTEEntryCollection.cs.meta +1 -1
- package/StartFTEAnimation.cs +76 -76
- package/StartFTEAnimation.cs.meta +11 -11
- package/package.json +47 -42
- package/package.json.meta +7 -7
- package/Samples.meta +0 -8
package/FTEDatabaseEditor.cs
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
#if UNITY_EDITOR
|
|
3
|
-
using DREditor.Characters;
|
|
4
|
-
using DREditor.Editor.Utility;
|
|
5
|
-
using System.Collections.Generic;
|
|
6
|
-
using UnityEditor;
|
|
7
|
-
using UnityEngine;
|
|
8
|
-
|
|
9
|
-
namespace DREditor.FreeTime
|
|
10
|
-
{
|
|
11
|
-
/// <summary>
|
|
12
|
-
///
|
|
13
|
-
/// </summary>
|
|
14
|
-
[CustomEditor(typeof(FTEDatabase))]
|
|
15
|
-
public class FTEDatabaseEditor : UnityEditor.Editor
|
|
16
|
-
{
|
|
17
|
-
/// <summary>
|
|
18
|
-
///
|
|
19
|
-
/// </summary>
|
|
20
|
-
protected FTEDatabase database;
|
|
21
|
-
|
|
22
|
-
/// <summary>
|
|
23
|
-
///
|
|
24
|
-
/// </summary>
|
|
25
|
-
protected CharacterDatabase characterDatabase = null;
|
|
26
|
-
|
|
27
|
-
/// <summary>
|
|
28
|
-
///
|
|
29
|
-
/// </summary>
|
|
30
|
-
protected SerializedProperty propName;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/// <summary>
|
|
34
|
-
///
|
|
35
|
-
/// </summary>
|
|
36
|
-
protected virtual void OnEnable()
|
|
37
|
-
{
|
|
38
|
-
database = target as FTEDatabase;
|
|
39
|
-
|
|
40
|
-
propName = serializedObject.FindProperty("freeTimeCharacterDialogues");
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/// <inheritdoc/>
|
|
44
|
-
public override void OnInspectorGUI()
|
|
45
|
-
{
|
|
46
|
-
serializedObject.Update();
|
|
47
|
-
|
|
48
|
-
CreateForm();
|
|
49
|
-
|
|
50
|
-
EditorUtility.SetDirty(database);
|
|
51
|
-
|
|
52
|
-
serializedObject.ApplyModifiedProperties();
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/// <summary>
|
|
56
|
-
///
|
|
57
|
-
/// </summary>
|
|
58
|
-
protected virtual void CreateForm()
|
|
59
|
-
{
|
|
60
|
-
if (!DatabaseUtility
|
|
61
|
-
.InitializeDatabase(characterDatabase, out characterDatabase))
|
|
62
|
-
return;
|
|
63
|
-
|
|
64
|
-
if (GUILayout.Button("Generate Base Structure", GUILayout.Width(200)))
|
|
65
|
-
if (EditorUtility.DisplayDialog("Generate",
|
|
66
|
-
"Are you sure you want to Generate the data? This will delete the current data.",
|
|
67
|
-
"Yes", "No"))
|
|
68
|
-
GenerateData();
|
|
69
|
-
|
|
70
|
-
GUILayout.Space(10);
|
|
71
|
-
|
|
72
|
-
using (new EditorGUILayout.VerticalScope("Box"))
|
|
73
|
-
HandyFields.HardPropertyField("List: ", propName, 500);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/// <summary>
|
|
77
|
-
///
|
|
78
|
-
/// </summary>
|
|
79
|
-
protected virtual void GenerateData()
|
|
80
|
-
{
|
|
81
|
-
database.freeTimeCharacterDialogues.Clear();
|
|
82
|
-
|
|
83
|
-
List<Character> characters = characterDatabase.GetFTECharacterList();
|
|
84
|
-
|
|
85
|
-
foreach (Character character in characters)
|
|
86
|
-
{
|
|
87
|
-
FTECharacterDialogues fte = CustomEditorUtility
|
|
88
|
-
.CreateAssetWithFolders<FTECharacterDialogues>(character.FirstName + "FTEDialogues");
|
|
89
|
-
|
|
90
|
-
fte.SetCharacter(character);
|
|
91
|
-
|
|
92
|
-
fte.SetDialogues(new List<Dialogues.Dialogue>(new Dialogues.Dialogue[]
|
|
93
|
-
{null, null, null, null, null}));
|
|
94
|
-
|
|
95
|
-
AssetDatabase.SaveAssets();
|
|
96
|
-
|
|
97
|
-
database.freeTimeCharacterDialogues.Add(fte);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
#if UNITY_EDITOR
|
|
3
|
+
using DREditor.Characters;
|
|
4
|
+
using DREditor.Editor.Utility;
|
|
5
|
+
using System.Collections.Generic;
|
|
6
|
+
using UnityEditor;
|
|
7
|
+
using UnityEngine;
|
|
8
|
+
|
|
9
|
+
namespace DREditor.FreeTime
|
|
10
|
+
{
|
|
11
|
+
/// <summary>
|
|
12
|
+
///
|
|
13
|
+
/// </summary>
|
|
14
|
+
[CustomEditor(typeof(FTEDatabase))]
|
|
15
|
+
public class FTEDatabaseEditor : UnityEditor.Editor
|
|
16
|
+
{
|
|
17
|
+
/// <summary>
|
|
18
|
+
///
|
|
19
|
+
/// </summary>
|
|
20
|
+
protected FTEDatabase database;
|
|
21
|
+
|
|
22
|
+
/// <summary>
|
|
23
|
+
///
|
|
24
|
+
/// </summary>
|
|
25
|
+
protected CharacterDatabase characterDatabase = null;
|
|
26
|
+
|
|
27
|
+
/// <summary>
|
|
28
|
+
///
|
|
29
|
+
/// </summary>
|
|
30
|
+
protected SerializedProperty propName;
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
/// <summary>
|
|
34
|
+
///
|
|
35
|
+
/// </summary>
|
|
36
|
+
protected virtual void OnEnable()
|
|
37
|
+
{
|
|
38
|
+
database = target as FTEDatabase;
|
|
39
|
+
|
|
40
|
+
propName = serializedObject.FindProperty("freeTimeCharacterDialogues");
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/// <inheritdoc/>
|
|
44
|
+
public override void OnInspectorGUI()
|
|
45
|
+
{
|
|
46
|
+
serializedObject.Update();
|
|
47
|
+
|
|
48
|
+
CreateForm();
|
|
49
|
+
|
|
50
|
+
EditorUtility.SetDirty(database);
|
|
51
|
+
|
|
52
|
+
serializedObject.ApplyModifiedProperties();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/// <summary>
|
|
56
|
+
///
|
|
57
|
+
/// </summary>
|
|
58
|
+
protected virtual void CreateForm()
|
|
59
|
+
{
|
|
60
|
+
if (!DatabaseUtility
|
|
61
|
+
.InitializeDatabase(characterDatabase, out characterDatabase))
|
|
62
|
+
return;
|
|
63
|
+
|
|
64
|
+
if (GUILayout.Button("Generate Base Structure", GUILayout.Width(200)))
|
|
65
|
+
if (EditorUtility.DisplayDialog("Generate",
|
|
66
|
+
"Are you sure you want to Generate the data? This will delete the current data.",
|
|
67
|
+
"Yes", "No"))
|
|
68
|
+
GenerateData();
|
|
69
|
+
|
|
70
|
+
GUILayout.Space(10);
|
|
71
|
+
|
|
72
|
+
using (new EditorGUILayout.VerticalScope("Box"))
|
|
73
|
+
HandyFields.HardPropertyField("List: ", propName, 500);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/// <summary>
|
|
77
|
+
///
|
|
78
|
+
/// </summary>
|
|
79
|
+
protected virtual void GenerateData()
|
|
80
|
+
{
|
|
81
|
+
database.freeTimeCharacterDialogues.Clear();
|
|
82
|
+
|
|
83
|
+
List<Character> characters = characterDatabase.GetFTECharacterList();
|
|
84
|
+
|
|
85
|
+
foreach (Character character in characters)
|
|
86
|
+
{
|
|
87
|
+
FTECharacterDialogues fte = CustomEditorUtility
|
|
88
|
+
.CreateAssetWithFolders<FTECharacterDialogues>(character.FirstName + "FTEDialogues");
|
|
89
|
+
|
|
90
|
+
fte.SetCharacter(character);
|
|
91
|
+
|
|
92
|
+
fte.SetDialogues(new List<Dialogues.Dialogue>(new Dialogues.Dialogue[]
|
|
93
|
+
{null, null, null, null, null}));
|
|
94
|
+
|
|
95
|
+
AssetDatabase.SaveAssets();
|
|
96
|
+
|
|
97
|
+
database.freeTimeCharacterDialogues.Add(fte);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
102
|
#endif
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 294a4a3a9348bc44b93696a9d82dbc2a
|
|
3
|
-
MonoImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
serializedVersion: 2
|
|
6
|
-
defaultReferences: []
|
|
7
|
-
executionOrder: 0
|
|
8
|
-
icon: {instanceID: 0}
|
|
9
|
-
userData:
|
|
10
|
-
assetBundleName:
|
|
11
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 294a4a3a9348bc44b93696a9d82dbc2a
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/FTEDialogues.cs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.Characters;
|
|
3
|
-
using DREditor.Dialogues;
|
|
4
|
-
using System;
|
|
5
|
-
using System.Collections.Generic;
|
|
6
|
-
using UnityEngine;
|
|
7
|
-
|
|
8
|
-
namespace DREditor.FreeTime
|
|
9
|
-
{
|
|
10
|
-
/// <summary>
|
|
11
|
-
///
|
|
12
|
-
/// </summary>
|
|
13
|
-
[Serializable]
|
|
14
|
-
public abstract class FTEDialogues : ScriptableObject
|
|
15
|
-
{
|
|
16
|
-
/// <summary>
|
|
17
|
-
///
|
|
18
|
-
/// </summary>
|
|
19
|
-
public abstract Character GetCharacter();
|
|
20
|
-
|
|
21
|
-
/// <summary>
|
|
22
|
-
///
|
|
23
|
-
/// </summary>
|
|
24
|
-
/// <typeparam name="T"></typeparam>
|
|
25
|
-
public abstract List<DialogueBase<T>> GetDialogues<T>();
|
|
26
|
-
|
|
27
|
-
/// <summary>
|
|
28
|
-
///
|
|
29
|
-
/// </summary>
|
|
30
|
-
/// <param name="dialogue"></param>
|
|
31
|
-
public abstract bool Contains(DialogueCore dialogue);
|
|
32
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.Characters;
|
|
3
|
+
using DREditor.Dialogues;
|
|
4
|
+
using System;
|
|
5
|
+
using System.Collections.Generic;
|
|
6
|
+
using UnityEngine;
|
|
7
|
+
|
|
8
|
+
namespace DREditor.FreeTime
|
|
9
|
+
{
|
|
10
|
+
/// <summary>
|
|
11
|
+
///
|
|
12
|
+
/// </summary>
|
|
13
|
+
[Serializable]
|
|
14
|
+
public abstract class FTEDialogues : ScriptableObject
|
|
15
|
+
{
|
|
16
|
+
/// <summary>
|
|
17
|
+
///
|
|
18
|
+
/// </summary>
|
|
19
|
+
public abstract Character GetCharacter();
|
|
20
|
+
|
|
21
|
+
/// <summary>
|
|
22
|
+
///
|
|
23
|
+
/// </summary>
|
|
24
|
+
/// <typeparam name="T"></typeparam>
|
|
25
|
+
public abstract List<DialogueBase<T>> GetDialogues<T>();
|
|
26
|
+
|
|
27
|
+
/// <summary>
|
|
28
|
+
///
|
|
29
|
+
/// </summary>
|
|
30
|
+
/// <param name="dialogue"></param>
|
|
31
|
+
public abstract bool Contains(DialogueCore dialogue);
|
|
32
|
+
}
|
|
33
33
|
}
|
package/FTEDialogues.cs.meta
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 93e8819d845d5ae44b3ad312011bec25
|
|
3
|
-
MonoImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
serializedVersion: 2
|
|
6
|
-
defaultReferences: []
|
|
7
|
-
executionOrder: 0
|
|
8
|
-
icon: {instanceID: 0}
|
|
9
|
-
userData:
|
|
10
|
-
assetBundleName:
|
|
11
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 93e8819d845d5ae44b3ad312011bec25
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|