public IPlayer <TCommand> Regist(ICommandProvidable <TCommand> provider) { var player = new Player <TCommand>(_Players.Count + 1, provider, _History.GetEnumerable()); _Players.Add(player); return(player); }
public Player(int id, ICommandProvidable <T> providable, IEnumerable <Step <Driver <T> .Record> > records) { Id = id; Providable = providable; _Steps = new Queue <Step <Driver <T> .Record> >(records); }