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