private async Task SendNetworkedMenuClick(MenuItemIdentifier buttonIdentifier)
 {
     //We should just send that we clicked this menu id.
     //if it's successful it should redirect connection to that ship.
     //We must properly handle redirection to move the scene forward.
     await SendService.SendMessage(new SharedMenuSelectionRequestPayload(buttonIdentifier));
 }
        /// <inheritdoc />
        public BlockLobbyChangeRequestPayload([NotNull] MenuItemIdentifier selecion)
        {
            if (selecion == null)
            {
                throw new ArgumentNullException(nameof(selecion));
            }

            Selecion = selecion;
        }
        /// <inheritdoc />
        public SharedMenuSelectionRequestPayload([NotNull] MenuItemIdentifier selection)
        {
            if (selection == null)
            {
                throw new ArgumentNullException(nameof(selection));
            }

            Selection = selection;
        }
示例#4
0
 /// <inheritdoc />
 public BlockListingDataRecievedEventArgs(MenuItemIdentifier identifier, string menuItemName)
     : base(identifier, menuItemName)
 {
 }
示例#5
0
 /// <inheritdoc />
 public BaseMenuItemDataChangedEventArgs(MenuItemIdentifier identifier, string menuItemName)
 {
     Identifier   = identifier;
     MenuItemName = menuItemName;
 }