using Milimoe.FunGame.Core.Entity;
using Milimoe.FunGame.Core.Library.Constant;
namespace Milimoe.FunGame.Core.Model
{
///
/// 行动顺序表管理器,对 的封装
///
public class ActionQueue : GamingQueue
{
private ActionQueue() { }
///
/// 按房间类型创建行动顺序表
///
///
///
///
///
public static GamingQueue NewGame(RoomType type, List? characters = null, Action? writer = null)
{
characters ??= [];
return type switch
{
RoomType.Team => new TeamGamingQueue(writer),
_ => new MixGamingQueue(writer)
};
}
}
}