コード例 #1
0
ファイル: PlayerType.cs プロジェクト: weshec/Stareater
        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
ファイル: PlayerType.cs プロジェクト: campycoder/zvjezdojedac
 public PlayerType(PlayerControlType controlType, string name)
 {
     this.ControlType            = controlType;
     this.Name                   = name;
     this.OffscreenPlayerFactory = null;
 }
コード例 #3
0
ファイル: PlayerType.cs プロジェクト: campycoder/zvjezdojedac
 public PlayerType(PlayerControlType controlType, IOffscreenPlayerFactory offscreenPlayerFactory)
 {
     this.ControlType            = controlType;
     this.Name                   = offscreenPlayerFactory.Name;
     this.OffscreenPlayerFactory = offscreenPlayerFactory;
 }
コード例 #4
0
ファイル: PlayerType.cs プロジェクト: weshec/Stareater
 public PlayerType(PlayerControlType controlType, IOffscreenPlayerFactory offscreenPlayerFactory, string name) :
     this(controlType, offscreenPlayerFactory)
 {
     this.Name = name;
 }