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/.attestation.p7m
ADDED
|
Binary file
|
package/CharacterReaction.cs
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
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
|
-
[CreateAssetMenu(menuName = "DREditor/FTE/Character Reaction", fileName = "Character Reaction")]
|
|
15
|
-
public class CharacterReaction : ScriptableObject
|
|
16
|
-
{
|
|
17
|
-
/// <summary>
|
|
18
|
-
///
|
|
19
|
-
/// </summary>
|
|
20
|
-
[Header("")]
|
|
21
|
-
[Divider]
|
|
22
|
-
[Tooltip("")]
|
|
23
|
-
public Character character = null;
|
|
24
|
-
|
|
25
|
-
/// <summary>
|
|
26
|
-
///
|
|
27
|
-
/// </summary>
|
|
28
|
-
[Tooltip("")]
|
|
29
|
-
public List<PresentReaction> Reactions = new();
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/// <summary>
|
|
33
|
-
///
|
|
34
|
-
/// </summary>
|
|
35
|
-
/// <param name="dialogue"></param>
|
|
36
|
-
/// <returns></returns>
|
|
37
|
-
public virtual PresentReaction GetReactionFromDialogue(Dialogue dialogue)
|
|
38
|
-
{
|
|
39
|
-
foreach (PresentReaction reaction in Reactions)
|
|
40
|
-
if (reaction.reactions.Contains(dialogue))
|
|
41
|
-
return reaction;
|
|
42
|
-
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
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
|
+
[CreateAssetMenu(menuName = "DREditor/FTE/Character Reaction", fileName = "Character Reaction")]
|
|
15
|
+
public class CharacterReaction : ScriptableObject
|
|
16
|
+
{
|
|
17
|
+
/// <summary>
|
|
18
|
+
///
|
|
19
|
+
/// </summary>
|
|
20
|
+
[Header("")]
|
|
21
|
+
[Divider]
|
|
22
|
+
[Tooltip("")]
|
|
23
|
+
public Character character = null;
|
|
24
|
+
|
|
25
|
+
/// <summary>
|
|
26
|
+
///
|
|
27
|
+
/// </summary>
|
|
28
|
+
[Tooltip("")]
|
|
29
|
+
public List<PresentReaction> Reactions = new();
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
/// <summary>
|
|
33
|
+
///
|
|
34
|
+
/// </summary>
|
|
35
|
+
/// <param name="dialogue"></param>
|
|
36
|
+
/// <returns></returns>
|
|
37
|
+
public virtual PresentReaction GetReactionFromDialogue(Dialogue dialogue)
|
|
38
|
+
{
|
|
39
|
+
foreach (PresentReaction reaction in Reactions)
|
|
40
|
+
if (reaction.reactions.Contains(dialogue))
|
|
41
|
+
return reaction;
|
|
42
|
+
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
46
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 26482a86640718241a7192798dc28a9b
|
|
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: 26482a86640718241a7192798dc28a9b
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/DREditor.FreeTime.asmdef
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "DREditor.FreeTime",
|
|
3
|
-
"rootNamespace": "",
|
|
4
|
-
"references": [
|
|
5
|
-
"Unity.InputSystem",
|
|
6
|
-
"Unity.TextMeshPro",
|
|
7
|
-
"DREditor",
|
|
8
|
-
"DREditor.Controls",
|
|
9
|
-
"DREditor.Fading",
|
|
10
|
-
"DREditor.DialogueEventHandling",
|
|
11
|
-
"DREditor.RoomLoading",
|
|
12
|
-
"DREditor.DialogueMechanics.Investigation",
|
|
13
|
-
"DREditor.UI.ReportCards",
|
|
14
|
-
"DREditor.Editor",
|
|
15
|
-
"DREditor.Presents"
|
|
16
|
-
],
|
|
17
|
-
"includePlatforms": [],
|
|
18
|
-
"excludePlatforms": [],
|
|
19
|
-
"allowUnsafeCode": false,
|
|
20
|
-
"overrideReferences": false,
|
|
21
|
-
"precompiledReferences": [],
|
|
22
|
-
"autoReferenced": true,
|
|
23
|
-
"defineConstraints": [],
|
|
24
|
-
"versionDefines": [],
|
|
25
|
-
"noEngineReferences": false
|
|
1
|
+
{
|
|
2
|
+
"name": "DREditor.FreeTime",
|
|
3
|
+
"rootNamespace": "",
|
|
4
|
+
"references": [
|
|
5
|
+
"Unity.InputSystem",
|
|
6
|
+
"Unity.TextMeshPro",
|
|
7
|
+
"DREditor",
|
|
8
|
+
"DREditor.Controls",
|
|
9
|
+
"DREditor.Fading",
|
|
10
|
+
"DREditor.DialogueEventHandling",
|
|
11
|
+
"DREditor.RoomLoading",
|
|
12
|
+
"DREditor.DialogueMechanics.Investigation",
|
|
13
|
+
"DREditor.UI.ReportCards",
|
|
14
|
+
"DREditor.Editor",
|
|
15
|
+
"DREditor.Presents"
|
|
16
|
+
],
|
|
17
|
+
"includePlatforms": [],
|
|
18
|
+
"excludePlatforms": [],
|
|
19
|
+
"allowUnsafeCode": false,
|
|
20
|
+
"overrideReferences": false,
|
|
21
|
+
"precompiledReferences": [],
|
|
22
|
+
"autoReferenced": true,
|
|
23
|
+
"defineConstraints": [],
|
|
24
|
+
"versionDefines": [],
|
|
25
|
+
"noEngineReferences": false
|
|
26
26
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 226a3b48467573c46a1dc9b708dad8ae
|
|
3
|
-
AssemblyDefinitionImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
userData:
|
|
6
|
-
assetBundleName:
|
|
7
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 226a3b48467573c46a1dc9b708dad8ae
|
|
3
|
+
AssemblyDefinitionImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
userData:
|
|
6
|
+
assetBundleName:
|
|
7
|
+
assetBundleVariant:
|
package/FTECharacterDialogues.cs
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
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 System.Linq;
|
|
7
|
-
using UnityEngine;
|
|
8
|
-
|
|
9
|
-
namespace DREditor.FreeTime
|
|
10
|
-
{
|
|
11
|
-
/// <summary>
|
|
12
|
-
///
|
|
13
|
-
/// </summary>
|
|
14
|
-
[Serializable]
|
|
15
|
-
[CreateAssetMenu(menuName = "DREditor/FTE/FTE Character Dialogues", fileName = "FTE Character Dialogues")]
|
|
16
|
-
public class FTECharacterDialogues : FTEDialogues
|
|
17
|
-
{
|
|
18
|
-
/// <summary>
|
|
19
|
-
///
|
|
20
|
-
/// </summary>
|
|
21
|
-
[Header("")]
|
|
22
|
-
[Header("")]
|
|
23
|
-
[Divider]
|
|
24
|
-
[Tooltip("")]
|
|
25
|
-
[SerializeField] protected Character character = null;
|
|
26
|
-
|
|
27
|
-
/// <summary>
|
|
28
|
-
///
|
|
29
|
-
/// </summary>
|
|
30
|
-
[Tooltip("")]
|
|
31
|
-
[SerializeField] protected List<Dialogue> freeTimeDialogues = new();
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
/// <inheritdoc/>
|
|
35
|
-
public override bool Contains(DialogueCore dialogue)
|
|
36
|
-
{
|
|
37
|
-
foreach(var fteDialogue in freeTimeDialogues)
|
|
38
|
-
if (fteDialogue != null && fteDialogue.IsNested(dialogue, new List<DialogueCore>()))
|
|
39
|
-
return true;
|
|
40
|
-
|
|
41
|
-
return freeTimeDialogues.Contains(dialogue as Dialogue);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/// <inheritdoc/>
|
|
45
|
-
public override Character GetCharacter() => character;
|
|
46
|
-
|
|
47
|
-
/// <inheritdoc/>
|
|
48
|
-
public override List<DialogueBase<T>> GetDialogues<T>() => freeTimeDialogues.Cast<DialogueBase<T>>().ToList();
|
|
49
|
-
|
|
50
|
-
#if UNITY_EDITOR
|
|
51
|
-
public virtual void SetCharacter(Character character) => this.character = character;
|
|
52
|
-
|
|
53
|
-
public virtual void SetDialogues(List<Dialogue> freeTimeDialogues) => this.freeTimeDialogues = freeTimeDialogues;
|
|
54
|
-
#endif
|
|
55
|
-
}
|
|
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 System.Linq;
|
|
7
|
+
using UnityEngine;
|
|
8
|
+
|
|
9
|
+
namespace DREditor.FreeTime
|
|
10
|
+
{
|
|
11
|
+
/// <summary>
|
|
12
|
+
///
|
|
13
|
+
/// </summary>
|
|
14
|
+
[Serializable]
|
|
15
|
+
[CreateAssetMenu(menuName = "DREditor/FTE/FTE Character Dialogues", fileName = "FTE Character Dialogues")]
|
|
16
|
+
public class FTECharacterDialogues : FTEDialogues
|
|
17
|
+
{
|
|
18
|
+
/// <summary>
|
|
19
|
+
///
|
|
20
|
+
/// </summary>
|
|
21
|
+
[Header("")]
|
|
22
|
+
[Header("")]
|
|
23
|
+
[Divider]
|
|
24
|
+
[Tooltip("")]
|
|
25
|
+
[SerializeField] protected Character character = null;
|
|
26
|
+
|
|
27
|
+
/// <summary>
|
|
28
|
+
///
|
|
29
|
+
/// </summary>
|
|
30
|
+
[Tooltip("")]
|
|
31
|
+
[SerializeField] protected List<Dialogue> freeTimeDialogues = new();
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
/// <inheritdoc/>
|
|
35
|
+
public override bool Contains(DialogueCore dialogue)
|
|
36
|
+
{
|
|
37
|
+
foreach(var fteDialogue in freeTimeDialogues)
|
|
38
|
+
if (fteDialogue != null && fteDialogue.IsNested(dialogue, new List<DialogueCore>()))
|
|
39
|
+
return true;
|
|
40
|
+
|
|
41
|
+
return freeTimeDialogues.Contains(dialogue as Dialogue);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/// <inheritdoc/>
|
|
45
|
+
public override Character GetCharacter() => character;
|
|
46
|
+
|
|
47
|
+
/// <inheritdoc/>
|
|
48
|
+
public override List<DialogueBase<T>> GetDialogues<T>() => freeTimeDialogues.Cast<DialogueBase<T>>().ToList();
|
|
49
|
+
|
|
50
|
+
#if UNITY_EDITOR
|
|
51
|
+
public virtual void SetCharacter(Character character) => this.character = character;
|
|
52
|
+
|
|
53
|
+
public virtual void SetDialogues(List<Dialogue> freeTimeDialogues) => this.freeTimeDialogues = freeTimeDialogues;
|
|
54
|
+
#endif
|
|
55
|
+
}
|
|
56
56
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 9f384bd0e5735fe419cd08be3070a2a4
|
|
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: 9f384bd0e5735fe419cd08be3070a2a4
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/FTEData.cs
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using UnityEngine;
|
|
3
|
-
|
|
4
|
-
namespace DREditor.FreeTime
|
|
5
|
-
{
|
|
6
|
-
/// <summary>
|
|
7
|
-
///
|
|
8
|
-
/// </summary>
|
|
9
|
-
[System.Serializable]
|
|
10
|
-
[CreateAssetMenu(menuName = "DREditor/FTE/FTE Data", fileName = "FTEData")]
|
|
11
|
-
public class FTEData : ScriptableObject
|
|
12
|
-
{
|
|
13
|
-
/// <summary>
|
|
14
|
-
///
|
|
15
|
-
/// </summary>
|
|
16
|
-
[Tooltip("")]
|
|
17
|
-
public string characterName;
|
|
18
|
-
|
|
19
|
-
/// <summary>
|
|
20
|
-
///
|
|
21
|
-
/// </summary>
|
|
22
|
-
[Tooltip("")]
|
|
23
|
-
public int level;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
public virtual void SetData(string name, int level = 0)
|
|
27
|
-
{
|
|
28
|
-
this.name = name;
|
|
29
|
-
|
|
30
|
-
characterName = name;
|
|
31
|
-
|
|
32
|
-
this.level = level;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/// <summary>
|
|
36
|
-
///
|
|
37
|
-
/// </summary>
|
|
38
|
-
/// <param name="level"></param>
|
|
39
|
-
public virtual void AddLevel(int level = 1) => this.level += level;
|
|
40
|
-
|
|
41
|
-
/// <summary>
|
|
42
|
-
///
|
|
43
|
-
/// </summary>
|
|
44
|
-
public virtual void Validate()
|
|
45
|
-
{
|
|
46
|
-
if (string.IsNullOrEmpty(name))
|
|
47
|
-
name = characterName;
|
|
48
|
-
else if (string.IsNullOrEmpty(characterName))
|
|
49
|
-
characterName = name;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using UnityEngine;
|
|
3
|
+
|
|
4
|
+
namespace DREditor.FreeTime
|
|
5
|
+
{
|
|
6
|
+
/// <summary>
|
|
7
|
+
///
|
|
8
|
+
/// </summary>
|
|
9
|
+
[System.Serializable]
|
|
10
|
+
[CreateAssetMenu(menuName = "DREditor/FTE/FTE Data", fileName = "FTEData")]
|
|
11
|
+
public class FTEData : ScriptableObject
|
|
12
|
+
{
|
|
13
|
+
/// <summary>
|
|
14
|
+
///
|
|
15
|
+
/// </summary>
|
|
16
|
+
[Tooltip("")]
|
|
17
|
+
public string characterName;
|
|
18
|
+
|
|
19
|
+
/// <summary>
|
|
20
|
+
///
|
|
21
|
+
/// </summary>
|
|
22
|
+
[Tooltip("")]
|
|
23
|
+
public int level;
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
public virtual void SetData(string name, int level = 0)
|
|
27
|
+
{
|
|
28
|
+
this.name = name;
|
|
29
|
+
|
|
30
|
+
characterName = name;
|
|
31
|
+
|
|
32
|
+
this.level = level;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/// <summary>
|
|
36
|
+
///
|
|
37
|
+
/// </summary>
|
|
38
|
+
/// <param name="level"></param>
|
|
39
|
+
public virtual void AddLevel(int level = 1) => this.level += level;
|
|
40
|
+
|
|
41
|
+
/// <summary>
|
|
42
|
+
///
|
|
43
|
+
/// </summary>
|
|
44
|
+
public virtual void Validate()
|
|
45
|
+
{
|
|
46
|
+
if (string.IsNullOrEmpty(name))
|
|
47
|
+
name = characterName;
|
|
48
|
+
else if (string.IsNullOrEmpty(characterName))
|
|
49
|
+
characterName = name;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
52
|
}
|
package/FTEData.cs.meta
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: ddd08d44e5147a7498fd316bc35a7248
|
|
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: ddd08d44e5147a7498fd316bc35a7248
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|