예제 #1
0
        public PlayerType(PlayerControlType controlType, IOffscreenPlayerFactory offscreenPlayerFactory)
        {
            if (offscreenPlayerFactory == null)
            {
                throw new ArgumentNullException(nameof(offscreenPlayerFactory));
            }

            this.ControlType            = controlType;
            this.Name                   = offscreenPlayerFactory.Name;
            this.OffscreenPlayerFactory = offscreenPlayerFactory;
        }
예제 #2
0
 public PlayerType(PlayerControlType controlType, string name)
 {
     this.ControlType            = controlType;
     this.Name                   = name;
     this.OffscreenPlayerFactory = null;
 }
예제 #3
0
 public PlayerType(PlayerControlType controlType, IOffscreenPlayerFactory offscreenPlayerFactory)
 {
     this.ControlType            = controlType;
     this.Name                   = offscreenPlayerFactory.Name;
     this.OffscreenPlayerFactory = offscreenPlayerFactory;
 }
예제 #4
0
 public PlayerType(PlayerControlType controlType, IOffscreenPlayerFactory offscreenPlayerFactory, string name) :
     this(controlType, offscreenPlayerFactory)
 {
     this.Name = name;
 }