net.dreditor.audiolinehandling 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/AudioLineHandler.cs +35 -35
- package/AudioLineHandler.cs.meta +11 -11
- package/DREditor.AudioLineHandling.asmdef +18 -18
- package/DREditor.AudioLineHandling.asmdef.meta +7 -7
- package/EnvironmentSFXLineHandler.cs +18 -18
- package/EnvironmentSFXLineHandler.cs.meta +11 -11
- package/LineEndStopVoiceLine.cs +19 -19
- package/LineEndStopVoiceLine.cs.meta +11 -11
- package/LineStartStopEnvironmentSFX.cs +28 -28
- package/LineStartStopEnvironmentSFX.cs.meta +11 -11
- package/MusicLineHandler.cs +21 -21
- package/MusicLineHandler.cs.meta +11 -11
- package/PlayAudioHandlers.cs +28 -28
- package/PlayAudioHandlers.cs.meta +11 -11
- package/SFXLineHandler.cs +22 -22
- package/SFXLineHandler.cs.meta +11 -11
- package/{Samples → Samples~}/Environment_SFX_Line_Handler.prefab +47 -47
- package/{Samples → Samples~}/Environment_SFX_Line_Handler.prefab.meta +7 -7
- package/{Samples → Samples~}/LineEndStopVoiceLine.prefab +46 -46
- package/{Samples → Samples~}/LineEndStopVoiceLine.prefab.meta +7 -7
- package/{Samples → Samples~}/Line_Start_Stop_Environment_SFX.prefab +46 -46
- package/{Samples → Samples~}/Line_Start_Stop_Environment_SFX.prefab.meta +7 -7
- package/{Samples → Samples~}/Music_Line_Handler.prefab +47 -47
- package/{Samples → Samples~}/Music_Line_Handler.prefab.meta +7 -7
- package/{Samples → Samples~}/Play_Audio_Handlers.prefab +404 -404
- package/{Samples → Samples~}/Play_Audio_Handlers.prefab.meta +7 -7
- package/{Samples → Samples~}/SFX_Line_Handler.prefab +47 -47
- package/{Samples → Samples~}/SFX_Line_Handler.prefab.meta +7 -7
- package/{Samples → Samples~}/Stop_Sound_FX_Line_Handler.prefab +47 -47
- package/{Samples → Samples~}/Stop_Sound_FX_Line_Handler.prefab.meta +7 -7
- package/{Samples → Samples~}/Voice_Line_Handler.prefab +47 -47
- package/{Samples → Samples~}/Voice_Line_Handler.prefab.meta +7 -7
- package/StopSoundFXLineHandler.cs +21 -21
- package/StopSoundFXLineHandler.cs.meta +11 -11
- package/VoiceLineHandler.cs +18 -18
- package/VoiceLineHandler.cs.meta +11 -11
- package/package.json +40 -35
- package/package.json.meta +7 -7
- package/Samples.meta +0 -8
package/.attestation.p7m
ADDED
|
Binary file
|
package/AudioLineHandler.cs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.Dialogues;
|
|
3
|
-
using DREditor.Dialogues.LineReading;
|
|
4
|
-
using DREditor.EventObjects;
|
|
5
|
-
using UnityEngine;
|
|
6
|
-
|
|
7
|
-
namespace DREditor.AudioLineHandling
|
|
8
|
-
{
|
|
9
|
-
/// <summary>
|
|
10
|
-
///
|
|
11
|
-
/// </summary>
|
|
12
|
-
public abstract class AudioLineHandler : DialogueComponent, ILineProcessor
|
|
13
|
-
{
|
|
14
|
-
/// <summary>
|
|
15
|
-
///
|
|
16
|
-
/// </summary>
|
|
17
|
-
[Header("")]
|
|
18
|
-
[Divider]
|
|
19
|
-
[Tooltip("")]
|
|
20
|
-
[SerializeField] protected BoolWithEvent isLoadingFile = null;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/// <inheritdoc/>
|
|
24
|
-
public virtual void LineProcess(Line currentLine)
|
|
25
|
-
{
|
|
26
|
-
if (!isLoadingFile.Value)
|
|
27
|
-
PlayLineAudio(currentLine);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/// <summary>
|
|
31
|
-
///
|
|
32
|
-
/// </summary>
|
|
33
|
-
/// <param name="currentLine"></param>
|
|
34
|
-
protected abstract void PlayLineAudio(Line currentLine);
|
|
35
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.Dialogues;
|
|
3
|
+
using DREditor.Dialogues.LineReading;
|
|
4
|
+
using DREditor.EventObjects;
|
|
5
|
+
using UnityEngine;
|
|
6
|
+
|
|
7
|
+
namespace DREditor.AudioLineHandling
|
|
8
|
+
{
|
|
9
|
+
/// <summary>
|
|
10
|
+
///
|
|
11
|
+
/// </summary>
|
|
12
|
+
public abstract class AudioLineHandler : DialogueComponent, ILineProcessor
|
|
13
|
+
{
|
|
14
|
+
/// <summary>
|
|
15
|
+
///
|
|
16
|
+
/// </summary>
|
|
17
|
+
[Header("")]
|
|
18
|
+
[Divider]
|
|
19
|
+
[Tooltip("")]
|
|
20
|
+
[SerializeField] protected BoolWithEvent isLoadingFile = null;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/// <inheritdoc/>
|
|
24
|
+
public virtual void LineProcess(Line currentLine)
|
|
25
|
+
{
|
|
26
|
+
if (!isLoadingFile.Value)
|
|
27
|
+
PlayLineAudio(currentLine);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/// <summary>
|
|
31
|
+
///
|
|
32
|
+
/// </summary>
|
|
33
|
+
/// <param name="currentLine"></param>
|
|
34
|
+
protected abstract void PlayLineAudio(Line currentLine);
|
|
35
|
+
}
|
|
36
36
|
}
|
package/AudioLineHandler.cs.meta
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 3f48d701abb663942b49db33f6d70f37
|
|
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: 3f48d701abb663942b49db33f6d70f37
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "DREditor.AudioLineHandling",
|
|
3
|
-
"rootNamespace": "",
|
|
4
|
-
"references": [
|
|
5
|
-
"DREditor",
|
|
6
|
-
"DREditor.Audio"
|
|
7
|
-
],
|
|
8
|
-
"includePlatforms": [],
|
|
9
|
-
"excludePlatforms": [],
|
|
10
|
-
"allowUnsafeCode": false,
|
|
11
|
-
"overrideReferences": false,
|
|
12
|
-
"precompiledReferences": [],
|
|
13
|
-
"autoReferenced": true,
|
|
14
|
-
"defineConstraints": [
|
|
15
|
-
"FMOD_UNITY"
|
|
16
|
-
],
|
|
17
|
-
"versionDefines": [],
|
|
18
|
-
"noEngineReferences": false
|
|
1
|
+
{
|
|
2
|
+
"name": "DREditor.AudioLineHandling",
|
|
3
|
+
"rootNamespace": "",
|
|
4
|
+
"references": [
|
|
5
|
+
"DREditor",
|
|
6
|
+
"DREditor.Audio"
|
|
7
|
+
],
|
|
8
|
+
"includePlatforms": [],
|
|
9
|
+
"excludePlatforms": [],
|
|
10
|
+
"allowUnsafeCode": false,
|
|
11
|
+
"overrideReferences": false,
|
|
12
|
+
"precompiledReferences": [],
|
|
13
|
+
"autoReferenced": true,
|
|
14
|
+
"defineConstraints": [
|
|
15
|
+
"FMOD_UNITY"
|
|
16
|
+
],
|
|
17
|
+
"versionDefines": [],
|
|
18
|
+
"noEngineReferences": false
|
|
19
19
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 03c94493ef922b849ade117f14948da8
|
|
3
|
-
AssemblyDefinitionImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
userData:
|
|
6
|
-
assetBundleName:
|
|
7
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 03c94493ef922b849ade117f14948da8
|
|
3
|
+
AssemblyDefinitionImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
userData:
|
|
6
|
+
assetBundleName:
|
|
7
|
+
assetBundleVariant:
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.Audio;
|
|
3
|
-
using DREditor.Dialogues;
|
|
4
|
-
using DREditor.Services;
|
|
5
|
-
|
|
6
|
-
namespace DREditor.AudioLineHandling
|
|
7
|
-
{
|
|
8
|
-
/// <summary>
|
|
9
|
-
///
|
|
10
|
-
/// </summary>
|
|
11
|
-
[ClassHeader(nameof(AudioLineHandler) + ", " + nameof(DialogueComponent) +
|
|
12
|
-
"\n\n")]
|
|
13
|
-
public class EnvironmentSFXLineHandler : AudioLineHandler
|
|
14
|
-
{
|
|
15
|
-
/// <inheritdoc/>
|
|
16
|
-
protected override void PlayLineAudio(Line currentLine)
|
|
17
|
-
=> ServiceLocator.GetService<EnvironmentSFXManangerBase>().PlayEnv(currentLine.EnvSFX);
|
|
18
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.Audio;
|
|
3
|
+
using DREditor.Dialogues;
|
|
4
|
+
using DREditor.Services;
|
|
5
|
+
|
|
6
|
+
namespace DREditor.AudioLineHandling
|
|
7
|
+
{
|
|
8
|
+
/// <summary>
|
|
9
|
+
///
|
|
10
|
+
/// </summary>
|
|
11
|
+
[ClassHeader(nameof(AudioLineHandler) + ", " + nameof(DialogueComponent) +
|
|
12
|
+
"\n\n")]
|
|
13
|
+
public class EnvironmentSFXLineHandler : AudioLineHandler
|
|
14
|
+
{
|
|
15
|
+
/// <inheritdoc/>
|
|
16
|
+
protected override void PlayLineAudio(Line currentLine)
|
|
17
|
+
=> ServiceLocator.GetService<EnvironmentSFXManangerBase>().PlayEnv(currentLine.EnvSFX);
|
|
18
|
+
}
|
|
19
19
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 3a784863f949b2d479b1608e5d5dfca7
|
|
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: 3a784863f949b2d479b1608e5d5dfca7
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/LineEndStopVoiceLine.cs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.Audio;
|
|
3
|
-
using DREditor.Dialogues;
|
|
4
|
-
using DREditor.Dialogues.LineReading;
|
|
5
|
-
using DREditor.Services;
|
|
6
|
-
|
|
7
|
-
namespace DREditor.AudioLineHandling
|
|
8
|
-
{
|
|
9
|
-
/// <summary>
|
|
10
|
-
///
|
|
11
|
-
/// </summary>
|
|
12
|
-
[ClassHeader(nameof(DialogueComponent) + ", " + nameof(ILineEndProcess) +
|
|
13
|
-
"\n\n")]
|
|
14
|
-
public class LineEndStopVoiceLine : DialogueComponent, ILineEndProcess
|
|
15
|
-
{
|
|
16
|
-
/// <inheritdoc/>
|
|
17
|
-
public virtual void LineEndProcess(Line currentLine = null)
|
|
18
|
-
=> ServiceLocator.GetService<VOManagerBase>().StopVoiceLine();
|
|
19
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.Audio;
|
|
3
|
+
using DREditor.Dialogues;
|
|
4
|
+
using DREditor.Dialogues.LineReading;
|
|
5
|
+
using DREditor.Services;
|
|
6
|
+
|
|
7
|
+
namespace DREditor.AudioLineHandling
|
|
8
|
+
{
|
|
9
|
+
/// <summary>
|
|
10
|
+
///
|
|
11
|
+
/// </summary>
|
|
12
|
+
[ClassHeader(nameof(DialogueComponent) + ", " + nameof(ILineEndProcess) +
|
|
13
|
+
"\n\n")]
|
|
14
|
+
public class LineEndStopVoiceLine : DialogueComponent, ILineEndProcess
|
|
15
|
+
{
|
|
16
|
+
/// <inheritdoc/>
|
|
17
|
+
public virtual void LineEndProcess(Line currentLine = null)
|
|
18
|
+
=> ServiceLocator.GetService<VOManagerBase>().StopVoiceLine();
|
|
19
|
+
}
|
|
20
20
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: a12990b494e02c249855573abf9af026
|
|
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: a12990b494e02c249855573abf9af026
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.Audio;
|
|
3
|
-
using DREditor.Dialogues;
|
|
4
|
-
using DREditor.Dialogues.LineReading;
|
|
5
|
-
using DREditor.Services;
|
|
6
|
-
|
|
7
|
-
namespace DREditor.AudioLineHandling
|
|
8
|
-
{
|
|
9
|
-
/// <summary>
|
|
10
|
-
///
|
|
11
|
-
/// </summary>
|
|
12
|
-
[ClassHeader(nameof(DialogueComponent) + ", " + nameof(ILineStarter) +
|
|
13
|
-
"\n\n")]
|
|
14
|
-
public class LineStartStopEnvironmentSFX : DialogueComponent, ILineStarter
|
|
15
|
-
{
|
|
16
|
-
/// <inheritdoc/>
|
|
17
|
-
public virtual void LineStartProcess(Line currentLine) => StopEnvironmentSFX(currentLine);
|
|
18
|
-
|
|
19
|
-
/// <summary>
|
|
20
|
-
///
|
|
21
|
-
/// </summary>
|
|
22
|
-
/// <param name="currentLine"></param>
|
|
23
|
-
protected virtual void StopEnvironmentSFX(Line currentLine)
|
|
24
|
-
{
|
|
25
|
-
if (currentLine.StopEnv)
|
|
26
|
-
ServiceLocator.GetService<EnvironmentSFXManangerBase>().StopEnv();
|
|
27
|
-
}
|
|
28
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.Audio;
|
|
3
|
+
using DREditor.Dialogues;
|
|
4
|
+
using DREditor.Dialogues.LineReading;
|
|
5
|
+
using DREditor.Services;
|
|
6
|
+
|
|
7
|
+
namespace DREditor.AudioLineHandling
|
|
8
|
+
{
|
|
9
|
+
/// <summary>
|
|
10
|
+
///
|
|
11
|
+
/// </summary>
|
|
12
|
+
[ClassHeader(nameof(DialogueComponent) + ", " + nameof(ILineStarter) +
|
|
13
|
+
"\n\n")]
|
|
14
|
+
public class LineStartStopEnvironmentSFX : DialogueComponent, ILineStarter
|
|
15
|
+
{
|
|
16
|
+
/// <inheritdoc/>
|
|
17
|
+
public virtual void LineStartProcess(Line currentLine) => StopEnvironmentSFX(currentLine);
|
|
18
|
+
|
|
19
|
+
/// <summary>
|
|
20
|
+
///
|
|
21
|
+
/// </summary>
|
|
22
|
+
/// <param name="currentLine"></param>
|
|
23
|
+
protected virtual void StopEnvironmentSFX(Line currentLine)
|
|
24
|
+
{
|
|
25
|
+
if (currentLine.StopEnv)
|
|
26
|
+
ServiceLocator.GetService<EnvironmentSFXManangerBase>().StopEnv();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
29
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 7f3ace6b2914349488e80bcef1f50072
|
|
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: 7f3ace6b2914349488e80bcef1f50072
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/MusicLineHandler.cs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.Audio;
|
|
3
|
-
using DREditor.Dialogues;
|
|
4
|
-
using DREditor.Services;
|
|
5
|
-
|
|
6
|
-
namespace DREditor.AudioLineHandling
|
|
7
|
-
{
|
|
8
|
-
/// <summary>
|
|
9
|
-
///
|
|
10
|
-
/// </summary>
|
|
11
|
-
[ClassHeader(nameof(AudioLineHandler) + ", " + nameof(DialogueComponent) +
|
|
12
|
-
"\n\n")]
|
|
13
|
-
public class MusicLineHandler : AudioLineHandler
|
|
14
|
-
{
|
|
15
|
-
/// <inheritdoc/>
|
|
16
|
-
protected override void PlayLineAudio(Line currentLine)
|
|
17
|
-
{
|
|
18
|
-
if (currentLine.MusicChange)
|
|
19
|
-
ServiceLocator.GetService<MusicManagerBase>().PlayMusic(currentLine.Music);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.Audio;
|
|
3
|
+
using DREditor.Dialogues;
|
|
4
|
+
using DREditor.Services;
|
|
5
|
+
|
|
6
|
+
namespace DREditor.AudioLineHandling
|
|
7
|
+
{
|
|
8
|
+
/// <summary>
|
|
9
|
+
///
|
|
10
|
+
/// </summary>
|
|
11
|
+
[ClassHeader(nameof(AudioLineHandler) + ", " + nameof(DialogueComponent) +
|
|
12
|
+
"\n\n")]
|
|
13
|
+
public class MusicLineHandler : AudioLineHandler
|
|
14
|
+
{
|
|
15
|
+
/// <inheritdoc/>
|
|
16
|
+
protected override void PlayLineAudio(Line currentLine)
|
|
17
|
+
{
|
|
18
|
+
if (currentLine.MusicChange)
|
|
19
|
+
ServiceLocator.GetService<MusicManagerBase>().PlayMusic(currentLine.Music);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
22
|
}
|
package/MusicLineHandler.cs.meta
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: df040d83bd53484498837364e56cf1ff
|
|
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: df040d83bd53484498837364e56cf1ff
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/PlayAudioHandlers.cs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.Dialogues;
|
|
3
|
-
using System.Collections.Generic;
|
|
4
|
-
using UnityEngine;
|
|
5
|
-
|
|
6
|
-
namespace DREditor.AudioLineHandling
|
|
7
|
-
{
|
|
8
|
-
/// <summary>
|
|
9
|
-
///
|
|
10
|
-
/// </summary>
|
|
11
|
-
[ClassHeader(nameof(AudioLineHandler) + ", " + nameof(DialogueComponent) +
|
|
12
|
-
"\n\n")]
|
|
13
|
-
public class PlayAudioHandlers : AudioLineHandler
|
|
14
|
-
{
|
|
15
|
-
/// <summary>
|
|
16
|
-
///
|
|
17
|
-
/// </summary>
|
|
18
|
-
[Tooltip("")]
|
|
19
|
-
[SerializeField] protected List<AudioLineHandler> audioHandlers = new();
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/// <inheritdoc/>
|
|
23
|
-
protected override void PlayLineAudio(Line currentLine)
|
|
24
|
-
{
|
|
25
|
-
foreach (var handler in audioHandlers)
|
|
26
|
-
handler.LineProcess(currentLine);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.Dialogues;
|
|
3
|
+
using System.Collections.Generic;
|
|
4
|
+
using UnityEngine;
|
|
5
|
+
|
|
6
|
+
namespace DREditor.AudioLineHandling
|
|
7
|
+
{
|
|
8
|
+
/// <summary>
|
|
9
|
+
///
|
|
10
|
+
/// </summary>
|
|
11
|
+
[ClassHeader(nameof(AudioLineHandler) + ", " + nameof(DialogueComponent) +
|
|
12
|
+
"\n\n")]
|
|
13
|
+
public class PlayAudioHandlers : AudioLineHandler
|
|
14
|
+
{
|
|
15
|
+
/// <summary>
|
|
16
|
+
///
|
|
17
|
+
/// </summary>
|
|
18
|
+
[Tooltip("")]
|
|
19
|
+
[SerializeField] protected List<AudioLineHandler> audioHandlers = new();
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
/// <inheritdoc/>
|
|
23
|
+
protected override void PlayLineAudio(Line currentLine)
|
|
24
|
+
{
|
|
25
|
+
foreach (var handler in audioHandlers)
|
|
26
|
+
handler.LineProcess(currentLine);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
29
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 38203a59e649bfc44b7772c19f002f16
|
|
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: 38203a59e649bfc44b7772c19f002f16
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/SFXLineHandler.cs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.Audio;
|
|
3
|
-
using DREditor.Dialogues;
|
|
4
|
-
using DREditor.Services;
|
|
5
|
-
|
|
6
|
-
namespace DREditor.AudioLineHandling
|
|
7
|
-
{
|
|
8
|
-
/// <summary>
|
|
9
|
-
///
|
|
10
|
-
/// </summary>
|
|
11
|
-
[ClassHeader(nameof(AudioLineHandler) + ", " + nameof(DialogueComponent) +
|
|
12
|
-
"\n\n")]
|
|
13
|
-
public class SFXLineHandler : AudioLineHandler
|
|
14
|
-
{
|
|
15
|
-
/// <inheritdoc/>
|
|
16
|
-
protected override void PlayLineAudio(Line currentLine)
|
|
17
|
-
{
|
|
18
|
-
if (currentLine.SFXs.Count > 0)
|
|
19
|
-
for (int j = 0; j < currentLine.SFXs.Count; j++)
|
|
20
|
-
ServiceLocator.GetService<SFXManagerBase>().PlaySFX(currentLine.SFXs[j]);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.Audio;
|
|
3
|
+
using DREditor.Dialogues;
|
|
4
|
+
using DREditor.Services;
|
|
5
|
+
|
|
6
|
+
namespace DREditor.AudioLineHandling
|
|
7
|
+
{
|
|
8
|
+
/// <summary>
|
|
9
|
+
///
|
|
10
|
+
/// </summary>
|
|
11
|
+
[ClassHeader(nameof(AudioLineHandler) + ", " + nameof(DialogueComponent) +
|
|
12
|
+
"\n\n")]
|
|
13
|
+
public class SFXLineHandler : AudioLineHandler
|
|
14
|
+
{
|
|
15
|
+
/// <inheritdoc/>
|
|
16
|
+
protected override void PlayLineAudio(Line currentLine)
|
|
17
|
+
{
|
|
18
|
+
if (currentLine.SFXs.Count > 0)
|
|
19
|
+
for (int j = 0; j < currentLine.SFXs.Count; j++)
|
|
20
|
+
ServiceLocator.GetService<SFXManagerBase>().PlaySFX(currentLine.SFXs[j]);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
23
|
}
|
package/SFXLineHandler.cs.meta
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 18c1c6569cd71c2488dc9eba5cbe928e
|
|
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: 18c1c6569cd71c2488dc9eba5cbe928e
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|