net.dreditor.presents 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.
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,45 +1,45 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using System.Collections.Generic;
3
- using UnityEngine;
4
-
5
- namespace DREditor.Presents
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- [System.Serializable]
11
- public class StudentReactionCollection : IPresentData
12
- {
13
- /// <summary>
14
- ///
15
- /// </summary>
16
- [SerializeReference]
17
- public List<IReactionEntry> studentReactions = new();
18
-
19
-
20
- /// <summary>
21
- ///
22
- /// </summary>
23
- /// <param name="name"></param>
24
- /// <returns></returns>
25
- public virtual IReactionEntry GetReactionByName(string name)
26
- {
27
- foreach (var reaction in studentReactions)
28
- if (reaction.Character.name == name)
29
- return reaction;
30
-
31
- return null;
32
- }
33
-
34
- /// <summary>
35
- ///
36
- /// </summary>
37
- /// <param name="name"></param>
38
- /// <param name="reactionIndex"></param>
39
- public virtual void SetReaction(string name, int reactionIndex) => GetReactionByName(name).ReactionIndex = reactionIndex;
40
-
41
-
42
- /// <inheritdoc/>
43
- public virtual bool IsValid() => studentReactions != null && studentReactions.Count > 0;
44
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using System.Collections.Generic;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.Presents
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ [System.Serializable]
11
+ public class StudentReactionCollection : IPresentData
12
+ {
13
+ /// <summary>
14
+ ///
15
+ /// </summary>
16
+ [SerializeReference]
17
+ public List<IReactionEntry> studentReactions = new();
18
+
19
+
20
+ /// <summary>
21
+ ///
22
+ /// </summary>
23
+ /// <param name="name"></param>
24
+ /// <returns></returns>
25
+ public virtual IReactionEntry GetReactionByName(string name)
26
+ {
27
+ foreach (var reaction in studentReactions)
28
+ if (reaction.Character.name == name)
29
+ return reaction;
30
+
31
+ return null;
32
+ }
33
+
34
+ /// <summary>
35
+ ///
36
+ /// </summary>
37
+ /// <param name="name"></param>
38
+ /// <param name="reactionIndex"></param>
39
+ public virtual void SetReaction(string name, int reactionIndex) => GetReactionByName(name).ReactionIndex = reactionIndex;
40
+
41
+
42
+ /// <inheritdoc/>
43
+ public virtual bool IsValid() => studentReactions != null && studentReactions.Count > 0;
44
+ }
45
45
  }
@@ -1,2 +1,2 @@
1
- fileFormatVersion: 2
1
+ fileFormatVersion: 2
2
2
  guid: 8385140d850ffe34e8faaa4d195731bb
package/package.json CHANGED
@@ -1,34 +1,39 @@
1
- {
2
- "name": "net.dreditor.presents",
3
- "version": "0.1.6",
4
- "displayName": "DREditor Presents",
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
- "net.dreditor.core": "0.1.6"
9
- },
10
- "publishConfig": {
11
- "access": "public"
12
- },
13
- "author": {
14
- "name": "Benjamin \"Sweden\" Jillson",
15
- "email": "dreditortool@gmail.com",
16
- "url": "https://dreditor.net"
17
- },
18
- "keywords": [
19
- "editor",
20
- "tool",
21
- "dreditor"
22
- ],
23
- "samples": [
24
- {
25
- "displayName": "Samples",
26
- "description": "",
27
- "path": "Samples~"
28
- }
29
- ],
30
- "documentationUrl": "https://dreditor.net",
31
- "license": "Apache-2.0",
32
- "licensesUrl": "https://dreditor.net/docs/LICENSE.html",
33
- "changelogUrl": "https://dreditor.net/docs/CHANGELOG.html"
34
- }
1
+ {
2
+ "name": "net.dreditor.presents",
3
+ "version": "0.1.8",
4
+ "displayName": "DREditor Presents",
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
+ "net.dreditor.core": "0.1.8"
9
+ },
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "author": {
14
+ "name": "Benjamin \"Sweden\" Jillson",
15
+ "email": "dreditortool@gmail.com",
16
+ "url": "https://dreditor.net"
17
+ },
18
+ "keywords": [
19
+ "editor",
20
+ "tool",
21
+ "dreditor"
22
+ ],
23
+ "samples": [
24
+ {
25
+ "displayName": "Samples",
26
+ "description": "",
27
+ "path": "Samples~"
28
+ }
29
+ ],
30
+ "documentationUrl": "https://dreditor.net",
31
+ "license": "Apache-2.0",
32
+ "licensesUrl": "https://dreditor.net/docs/LICENSE.html",
33
+ "changelogUrl": "https://dreditor.net/docs/CHANGELOG.html",
34
+ "repository": {
35
+ "url": "https://github.com/CertifiedSharp/DREditor",
36
+ "type": "git",
37
+ "revision": "416b18f937fb917bf3f595362a1082ed97457744"
38
+ }
39
+ }
package/package.json.meta CHANGED
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: 5dad37d80c1277e4093fd6cd3a39c605
3
- TextScriptImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 5dad37d80c1277e4093fd6cd3a39c605
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
package/Samples.meta DELETED
@@ -1,8 +0,0 @@
1
- fileFormatVersion: 2
2
- guid: 718ef3b8f6ee1c143bcc195011aae6f5
3
- folderAsset: yes
4
- DefaultImporter:
5
- externalObjects: {}
6
- userData:
7
- assetBundleName:
8
- assetBundleVariant: