public PlayerType(PlayerControlType controlType, IOffscreenPlayerFactory offscreenPlayerFactory) { if (offscreenPlayerFactory == null) { throw new ArgumentNullException(nameof(offscreenPlayerFactory)); } this.ControlType = controlType; this.Name = offscreenPlayerFactory.Name; this.OffscreenPlayerFactory = offscreenPlayerFactory; }
public PlayerType(PlayerControlType controlType, string name) { this.ControlType = controlType; this.Name = name; this.OffscreenPlayerFactory = null; }
public PlayerType(PlayerControlType controlType, IOffscreenPlayerFactory offscreenPlayerFactory) { this.ControlType = controlType; this.Name = offscreenPlayerFactory.Name; this.OffscreenPlayerFactory = offscreenPlayerFactory; }
public PlayerType(PlayerControlType controlType, IOffscreenPlayerFactory offscreenPlayerFactory, string name) : this(controlType, offscreenPlayerFactory) { this.Name = name; }