示例#1
0
 /// <summary>
 /// 効果音リソースを追加する。
 /// </summary>
 /// <param name="se">効果音リソース</param>
 public static void Add(DDSE se)
 {
     Add(() =>
     {
         for (int index = 0; index < DDSE.HANDLE_COUNT; index++)
         {
             se.Sound.GetHandle(index);
         }
     });
 }
示例#2
0
        public static void Play(DDSE se)
        {
            int count = 0;

            foreach (PlayInfo info in PlayInfos)
            {
                if (info != null && info.SE == se && 2 <= ++count)
                {
                    return;
                }
            }

            PlayInfos.Enqueue(new PlayInfo(se));
            PlayInfos.Enqueue(null);
        }
示例#3
0
 public static void PlayLoop(DDSE se)
 {
     PlayInfos.Enqueue(new PlayInfo(se, PlayInfo.AlterCommand_e.LOOP));
     PlayInfos.Enqueue(null);
 }
示例#4
0
 public PlayInfo(DDSE se, AlterCommand_e alterCommand = AlterCommand_e.NORMAL)
 {
     this.SE           = se;
     this.AlterCommand = alterCommand;
 }
示例#5
0
 public static void Add(DDSE se)
 {
     SEList.Add(se);
 }
示例#6
0
 /// <summary>
 /// 効果音リソースを追加する。
 /// </summary>
 /// <param name="se">効果音リソース</param>
 public static void Add(DDSE se)
 {
     Add(() => se.Touch());
 }