// // copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c // public static void Play(DDSE se) { int count = 0; foreach (PlayInfo info in PlayInfos) { if (info.SE == se && 2 <= ++count) { return; } } PlayInfos.Enqueue(new PlayInfo(se)); PlayInfos.Enqueue(null); }
// // copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c // public static void Add(DDSE se) { SEList.Add(se); }
public PlayInfo(DDSE se, AlterCommand_e alterCommand = AlterCommand_e.NORMAL) { this.SE = se; this.AlterCommand = alterCommand; }
// // copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c // public static void PlayLoop(DDSE se) { PlayInfos.Enqueue(new PlayInfo(se, PlayInfo.AlterCommand_e.LOOP)); PlayInfos.Enqueue(null); }