net.dreditor.freetime 0.1.6 → 0.1.8
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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: d13ea1180bb631e4c9412a29fb299287
|
|
3
|
-
PrefabImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
userData:
|
|
6
|
-
assetBundleName:
|
|
7
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: d13ea1180bb631e4c9412a29fb299287
|
|
3
|
+
PrefabImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
userData:
|
|
6
|
+
assetBundleName:
|
|
7
|
+
assetBundleVariant:
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.Characters;
|
|
3
|
-
using System;
|
|
4
|
-
using System.Collections.Generic;
|
|
5
|
-
using UnityEngine;
|
|
6
|
-
|
|
7
|
-
namespace DREditor.FreeTime
|
|
8
|
-
{
|
|
9
|
-
/// <summary>
|
|
10
|
-
///
|
|
11
|
-
/// </summary>
|
|
12
|
-
[Serializable]
|
|
13
|
-
public class SimpleFTEEntryCollection : ICharacterData
|
|
14
|
-
{
|
|
15
|
-
/// <summary>
|
|
16
|
-
///
|
|
17
|
-
/// </summary>
|
|
18
|
-
[Header("")]
|
|
19
|
-
[Tooltip("")]
|
|
20
|
-
[TextArea]
|
|
21
|
-
[SerializeField] protected List<string> entries = new();
|
|
22
|
-
|
|
23
|
-
public virtual int Count => entries.Count;
|
|
24
|
-
|
|
25
|
-
public virtual bool IsValid => Count != 0;
|
|
26
|
-
|
|
27
|
-
public string this[int i] => entries[i];
|
|
28
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.Characters;
|
|
3
|
+
using System;
|
|
4
|
+
using System.Collections.Generic;
|
|
5
|
+
using UnityEngine;
|
|
6
|
+
|
|
7
|
+
namespace DREditor.FreeTime
|
|
8
|
+
{
|
|
9
|
+
/// <summary>
|
|
10
|
+
///
|
|
11
|
+
/// </summary>
|
|
12
|
+
[Serializable]
|
|
13
|
+
public class SimpleFTEEntryCollection : ICharacterData
|
|
14
|
+
{
|
|
15
|
+
/// <summary>
|
|
16
|
+
///
|
|
17
|
+
/// </summary>
|
|
18
|
+
[Header("")]
|
|
19
|
+
[Tooltip("")]
|
|
20
|
+
[TextArea]
|
|
21
|
+
[SerializeField] protected List<string> entries = new();
|
|
22
|
+
|
|
23
|
+
public virtual int Count => entries.Count;
|
|
24
|
+
|
|
25
|
+
public virtual bool IsValid => Count != 0;
|
|
26
|
+
|
|
27
|
+
public string this[int i] => entries[i];
|
|
28
|
+
}
|
|
29
29
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
1
|
+
fileFormatVersion: 2
|
|
2
2
|
guid: 2ec9e396269a1de4e97bdba98c37306d
|
package/StartFTEAnimation.cs
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.Saving.Handlers;
|
|
3
|
-
using DREditor.DialogueMechanics.Investigation;
|
|
4
|
-
using DREditor.Dialogues;
|
|
5
|
-
using DREditor.EventObjects;
|
|
6
|
-
using System.Collections;
|
|
7
|
-
using UnityEngine;
|
|
8
|
-
|
|
9
|
-
namespace DREditor.FreeTime
|
|
10
|
-
{
|
|
11
|
-
/// <summary>
|
|
12
|
-
///
|
|
13
|
-
/// </summary>
|
|
14
|
-
[ClassHeader(nameof(IPhaseStartHandler) +
|
|
15
|
-
"\n\n")]
|
|
16
|
-
public class StartFTEAnimation : PhaseStartAnimationHandler<StartFTEAnimation>
|
|
17
|
-
{
|
|
18
|
-
/// <summary>
|
|
19
|
-
///
|
|
20
|
-
/// </summary>
|
|
21
|
-
[Tooltip("")]
|
|
22
|
-
[SerializeField] protected string startTriggerName = "Start";
|
|
23
|
-
|
|
24
|
-
/// <summary>
|
|
25
|
-
///
|
|
26
|
-
/// </summary>
|
|
27
|
-
[Space]
|
|
28
|
-
|
|
29
|
-
[Header("")]
|
|
30
|
-
|
|
31
|
-
[Tooltip("")]
|
|
32
|
-
[SerializeField] protected int addCurrencyEachDay = 10;
|
|
33
|
-
|
|
34
|
-
/// <summary>
|
|
35
|
-
///
|
|
36
|
-
/// </summary>
|
|
37
|
-
[Tooltip("")]
|
|
38
|
-
[SerializeField] protected CurrencyHandler<int> currencyHandler = null;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
/// <summary>
|
|
42
|
-
///
|
|
43
|
-
/// </summary>
|
|
44
|
-
[Header("")]
|
|
45
|
-
|
|
46
|
-
[Tooltip("")]
|
|
47
|
-
[SerializeField] protected IntWithEvent currentAddState = null;
|
|
48
|
-
|
|
49
|
-
/// <summary>
|
|
50
|
-
///
|
|
51
|
-
/// </summary>
|
|
52
|
-
[Tooltip("")]
|
|
53
|
-
[SerializeField] protected int currentAddStateValue = 5;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/// <inheritdoc/>
|
|
58
|
-
public override IEnumerator OnPhaseStart(StartInvestigation start)
|
|
59
|
-
{
|
|
60
|
-
yield return base.OnPhaseStart(start);
|
|
61
|
-
|
|
62
|
-
currencyHandler.AddCurrency(addCurrencyEachDay);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/// <inheritdoc/>
|
|
66
|
-
protected override void PlayStartAnimation() => startAnimator.SetTrigger(startTriggerName);
|
|
67
|
-
|
|
68
|
-
/// <inheritdoc/>
|
|
69
|
-
public override void AfterLoadingRoom() => currentAddState.SetValue(currentAddStateValue);
|
|
70
|
-
|
|
71
|
-
/// <summary>
|
|
72
|
-
///
|
|
73
|
-
/// </summary>
|
|
74
|
-
[BehaviourButton]
|
|
75
|
-
public virtual void DebugStartAnimation() => StartCoroutine(OnPhaseStart(null));
|
|
76
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.Saving.Handlers;
|
|
3
|
+
using DREditor.DialogueMechanics.Investigation;
|
|
4
|
+
using DREditor.Dialogues;
|
|
5
|
+
using DREditor.EventObjects;
|
|
6
|
+
using System.Collections;
|
|
7
|
+
using UnityEngine;
|
|
8
|
+
|
|
9
|
+
namespace DREditor.FreeTime
|
|
10
|
+
{
|
|
11
|
+
/// <summary>
|
|
12
|
+
///
|
|
13
|
+
/// </summary>
|
|
14
|
+
[ClassHeader(nameof(IPhaseStartHandler) +
|
|
15
|
+
"\n\n")]
|
|
16
|
+
public class StartFTEAnimation : PhaseStartAnimationHandler<StartFTEAnimation>
|
|
17
|
+
{
|
|
18
|
+
/// <summary>
|
|
19
|
+
///
|
|
20
|
+
/// </summary>
|
|
21
|
+
[Tooltip("")]
|
|
22
|
+
[SerializeField] protected string startTriggerName = "Start";
|
|
23
|
+
|
|
24
|
+
/// <summary>
|
|
25
|
+
///
|
|
26
|
+
/// </summary>
|
|
27
|
+
[Space]
|
|
28
|
+
|
|
29
|
+
[Header("")]
|
|
30
|
+
|
|
31
|
+
[Tooltip("")]
|
|
32
|
+
[SerializeField] protected int addCurrencyEachDay = 10;
|
|
33
|
+
|
|
34
|
+
/// <summary>
|
|
35
|
+
///
|
|
36
|
+
/// </summary>
|
|
37
|
+
[Tooltip("")]
|
|
38
|
+
[SerializeField] protected CurrencyHandler<int> currencyHandler = null;
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/// <summary>
|
|
42
|
+
///
|
|
43
|
+
/// </summary>
|
|
44
|
+
[Header("")]
|
|
45
|
+
|
|
46
|
+
[Tooltip("")]
|
|
47
|
+
[SerializeField] protected IntWithEvent currentAddState = null;
|
|
48
|
+
|
|
49
|
+
/// <summary>
|
|
50
|
+
///
|
|
51
|
+
/// </summary>
|
|
52
|
+
[Tooltip("")]
|
|
53
|
+
[SerializeField] protected int currentAddStateValue = 5;
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
/// <inheritdoc/>
|
|
58
|
+
public override IEnumerator OnPhaseStart(StartInvestigation start)
|
|
59
|
+
{
|
|
60
|
+
yield return base.OnPhaseStart(start);
|
|
61
|
+
|
|
62
|
+
currencyHandler.AddCurrency(addCurrencyEachDay);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/// <inheritdoc/>
|
|
66
|
+
protected override void PlayStartAnimation() => startAnimator.SetTrigger(startTriggerName);
|
|
67
|
+
|
|
68
|
+
/// <inheritdoc/>
|
|
69
|
+
public override void AfterLoadingRoom() => currentAddState.SetValue(currentAddStateValue);
|
|
70
|
+
|
|
71
|
+
/// <summary>
|
|
72
|
+
///
|
|
73
|
+
/// </summary>
|
|
74
|
+
[BehaviourButton]
|
|
75
|
+
public virtual void DebugStartAnimation() => StartCoroutine(OnPhaseStart(null));
|
|
76
|
+
}
|
|
77
77
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 41749b87004d0604e932adcf7bd84cb0
|
|
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: 41749b87004d0604e932adcf7bd84cb0
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/package.json
CHANGED
|
@@ -1,42 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "net.dreditor.freetime",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"displayName": "DREditor Free Time",
|
|
5
|
-
"description": "The beta for DREditor. A tool to create death game style projects without having to code.",
|
|
6
|
-
"unity": "6000.4",
|
|
7
|
-
"dependencies": {
|
|
8
|
-
"com.unity.inputsystem": "1.19.0",
|
|
9
|
-
"com.unity.ugui": "2.0.0",
|
|
10
|
-
"net.dreditor.core": "0.1.
|
|
11
|
-
"net.dreditor.fading": "0.1.
|
|
12
|
-
"net.dreditor.dialogueeventhandling": "0.1.
|
|
13
|
-
"net.dreditor.roomloading": "0.1.
|
|
14
|
-
"net.dreditor.dialoguemechanics.investigation": "0.1.
|
|
15
|
-
"net.dreditor.ui.reportcards": "0.1.
|
|
16
|
-
"net.dreditor.presents": "0.1.
|
|
17
|
-
},
|
|
18
|
-
"publishConfig": {
|
|
19
|
-
"access": "public"
|
|
20
|
-
},
|
|
21
|
-
"author": {
|
|
22
|
-
"name": "Benjamin \"Sweden\" Jillson",
|
|
23
|
-
"email": "dreditortool@gmail.com",
|
|
24
|
-
"url": "https://dreditor.net"
|
|
25
|
-
},
|
|
26
|
-
"keywords": [
|
|
27
|
-
"editor",
|
|
28
|
-
"tool",
|
|
29
|
-
"dreditor"
|
|
30
|
-
],
|
|
31
|
-
"samples": [
|
|
32
|
-
{
|
|
33
|
-
"displayName": "Samples",
|
|
34
|
-
"description": "",
|
|
35
|
-
"path": "Samples~"
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
"documentationUrl": "https://dreditor.net",
|
|
39
|
-
"license": "Apache-2.0",
|
|
40
|
-
"licensesUrl": "https://dreditor.net/docs/LICENSE.html",
|
|
41
|
-
"changelogUrl": "https://dreditor.net/docs/CHANGELOG.html"
|
|
42
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "net.dreditor.freetime",
|
|
3
|
+
"version": "0.1.8",
|
|
4
|
+
"displayName": "DREditor Free Time",
|
|
5
|
+
"description": "The beta for DREditor. A tool to create death game style projects without having to code.",
|
|
6
|
+
"unity": "6000.4",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"com.unity.inputsystem": "1.19.0",
|
|
9
|
+
"com.unity.ugui": "2.0.0",
|
|
10
|
+
"net.dreditor.core": "0.1.8",
|
|
11
|
+
"net.dreditor.fading": "0.1.8",
|
|
12
|
+
"net.dreditor.dialogueeventhandling": "0.1.8",
|
|
13
|
+
"net.dreditor.roomloading": "0.1.8",
|
|
14
|
+
"net.dreditor.dialoguemechanics.investigation": "0.1.8",
|
|
15
|
+
"net.dreditor.ui.reportcards": "0.1.8",
|
|
16
|
+
"net.dreditor.presents": "0.1.8"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"author": {
|
|
22
|
+
"name": "Benjamin \"Sweden\" Jillson",
|
|
23
|
+
"email": "dreditortool@gmail.com",
|
|
24
|
+
"url": "https://dreditor.net"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"editor",
|
|
28
|
+
"tool",
|
|
29
|
+
"dreditor"
|
|
30
|
+
],
|
|
31
|
+
"samples": [
|
|
32
|
+
{
|
|
33
|
+
"displayName": "Samples",
|
|
34
|
+
"description": "",
|
|
35
|
+
"path": "Samples~"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"documentationUrl": "https://dreditor.net",
|
|
39
|
+
"license": "Apache-2.0",
|
|
40
|
+
"licensesUrl": "https://dreditor.net/docs/LICENSE.html",
|
|
41
|
+
"changelogUrl": "https://dreditor.net/docs/CHANGELOG.html",
|
|
42
|
+
"repository": {
|
|
43
|
+
"url": "https://github.com/CertifiedSharp/DREditor",
|
|
44
|
+
"type": "git",
|
|
45
|
+
"revision": "416b18f937fb917bf3f595362a1082ed97457744"
|
|
46
|
+
}
|
|
47
|
+
}
|
package/package.json.meta
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 2498e5f2c66797d44bcd65988d73c76a
|
|
3
|
-
TextScriptImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
userData:
|
|
6
|
-
assetBundleName:
|
|
7
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 2498e5f2c66797d44bcd65988d73c76a
|
|
3
|
+
TextScriptImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
userData:
|
|
6
|
+
assetBundleName:
|
|
7
|
+
assetBundleVariant:
|