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