net.dreditor.presents 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.
Files changed (71) hide show
  1. package/.attestation.p7m +0 -0
  2. package/DREditor.Presents.asmdef +15 -15
  3. package/DREditor.Presents.asmdef.meta +7 -7
  4. package/Editor/CreatePresentsWizard.cs +159 -159
  5. package/Editor/CreatePresentsWizard.cs.meta +11 -11
  6. package/Editor/DREditor.Presents.Editor.asmdef +17 -17
  7. package/Editor/DREditor.Presents.Editor.asmdef.meta +7 -7
  8. package/Editor/DescriptionsByIDOption.cs +105 -105
  9. package/Editor/DescriptionsByIDOption.cs.meta +1 -1
  10. package/Editor/PresentDatabaseEditor.cs +183 -183
  11. package/Editor/PresentDatabaseEditor.cs.meta +11 -11
  12. package/Editor/PresentEditor.cs +152 -152
  13. package/Editor/PresentEditor.cs.meta +11 -11
  14. package/Editor/PresentGoogleSheetsImportOption.cs +54 -54
  15. package/Editor/PresentGoogleSheetsImportOption.cs.meta +1 -1
  16. package/Editor/PresentImportOptionBase.cs +131 -131
  17. package/Editor/PresentImportOptionBase.cs.meta +1 -1
  18. package/Editor/PresentReactionLevelOption.cs +80 -80
  19. package/Editor/PresentReactionLevelOption.cs.meta +1 -1
  20. package/Editor/PresentUtility.cs +41 -41
  21. package/Editor/PresentUtility.cs.meta +11 -11
  22. package/Editor/ReactionByIDCharactersOption.cs +135 -135
  23. package/Editor/ReactionByIDCharactersOption.cs.meta +1 -1
  24. package/Editor/ReactionByIDOption.cs +53 -53
  25. package/Editor/ReactionByIDOption.cs.meta +1 -1
  26. package/Editor/ReactionImportOption.cs +73 -73
  27. package/Editor/ReactionImportOption.cs.meta +1 -1
  28. package/Editor/ReactionImporter.cs +58 -58
  29. package/Editor/ReactionImporter.cs.meta +11 -11
  30. package/Editor/RenamePresentsByIDOption.cs +95 -95
  31. package/Editor/RenamePresentsByIDOption.cs.meta +1 -1
  32. package/Editor/StudentReactionCollectionEditor.cs +103 -103
  33. package/Editor/StudentReactionCollectionEditor.cs.meta +1 -1
  34. package/Editor/StudentReactionEditor.cs +82 -82
  35. package/Editor/StudentReactionEditor.cs.meta +1 -1
  36. package/Editor.meta +8 -8
  37. package/IAmountablePresent.cs +28 -28
  38. package/IAmountablePresent.cs.meta +1 -1
  39. package/INewPresentObtained.cs +21 -21
  40. package/INewPresentObtained.cs.meta +1 -1
  41. package/IPresentData.cs +9 -9
  42. package/IPresentData.cs.meta +1 -1
  43. package/IPresentManager.cs +37 -37
  44. package/IPresentManager.cs.meta +1 -1
  45. package/IReactionEntry.cs +20 -20
  46. package/IReactionEntry.cs.meta +1 -1
  47. package/Present.cs +23 -23
  48. package/Present.cs.meta +11 -11
  49. package/PresentData.cs +49 -49
  50. package/PresentData.cs.meta +11 -11
  51. package/PresentDatabase.cs +27 -27
  52. package/PresentDatabase.cs.meta +11 -11
  53. package/PresentManager.cs +70 -70
  54. package/PresentManager.cs.meta +11 -11
  55. package/PresentManagerBase.cs +34 -34
  56. package/PresentManagerBase.cs.meta +1 -1
  57. package/PresentReactionLevel.cs +12 -12
  58. package/PresentReactionLevel.cs.meta +11 -11
  59. package/PresentSaveBase.cs +25 -25
  60. package/PresentSaveBase.cs.meta +1 -1
  61. package/ReactionLevelDatabase.cs +34 -34
  62. package/ReactionLevelDatabase.cs.meta +11 -11
  63. package/{Samples → Samples~}/Present_Manager.prefab +54 -54
  64. package/{Samples → Samples~}/Present_Manager.prefab.meta +7 -7
  65. package/StudentReaction.cs +27 -27
  66. package/StudentReaction.cs.meta +1 -1
  67. package/StudentReactionCollection.cs +44 -44
  68. package/StudentReactionCollection.cs.meta +1 -1
  69. package/package.json +39 -34
  70. package/package.json.meta +7 -7
  71. package/Samples.meta +0 -8
