Skip to content

Commit

Permalink
[修改]1. 修改命名空间异常
Browse files Browse the repository at this point in the history
  • Loading branch information
AlianBlank committed Jan 20, 2025
1 parent ef48958 commit 652263f
Show file tree
Hide file tree
Showing 25 changed files with 25 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Runtime/EventArgs/PlaySoundFailureEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using GameFrameX.Event.Runtime;
using GameFrameX.Runtime;

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
/// <summary>
/// 播放声音失败事件。
Expand Down
2 changes: 1 addition & 1 deletion Runtime/EventArgs/PlaySoundSuccessEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using GameFrameX.Event.Runtime;
using GameFrameX.Runtime;

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
/// <summary>
/// 播放声音成功事件。
Expand Down
2 changes: 1 addition & 1 deletion Runtime/EventArgs/PlaySoundUpdateEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using GameFrameX.Event.Runtime;
using GameFrameX.Runtime;

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
/// <summary>
/// 播放声音更新事件。
Expand Down
2 changes: 1 addition & 1 deletion Runtime/EventArgs/ResetSoundAgentEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using GameFrameX.Event.Runtime;
using GameFrameX.Runtime;

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
/// <summary>
/// 重置声音代理事件。
Expand Down
3 changes: 3 additions & 0 deletions Runtime/Interface.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
/// <summary>
/// 声音代理接口。
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

using System;

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
/// <summary>
/// 声音代理辅助器接口。
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
/// <summary>
/// 声音组接口。
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
/// <summary>
/// 声音组辅助器接口。
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
/// <summary>
/// 声音辅助器接口。
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using Cysharp.Threading.Tasks;
using GameFrameX.Asset.Runtime;

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
/// <summary>
/// 声音管理器接口。
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Runtime/Sound/Sound/Constant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
/// <summary>
/// 声音相关常量。
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Sound/Sound/PlaySoundErrorCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
/// <summary>
/// 播放声音错误码。
Expand Down
5 changes: 3 additions & 2 deletions Runtime/Sound/Sound/PlaySoundParams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

using GameFrameX.Runtime;

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
/// <summary>
/// 播放声音参数。
Expand Down Expand Up @@ -223,10 +223,11 @@ internal bool Referenced
/// 创建播放声音参数。
/// </summary>
/// <returns>创建的播放声音参数。</returns>
public static PlaySoundParams Create()
public static PlaySoundParams Create(bool isLoop =false)
{
PlaySoundParams playSoundParams = ReferencePool.Acquire<PlaySoundParams>();
playSoundParams.m_Referenced = true;
playSoundParams.m_Loop = isLoop;
return playSoundParams;
}

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Sound/Sound/SoundManager.PlaySoundInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

using GameFrameX.Runtime;

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
public sealed partial class SoundManager : GameFrameworkModule, ISoundManager
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Sound/Sound/SoundManager.SoundAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System;
using GameFrameX.Runtime;

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
public sealed partial class SoundManager : GameFrameworkModule, ISoundManager
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Sound/Sound/SoundManager.SoundGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Collections.Generic;
using GameFrameX.Runtime;

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
public sealed partial class SoundManager : GameFrameworkModule, ISoundManager
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Sound/Sound/SoundManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
using UnityEngine;
using YooAsset;

namespace GameFrameX.Sound
namespace GameFrameX.Sound.Runtime
{
/// <summary>
/// 声音管理器。
Expand Down
6 changes: 3 additions & 3 deletions Runtime/Sound/SoundComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ private bool AddSoundAgentHelper(string soundGroupName, SoundGroupHelperBase sou
return true;
}

private void OnPlaySoundSuccess(object sender, GameFrameX.Sound.PlaySoundSuccessEventArgs eventArgs)
private void OnPlaySoundSuccess(object sender, PlaySoundSuccessEventArgs eventArgs)
{
PlaySoundInfo playSoundInfo = (PlaySoundInfo)eventArgs.UserData;
if (playSoundInfo != null)
Expand All @@ -624,7 +624,7 @@ private void OnPlaySoundSuccess(object sender, GameFrameX.Sound.PlaySoundSuccess
m_EventComponent.Fire(this, eventArgs);
}

private void OnPlaySoundFailure(object sender, GameFrameX.Sound.PlaySoundFailureEventArgs eventArgs)
private void OnPlaySoundFailure(object sender, PlaySoundFailureEventArgs eventArgs)
{
string logMessage = Utility.Text.Format("Play sound failure, asset name '{0}', sound group name '{1}', error code '{2}', error message '{3}'.",
eventArgs.SoundAssetName, eventArgs.SoundGroupName, eventArgs.ErrorCode, eventArgs.ErrorMessage);
Expand All @@ -640,7 +640,7 @@ private void OnPlaySoundFailure(object sender, GameFrameX.Sound.PlaySoundFailure
m_EventComponent.Fire(this, eventArgs);
}

private void OnPlaySoundUpdate(object sender, GameFrameX.Sound.PlaySoundUpdateEventArgs eventArgs)
private void OnPlaySoundUpdate(object sender, PlaySoundUpdateEventArgs eventArgs)
{
m_EventComponent.Fire(this, eventArgs);
}
Expand Down

0 comments on commit 652263f

Please sign in to comment.