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.
- package/.attestation.p7m +0 -0
- package/DREditor.Presents.asmdef +15 -15
- package/DREditor.Presents.asmdef.meta +7 -7
- package/Editor/CreatePresentsWizard.cs +159 -159
- package/Editor/CreatePresentsWizard.cs.meta +11 -11
- package/Editor/DREditor.Presents.Editor.asmdef +17 -17
- package/Editor/DREditor.Presents.Editor.asmdef.meta +7 -7
- package/Editor/DescriptionsByIDOption.cs +105 -105
- package/Editor/DescriptionsByIDOption.cs.meta +1 -1
- package/Editor/PresentDatabaseEditor.cs +183 -183
- package/Editor/PresentDatabaseEditor.cs.meta +11 -11
- package/Editor/PresentEditor.cs +152 -152
- package/Editor/PresentEditor.cs.meta +11 -11
- package/Editor/PresentGoogleSheetsImportOption.cs +54 -54
- package/Editor/PresentGoogleSheetsImportOption.cs.meta +1 -1
- package/Editor/PresentImportOptionBase.cs +131 -131
- package/Editor/PresentImportOptionBase.cs.meta +1 -1
- package/Editor/PresentReactionLevelOption.cs +80 -80
- package/Editor/PresentReactionLevelOption.cs.meta +1 -1
- package/Editor/PresentUtility.cs +41 -41
- package/Editor/PresentUtility.cs.meta +11 -11
- package/Editor/ReactionByIDCharactersOption.cs +135 -135
- package/Editor/ReactionByIDCharactersOption.cs.meta +1 -1
- package/Editor/ReactionByIDOption.cs +53 -53
- package/Editor/ReactionByIDOption.cs.meta +1 -1
- package/Editor/ReactionImportOption.cs +73 -73
- package/Editor/ReactionImportOption.cs.meta +1 -1
- package/Editor/ReactionImporter.cs +58 -58
- package/Editor/ReactionImporter.cs.meta +11 -11
- package/Editor/RenamePresentsByIDOption.cs +95 -95
- package/Editor/RenamePresentsByIDOption.cs.meta +1 -1
- package/Editor/StudentReactionCollectionEditor.cs +103 -103
- package/Editor/StudentReactionCollectionEditor.cs.meta +1 -1
- package/Editor/StudentReactionEditor.cs +82 -82
- package/Editor/StudentReactionEditor.cs.meta +1 -1
- package/Editor.meta +8 -8
- package/IAmountablePresent.cs +28 -28
- package/IAmountablePresent.cs.meta +1 -1
- package/INewPresentObtained.cs +21 -21
- package/INewPresentObtained.cs.meta +1 -1
- package/IPresentData.cs +9 -9
- package/IPresentData.cs.meta +1 -1
- package/IPresentManager.cs +37 -37
- package/IPresentManager.cs.meta +1 -1
- package/IReactionEntry.cs +20 -20
- package/IReactionEntry.cs.meta +1 -1
- package/Present.cs +23 -23
- package/Present.cs.meta +11 -11
- package/PresentData.cs +49 -49
- package/PresentData.cs.meta +11 -11
- package/PresentDatabase.cs +27 -27
- package/PresentDatabase.cs.meta +11 -11
- package/PresentManager.cs +70 -70
- package/PresentManager.cs.meta +11 -11
- package/PresentManagerBase.cs +34 -34
- package/PresentManagerBase.cs.meta +1 -1
- package/PresentReactionLevel.cs +12 -12
- package/PresentReactionLevel.cs.meta +11 -11
- package/PresentSaveBase.cs +25 -25
- package/PresentSaveBase.cs.meta +1 -1
- package/ReactionLevelDatabase.cs +34 -34
- package/ReactionLevelDatabase.cs.meta +11 -11
- package/{Samples → Samples~}/Present_Manager.prefab +54 -54
- package/{Samples → Samples~}/Present_Manager.prefab.meta +7 -7
- package/StudentReaction.cs +27 -27
- package/StudentReaction.cs.meta +1 -1
- package/StudentReactionCollection.cs +44 -44
- package/StudentReactionCollection.cs.meta +1 -1
- package/package.json +39 -34
- package/package.json.meta +7 -7
- 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.
|
|
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.
|
|
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.7",
|
|
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.7"
|
|
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": "14ca252fbb33eb6f53557ecaed1c10902877698f"
|
|
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:
|