@@ -1,29 +1,29 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Processables;
3
-
4
- namespace DREditor.Presents
5
- {
6
- /// <summary>
7
- ///
8
- /// </summary>
9
- public interface IAmountablePresent : IIdentifiable
10
- {
11
- /// <summary>
12
- ///
13
- /// </summary>
14
- public int Amount { get; set; }
15
-
16
-
17
- /// <summary>
18
- ///
19
- /// </summary>
20
- /// <param name="amt"></param>
21
- void Add(int amt = 1);
22
-
23
- /// <summary>
24
- ///
25
- /// </summary>
26
- /// <param name="amt"></param>
27
- void Remove(int amt = 1);
28
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Processables;
3
+
4
+ namespace DREditor.Presents
5
+ {
6
+ /// <summary>
7
+ ///
8
+ /// </summary>
9
+ public interface IAmountablePresent : IIdentifiable
10
+ {
11
+ /// <summary>
12
+ ///
13
+ /// </summary>
14
+ public int Amount { get; set; }
15
+
16
+
17
+ /// <summary>
18
+ ///
19
+ /// </summary>
20
+ /// <param name="amt"></param>
21
+ void Add(int amt = 1);
22
+
23
+ /// <summary>
24
+ ///
25
+ /// </summary>
26
+ /// <param name="amt"></param>
27
+ void Remove(int amt = 1);
28
+ }
29
29
  }
@@ -1,2 +1,2 @@
1
- fileFormatVersion: 2
1
+ fileFormatVersion: 2
2
2
  guid: 3b66fa1cfc9f4d94ba2aec98954293b6
@@ -1,22 +1,22 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Processables;
3
-
4
- namespace DREditor.Presents
5
- {
6
- /// <summary>
7
- ///
8
- /// </summary>
9
- public interface INewPresentObtained : IIdentifiable
10
- {
11
- /// <summary>
12
- ///
13
- /// </summary>
14
- public bool JustObtained { get; set; }
15
-
16
-
17
- /// <summary>
18
- ///
19
- /// </summary>
20
- void NoLongerNew();
21
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Processables;
3
+
4
+ namespace DREditor.Presents
5
+ {
6
+ /// <summary>
7
+ ///
8
+ /// </summary>
9
+ public interface INewPresentObtained : IIdentifiable
10
+ {
11
+ /// <summary>
12
+ ///
13
+ /// </summary>
14
+ public bool JustObtained { get; set; }
15
+
16
+
17
+ /// <summary>
18
+ ///
19
+ /// </summary>
20
+ void NoLongerNew();
21
+ }
22
22
  }
@@ -1,2 +1,2 @@
1
- fileFormatVersion: 2
1
+ fileFormatVersion: 2
2
2
  guid: 201c231f6c570f9468b439370d8a5795
package/IPresentData.cs CHANGED
@@ -1,10 +1,10 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Items;
3
-
4
- namespace DREditor.Presents
5
- {
6
- /// <summary>
7
- ///
8
- /// </summary>
9
- public interface IPresentData : IItemAttribute { }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Items;
3
+
4
+ namespace DREditor.Presents
5
+ {
6
+ /// <summary>
7
+ ///
8
+ /// </summary>
9
+ public interface IPresentData : IItemAttribute { }
10
10
  }
@@ -1,2 +1,2 @@
1
- fileFormatVersion: 2
1
+ fileFormatVersion: 2
2
2
  guid: c8269fce4e37f9a478c2c5834ea9271c
@@ -1,38 +1,38 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Processables;
3
-
4
- namespace DREditor.Presents
5
- {
6
- /// <summary>
7
- ///
8
- /// </summary>
9
- public interface IPresentManager
10
- {
11
- /// <summary>
12
- ///
13
- /// </summary>
14
- int Count { get; }
15
-
16
-
17
- /// <summary>
18
- ///
19
- /// </summary>
20
- /// <param name="id"></param>
21
- /// <returns></returns>
22
- T Get<T>(int id) where T : IIdentifiable;
23
-
24
- /// <summary>
25
- ///
26
- /// </summary>
27
- /// <param name="id"></param>
28
- /// <param name="amt"></param>
29
- void AddPresent(int id, int amt = 1);
30
-
31
- /// <summary>
32
- ///
33
- /// </summary>
34
- /// <param name="id"></param>
35
- /// <returns></returns>
36
- bool HadPresent(int id);
37
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Processables;
3
+
4
+ namespace DREditor.Presents
5
+ {
6
+ /// <summary>
7
+ ///
8
+ /// </summary>
9
+ public interface IPresentManager
10
+ {
11
+ /// <summary>
12
+ ///
13
+ /// </summary>
14
+ int Count { get; }
15
+
16
+
17
+ /// <summary>
18
+ ///
19
+ /// </summary>
20
+ /// <param name="id"></param>
21
+ /// <returns></returns>
22
+ T Get<T>(int id) where T : IIdentifiable;
23
+
24
+ /// <summary>
25
+ ///
26
+ /// </summary>
27
+ /// <param name="id"></param>
28
+ /// <param name="amt"></param>
29
+ void AddPresent(int id, int amt = 1);
30
+
31
+ /// <summary>
32
+ ///
33
+ /// </summary>
34
+ /// <param name="id"></param>
35
+ /// <returns></returns>
36
+ bool HadPresent(int id);
37
+ }
38
38
  }
@@ -1,2 +1,2 @@
1
- fileFormatVersion: 2
1
+ fileFormatVersion: 2
2
2
  guid: 239cd4dec7bd53644a524a47ca4323bc
package/IReactionEntry.cs CHANGED
@@ -1,21 +1,21 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Characters;
3
-
4
- namespace DREditor.Presents
5
- {
6
- /// <summary>
7
- ///
8
- /// </summary>
9
- public interface IReactionEntry
10
- {
11
- /// <summary>
12
- ///
13
- /// </summary>
14
- Character Character { get; set; }
15
-
16
- /// <summary>
17
- ///
18
- /// </summary>
19
- int ReactionIndex { get; set; }
20
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Characters;
3
+
4
+ namespace DREditor.Presents
5
+ {
6
+ /// <summary>
7
+ ///
8
+ /// </summary>
9
+ public interface IReactionEntry
10
+ {
11
+ /// <summary>
12
+ ///
13
+ /// </summary>
14
+ Character Character { get; set; }
15
+
16
+ /// <summary>
17
+ ///
18
+ /// </summary>
19
+ int ReactionIndex { get; set; }
20
+ }
21
21
  }
@@ -1,2 +1,2 @@
1
- fileFormatVersion: 2
1
+ fileFormatVersion: 2
2
2
  guid: 762b013cc69379a4e8230bea8fe13c31
package/Present.cs CHANGED
@@ -1,24 +1,24 @@
1
- // Original Author: KHeartz
2
- // Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
3
- using DREditor.Items;
4
- using DREditor.Processables;
5
- using UnityEngine;
6
-
7
- namespace DREditor.Presents
8
- {
9
- /// <summary>
10
- ///
11
- /// </summary>
12
- [System.Serializable]
13
- [CreateAssetMenu(menuName = "DREditor/Presents/Present", fileName = "Present")]
14
- public class Present : AttributableInventoryItem<IPresentData>, IIdentifiable
15
- {
16
- /// <summary>
17
- ///
18
- /// </summary>
19
- [SerializeField] protected int id;
20
-
21
-
22
- public virtual int ID { get => id; set => id = value; }
23
- }
1
+ // Original Author: KHeartz
2
+ // Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
3
+ using DREditor.Items;
4
+ using DREditor.Processables;
5
+ using UnityEngine;
6
+
7
+ namespace DREditor.Presents
8
+ {
9
+ /// <summary>
10
+ ///
11
+ /// </summary>
12
+ [System.Serializable]
13
+ [CreateAssetMenu(menuName = "DREditor/Presents/Present", fileName = "Present")]
14
+ public class Present : AttributableInventoryItem<IPresentData>, IIdentifiable
15
+ {
16
+ /// <summary>
17
+ ///
18
+ /// </summary>
19
+ [SerializeField] protected int id;
20
+
21
+
22
+ public virtual int ID { get => id; set => id = value; }
23
+ }
24
24
  }
package/Present.cs.meta CHANGED
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 4708e17348037514e8ae9b21cb0dfd4f
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: 4708e17348037514e8ae9b21cb0dfd4f
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
package/PresentData.cs CHANGED
@@ -1,50 +1,50 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using UnityEngine;
3
-
4
- namespace DREditor.Presents
5
- {
6
- /// <summary>
7
- ///
8
- /// </summary>
9
- [System.Serializable]
10
- public class PresentData : PresentSaveBase, INewPresentObtained, IAmountablePresent
11
- {
12
- /// <summary>
13
- ///
14
- /// </summary>
15
- [Tooltip("")]
16
- [SerializeField] protected int amount = 0;
17
-
18
- /// <summary>
19
- ///
20
- /// </summary>
21
- [Tooltip("")]
22
- [SerializeField] protected bool justObtained = true;
23
-
24
-
25
- public virtual int Amount { get => amount; set => amount = value; }
26
-
27
- public virtual bool JustObtained { get => justObtained; set => justObtained = value; }
28
-
29
-
30
- public PresentData() { }
31
-
32
- public PresentData(int ID, int amount) : base(ID) => this.amount = amount;
33
-
34
-
35
- /// <inheritdoc/>
36
- public virtual void NoLongerNew() => JustObtained = false;
37
-
38
- /// <inheritdoc/>
39
- public virtual void Add(int amt = 1) => Amount += amt;
40
-
41
- /// <inheritdoc/>
42
- public virtual void Remove(int amt = 1)
43
- {
44
- if (Amount > 0)
45
- Amount -= amt;
46
- else
47
- UnityEngine.Debug.LogWarning("ALERT: You are trying to remove a present the player doesn't have enough of.");
48
- }
49
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using UnityEngine;
3
+
4
+ namespace DREditor.Presents
5
+ {
6
+ /// <summary>
7
+ ///
8
+ /// </summary>
9
+ [System.Serializable]
10
+ public class PresentData : PresentSaveBase, INewPresentObtained, IAmountablePresent
11
+ {
12
+ /// <summary>
13
+ ///
14
+ /// </summary>
15
+ [Tooltip("")]
16
+ [SerializeField] protected int amount = 0;
17
+
18
+ /// <summary>
19
+ ///
20
+ /// </summary>
21
+ [Tooltip("")]
22
+ [SerializeField] protected bool justObtained = true;
23
+
24
+
25
+ public virtual int Amount { get => amount; set => amount = value; }
26
+
27
+ public virtual bool JustObtained { get => justObtained; set => justObtained = value; }
28
+
29
+
30
+ public PresentData() { }
31
+
32
+ public PresentData(int ID, int amount) : base(ID) => this.amount = amount;
33
+
34
+
35
+ /// <inheritdoc/>
36
+ public virtual void NoLongerNew() => JustObtained = false;
37
+
38
+ /// <inheritdoc/>
39
+ public virtual void Add(int amt = 1) => Amount += amt;
40
+
41
+ /// <inheritdoc/>
42
+ public virtual void Remove(int amt = 1)
43
+ {
44
+ if (Amount > 0)
45
+ Amount -= amt;
46
+ else
47
+ UnityEngine.Debug.LogWarning("ALERT: You are trying to remove a present the player doesn't have enough of.");
48
+ }
49
+ }
50
50
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 8b67a7b969e67924fa3382a46e69ff25
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: 8b67a7b969e67924fa3382a46e69ff25
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,28 +1,28 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For DREditor
2
- using System.Collections.Generic;
3
- using System.Linq;
4
- using UnityEngine;
5
-
6
- namespace DREditor.Presents
7
- {
8
- /// <summary>
9
- ///
10
- /// </summary>
11
- [System.Serializable]
12
- [CreateAssetMenu(menuName = "DREditor/Presents/Database", fileName = "PresentDatabase")]
13
- public class PresentDatabase : ScriptableObject
14
- {
15
- /// <summary>
16
- ///
17
- /// </summary>
18
- public List<Present> presents = new();
19
-
20
-
21
- /// <summary>
22
- ///
23
- /// </summary>
24
- /// <param name="id"></param>
25
- /// <returns></returns>
26
- public virtual Present GetPresentByID(int id) => presents.Where(p => p.ID == id).FirstOrDefault();
27
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For DREditor
2
+ using System.Collections.Generic;
3
+ using System.Linq;
4
+ using UnityEngine;
5
+
6
+ namespace DREditor.Presents
7
+ {
8
+ /// <summary>
9
+ ///
10
+ /// </summary>
11
+ [System.Serializable]
12
+ [CreateAssetMenu(menuName = "DREditor/Presents/Database", fileName = "PresentDatabase")]
13
+ public class PresentDatabase : ScriptableObject
14
+ {
15
+ /// <summary>
16
+ ///
17
+ /// </summary>
18
+ public List<Present> presents = new();
19
+
20
+
21
+ /// <summary>
22
+ ///
23
+ /// </summary>
24
+ /// <param name="id"></param>
25
+ /// <returns></returns>
26
+ public virtual Present GetPresentByID(int id) => presents.Where(p => p.ID == id).FirstOrDefault();
27
+ }
28
28
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 29abc245fd095e3438e5e68d986d00d7
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: 29abc245fd095e3438e5e68d986d00d7
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: