示例#1
0
 public MenuListing(MenuItemIdentifier selection, ushort flags, string itemName)
     : this()
 {
     Selection = selection ?? throw new ArgumentNullException(nameof(selection));
     Flags     = flags;
     ItemName  = itemName ?? throw new ArgumentNullException(nameof(itemName));
 }
示例#2
0
        /// <inheritdoc />
        public SharedMenuSelectionRequestPayload([NotNull] MenuItemIdentifier selection)
            : this()
        {
            if (selection == null)
            {
                throw new ArgumentNullException(nameof(selection));
            }

            Selection = selection;
        }
示例#3
0
 public GameListEntry([NotNull] MenuItemIdentifier listing,
                      DifficultyType difficulty,
                      byte playerCount,
                      [NotNull] string name,
                      EpisodeType episode,
                      byte flags)
     : this()
 {
     Listing     = listing ?? throw new ArgumentNullException(nameof(listing));
     Difficulty  = difficulty;
     PlayerCount = playerCount;
     Name        = name ?? throw new ArgumentNullException(nameof(name));
     Episode     = episode;
     this.flags  = flags;
 }
 /// <inheritdoc />
 public BlockLobbyChangeRequestPayload([NotNull] MenuItemIdentifier selection)
     : this()
 {
     Selection = selection ?? throw new ArgumentNullException(nameof(selection));
 }