com.beamable 5.0.0-PREVIEW.RC10 → 5.0.0-PREVIEW.RC11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.attestation.p7m +0 -0
- package/CHANGELOG.md +1 -0
- package/Common/Runtime/AgnosticAttribute.cs +2 -2
- package/Common/Runtime/Api/AliasHelper.cs +2 -2
- package/Common/Runtime/Api/Analytics/AnalyticsEventRequest.cs +2 -2
- package/Common/Runtime/Api/Analytics/AnalyticsService.cs +2 -2
- package/Common/Runtime/Api/Analytics/IBeamAnalyticsService.cs +2 -2
- package/Common/Runtime/Api/Analytics/Models/CoreEvent.cs +2 -2
- package/Common/Runtime/Api/Analytics/Models/IAnalyticsEvent.cs +2 -2
- package/Common/Runtime/Api/Analytics/Models/SampleCustomEvent.cs +2 -2
- package/Common/Runtime/Api/Announcements/AbsAnnouncementsApi.cs +2 -2
- package/Common/Runtime/Api/Announcements/IAnnouncementsApi.cs +2 -2
- package/Common/Runtime/Api/Auth/AuthApi.cs +2 -2
- package/Common/Runtime/Api/Auth/IAuthApi.cs +2 -2
- package/Common/Runtime/Api/Calendars/AbsCalendarApi.cs +2 -2
- package/Common/Runtime/Api/Calendars/ICalendarApi.cs +2 -2
- package/Common/Runtime/Api/Chat/ChatApi.cs +2 -2
- package/Common/Runtime/Api/Chat/IChatApi.cs +2 -2
- package/Common/Runtime/Api/CloudData/CloudDataApi.cs +2 -2
- package/Common/Runtime/Api/CloudData/ICloudDataApi.cs +2 -2
- package/Common/Runtime/Api/CometClientData.cs +2 -2
- package/Common/Runtime/Api/Commerce/ICommerceApi.cs +2 -2
- package/Common/Runtime/Api/Content/IContentApi.cs +2 -2
- package/Common/Runtime/Api/Events/AbsEventsApi.cs +2 -2
- package/Common/Runtime/Api/Events/IEventsApi.cs +2 -2
- package/Common/Runtime/Api/Groups/GroupsApi.cs +2 -2
- package/Common/Runtime/Api/Groups/IGroupsApi.cs +2 -2
- package/Common/Runtime/Api/IAccessToken.cs +2 -2
- package/Common/Runtime/Api/IBeamableFilesystemAccessor.cs +2 -2
- package/Common/Runtime/Api/IBeamableRequester.cs +2 -2
- package/Common/Runtime/Api/IConnectivityChecker.cs +2 -2
- package/Common/Runtime/Api/IHasBeamableRequester.cs +2 -2
- package/Common/Runtime/Api/IServiceRoutingStrategy.cs +2 -2
- package/Common/Runtime/Api/ISupportsGet.cs +2 -2
- package/Common/Runtime/Api/IUserContext.cs +2 -2
- package/Common/Runtime/Api/IUserDataCache.cs +2 -2
- package/Common/Runtime/Api/Inventory/IInventoryApi.cs +2 -2
- package/Common/Runtime/Api/Inventory/InventoryApi.cs +2 -2
- package/Common/Runtime/Api/Inventory/InventoryUpdateBuilder.cs +2 -2
- package/Common/Runtime/Api/Leaderboards/ILeaderboardApi.cs +2 -2
- package/Common/Runtime/Api/Leaderboards/LeaderboardApi.cs +2 -2
- package/Common/Runtime/Api/Lobbies/ILobbyApi.cs +2 -2
- package/Common/Runtime/Api/Lobbies/Lobby.cs +2 -2
- package/Common/Runtime/Api/Lobbies/LobbyNotification.cs +2 -2
- package/Common/Runtime/Api/Lobbies/LobbyPlayer.cs +2 -2
- package/Common/Runtime/Api/Lobbies/LobbyRestriction.cs +2 -2
- package/Common/Runtime/Api/Lobbies/LobbyService.cs +2 -2
- package/Common/Runtime/Api/Lobbies/LobbyUtils.cs +2 -2
- package/Common/Runtime/Api/Lobbies/NotInLobby.cs +2 -2
- package/Common/Runtime/Api/Lobbies/Requests/AddTagsRequest.cs +2 -2
- package/Common/Runtime/Api/Lobbies/Requests/CreateLobbyRequest.cs +2 -2
- package/Common/Runtime/Api/Lobbies/Requests/JoinByPasscodeRequest.cs +2 -2
- package/Common/Runtime/Api/Lobbies/Requests/JoinLobbyRequest.cs +2 -2
- package/Common/Runtime/Api/Lobbies/Requests/LobbyQueryRequest.cs +2 -2
- package/Common/Runtime/Api/Lobbies/Requests/LobbyQueryResponse.cs +2 -2
- package/Common/Runtime/Api/Lobbies/Requests/RemoveFromLobbyRequest.cs +2 -2
- package/Common/Runtime/Api/Lobbies/Requests/RemoveTagsRequest.cs +2 -2
- package/Common/Runtime/Api/Lobbies/Requests/UpdateLobbyRequest.cs +2 -2
- package/Common/Runtime/Api/Mail/AbsMailApi.cs +2 -2
- package/Common/Runtime/Api/Mail/IMailApi.cs +2 -2
- package/Common/Runtime/Api/Notifications/INotificationService.cs +2 -2
- package/Common/Runtime/Api/Notifications/PrimitiveStringPayload.cs +2 -2
- package/Common/Runtime/Api/Parties/IPartyApi.cs +2 -2
- package/Common/Runtime/Api/Parties/NotInParty.cs +2 -2
- package/Common/Runtime/Api/Parties/Party.cs +2 -2
- package/Common/Runtime/Api/Parties/PartyNotifications.cs +2 -2
- package/Common/Runtime/Api/Parties/PartyRestriction.cs +2 -2
- package/Common/Runtime/Api/Parties/PartyService.cs +2 -2
- package/Common/Runtime/Api/Parties/Requests/CreatePartyRequest.cs +2 -2
- package/Common/Runtime/Api/Parties/Requests/PartyQueryResponse.cs +2 -2
- package/Common/Runtime/Api/Parties/Requests/PlayerRequest.cs +2 -2
- package/Common/Runtime/Api/Parties/Requests/UpdatePartyRequest.cs +2 -2
- package/Common/Runtime/Api/Payments/IPaymentsApi.cs +2 -2
- package/Common/Runtime/Api/Payments/PaymentsApi.cs +2 -2
- package/Common/Runtime/Api/Presence/IPresenceApi.cs +2 -2
- package/Common/Runtime/Api/Presence/PresenceService.cs +2 -2
- package/Common/Runtime/Api/Push/IPushApi.cs +2 -2
- package/Common/Runtime/Api/QueryBuilder.cs +2 -2
- package/Common/Runtime/Api/Realms/IAliasService.cs +2 -2
- package/Common/Runtime/Api/Realms/IRealmApi.cs +2 -2
- package/Common/Runtime/Api/Realms/RealmService.cs +2 -2
- package/Common/Runtime/Api/SignedRequesterHelper.cs +2 -2
- package/Common/Runtime/Api/Social/ISocialApi.cs +2 -2
- package/Common/Runtime/Api/Social/SocialApi.cs +2 -2
- package/Common/Runtime/Api/Stats/AbsStatsApi.cs +2 -2
- package/Common/Runtime/Api/Stats/IStatsApi.cs +2 -2
- package/Common/Runtime/Api/Stats/StatsAccessType.cs +2 -2
- package/Common/Runtime/Api/Stats/StatsApiHelper.cs +2 -2
- package/Common/Runtime/Api/Stats/StatsDomainType.cs +2 -2
- package/Common/Runtime/Api/Tournaments/ITournamentApi.cs +2 -2
- package/Common/Runtime/Api/Tournaments/TournamentApi.cs +2 -2
- package/Common/Runtime/BeamCli/CliContractTypeAttribute.cs +2 -2
- package/Common/Runtime/BeamCli/CliOtelData.cs +2 -2
- package/Common/Runtime/BeamCli/Contracts/CliLogMessage.cs +2 -2
- package/Common/Runtime/BeamCli/Contracts/CollectorStatus.cs +2 -2
- package/Common/Runtime/BeamCli/Contracts/Constants.cs +2 -2
- package/Common/Runtime/BeamCli/Contracts/ContentService/AutoSnapshotActionType.cs +2 -2
- package/Common/Runtime/BeamCli/Contracts/ContentService/AutoSnapshotType.cs +2 -2
- package/Common/Runtime/BeamCli/Contracts/ContentService/ContentSnapshotType.cs +2 -2
- package/Common/Runtime/BeamCli/Contracts/ContentService/ContentStatus.cs +2 -2
- package/Common/Runtime/BeamCli/Contracts/ContentService/LocalContentManifest.cs +2 -2
- package/Common/Runtime/BeamCli/Contracts/ContentService/LocalContentManifestEntry.cs +2 -2
- package/Common/Runtime/BeamCli/Contracts/ContentService/ManifestAuthor.cs +2 -2
- package/Common/Runtime/BeamCli/Contracts/ContentService/ManifestProjectData.cs +2 -2
- package/Common/Runtime/BeamCli/Contracts/ContentService/TagStatus.cs +2 -2
- package/Common/Runtime/BeamCli/Contracts/EnvironmentVersionData.cs +2 -2
- package/Common/Runtime/BeamCli/Contracts/GenerateEnvOutput.cs +2 -2
- package/Common/Runtime/BeamCli/Contracts/ServiceInfo.cs +2 -2
- package/Common/Runtime/BeamCli/ErrorOutput.cs +2 -2
- package/Common/Runtime/BeamCli/IBeamCommand.cs +2 -2
- package/Common/Runtime/BeamCli/Reporting.cs +2 -2
- package/Common/Runtime/BeamCli/ServiceInfoHelper.cs +2 -2
- package/Common/Runtime/BeamGenerateSchemaAttribute.cs +2 -2
- package/Common/Runtime/BeamableColorUtil.cs +2 -2
- package/Common/Runtime/BeamableEnumExtensions.cs +2 -2
- package/Common/Runtime/BeamableTaskExtensions.cs +2 -2
- package/Common/Runtime/Collections/ConcurrentBag.cs +2 -2
- package/Common/Runtime/Collections/ConcurrentDictionary.cs +2 -2
- package/Common/Runtime/Constants/Constants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/ArchiveConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/ConfigConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/ContentConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/ContentManagerConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/CronConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/DockerConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/EnvironmentConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/LoginBaseConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/MigrationConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/NotificationConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/OtelConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/RequesterConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/SchedulesConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/ServiceConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/SpewConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/TestingToolConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/ToolbarConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/ToolboxConstants.cs +2 -2
- package/Common/Runtime/Constants/Implementations/TooltipConstants.cs +2 -2
- package/Common/Runtime/Content/ClientContentSerializer.cs +2 -2
- package/Common/Runtime/Content/ClientManifest.cs +2 -2
- package/Common/Runtime/Content/ClientPermissions.cs +2 -2
- package/Common/Runtime/Content/ContentCorruptedException.cs +2 -2
- package/Common/Runtime/Content/ContentDataInfo.cs +2 -2
- package/Common/Runtime/Content/ContentDeserializationException.cs +2 -2
- package/Common/Runtime/Content/ContentFieldAttribute.cs +2 -2
- package/Common/Runtime/Content/ContentFilterType.cs +2 -2
- package/Common/Runtime/Content/ContentNotFoundException.cs +2 -2
- package/Common/Runtime/Content/ContentObject.cs +2 -2
- package/Common/Runtime/Content/ContentQuery.cs +2 -2
- package/Common/Runtime/Content/ContentQueryExtensions.cs +2 -2
- package/Common/Runtime/Content/ContentRef.cs +2 -2
- package/Common/Runtime/Content/ContentSerializer.cs +2 -2
- package/Common/Runtime/Content/ContentTypeAttribute.cs +2 -2
- package/Common/Runtime/Content/ContentTypeReflectionCache.cs +2 -2
- package/Common/Runtime/Content/ContentVisibility.cs +2 -2
- package/Common/Runtime/Content/Federation.cs +2 -2
- package/Common/Runtime/Content/IContentObject.cs +2 -2
- package/Common/Runtime/Content/IContentService.cs +2 -2
- package/Common/Runtime/Content/IIgnoreSerializationCallbacks.cs +2 -2
- package/Common/Runtime/Content/IgnoreContentFieldAttribute.cs +2 -2
- package/Common/Runtime/Content/Optionals.cs +2 -2
- package/Common/Runtime/Content/PropertyAttributes/FilePathSelectorAttribute.cs +2 -2
- package/Common/Runtime/Content/PropertyAttributes/HideUnlessServerPackageInstalled.cs +2 -2
- package/Common/Runtime/Content/PropertyAttributes/ReadonlyIfAttribute.cs +2 -2
- package/Common/Runtime/Content/PropertyAttributes/ShowOnlyAttribute.cs +2 -2
- package/Common/Runtime/Content/RenderAsRefAttribute.cs +2 -2
- package/Common/Runtime/Content/SerializableDictionary.cs +2 -2
- package/Common/Runtime/Content/Utility/DateUtility.cs +2 -2
- package/Common/Runtime/Content/Validation/AggregateContentValidationException.cs +2 -2
- package/Common/Runtime/Content/Validation/CannotBeBlank.cs +2 -2
- package/Common/Runtime/Content/Validation/CannotBeEmpty.cs +2 -2
- package/Common/Runtime/Content/Validation/ContentValidationException.cs +2 -2
- package/Common/Runtime/Content/Validation/FederationMustBeValid.cs +2 -2
- package/Common/Runtime/Content/Validation/MustBeComparatorString.cs +2 -2
- package/Common/Runtime/Content/Validation/MustBeCurrency.cs +2 -2
- package/Common/Runtime/Content/Validation/MustBeCurrencyOrItem.cs +2 -2
- package/Common/Runtime/Content/Validation/MustBeDateString.cs +2 -2
- package/Common/Runtime/Content/Validation/MustBeItem.cs +2 -2
- package/Common/Runtime/Content/Validation/MustBeLeaderboard.cs +2 -2
- package/Common/Runtime/Content/Validation/MustBeNonDefault.cs +2 -2
- package/Common/Runtime/Content/Validation/MustBeNonNegative.cs +2 -2
- package/Common/Runtime/Content/Validation/MustBeOneOf.cs +2 -2
- package/Common/Runtime/Content/Validation/MustBePositive.cs +2 -2
- package/Common/Runtime/Content/Validation/MustBeSlugString.cs +2 -2
- package/Common/Runtime/Content/Validation/MustBeTimeSpanDuration.cs +2 -2
- package/Common/Runtime/Content/Validation/MustBeValidCron.cs +2 -2
- package/Common/Runtime/Content/Validation/MustContain.cs +2 -2
- package/Common/Runtime/Content/Validation/MustReferenceContent.cs +2 -2
- package/Common/Runtime/Content/Validation/RouteParametersMustBeValid.cs +2 -2
- package/Common/Runtime/Content/Validation/ServiceRouteMustBeValid.cs +2 -2
- package/Common/Runtime/Content/Validation/TimeSpanDisplayAttribute.cs +2 -2
- package/Common/Runtime/Content/Validation/ValidationAttribute.cs +2 -2
- package/Common/Runtime/Content/Validation/ValidationContext.cs +2 -2
- package/Common/Runtime/CronExpression/CronLocale.cs +2 -2
- package/Common/Runtime/CronExpression/ErrorData.cs +2 -2
- package/Common/Runtime/CronExpression/ExpressionParser.cs +2 -2
- package/Common/Runtime/CronExpression/Options.cs +2 -2
- package/Common/Runtime/Debug.cs +2 -2
- package/Common/Runtime/DefaultQuery.cs +2 -2
- package/Common/Runtime/Dependencies/DependencyBuilder.cs +2 -2
- package/Common/Runtime/Dependencies/DependencyProvider.cs +2 -2
- package/Common/Runtime/Dependencies/Exceptions.cs +2 -2
- package/Common/Runtime/Dependencies/IDependencyList.cs +2 -2
- package/Common/Runtime/Dependencies/IDependencyNameProvider.cs +2 -2
- package/Common/Runtime/Dependencies/RegisterBeamableDependenciesAttribute.cs +2 -2
- package/Common/Runtime/Dependencies/ServiceStorage.cs +2 -2
- package/Common/Runtime/Dependencies/Utils.cs +2 -2
- package/Common/Runtime/DocUtils.cs +2 -2
- package/Common/Runtime/Environment/PackageVersion.cs +2 -2
- package/Common/Runtime/Federation/FederatedGameServer.cs +2 -2
- package/Common/Runtime/Federation/FederatedInventory.cs +2 -2
- package/Common/Runtime/Federation/FederatedLogin.cs +2 -2
- package/Common/Runtime/Federation/FederatedPlayerInit.cs +2 -2
- package/Common/Runtime/Federation/Federation.cs +2 -2
- package/Common/Runtime/IRuntimeConfigProvider.cs +2 -2
- package/Common/Runtime/ISearchableElement.cs +2 -2
- package/Common/Runtime/JsonSerializable/DeleteStream.cs +2 -2
- package/Common/Runtime/JsonSerializable/DiffStream.cs +2 -2
- package/Common/Runtime/JsonSerializable/JsonData.cs +2 -2
- package/Common/Runtime/JsonSerializable/JsonSaveStream.cs +2 -2
- package/Common/Runtime/JsonSerializable/JsonSerializable.cs +2 -2
- package/Common/Runtime/JsonSerializable/LoadStream.cs +2 -2
- package/Common/Runtime/JsonSerializable/MessagePackStream.cs +2 -2
- package/Common/Runtime/JsonSerializable/SaveStream.cs +2 -2
- package/Common/Runtime/JsonSerializable/TypeLookupFactory.cs +2 -2
- package/Common/Runtime/Modules/Announcements/AnnouncementApiContent.cs +2 -2
- package/Common/Runtime/Modules/Announcements/AnnouncementContent.cs +2 -2
- package/Common/Runtime/Modules/Announcements/AnnouncementRef.cs +2 -2
- package/Common/Runtime/Modules/Calendars/CalendarContent.cs +2 -2
- package/Common/Runtime/Modules/Calendars/CalendarRef.cs +2 -2
- package/Common/Runtime/Modules/Groups/GroupDonationContentRef.cs +2 -2
- package/Common/Runtime/Modules/Groups/GroupDonationsContent.cs +2 -2
- package/Common/Runtime/Modules/Inventory/CurrencyContent.cs +2 -2
- package/Common/Runtime/Modules/Inventory/CurrencyRef.cs +2 -2
- package/Common/Runtime/Modules/Inventory/ItemContent.cs +2 -2
- package/Common/Runtime/Modules/Inventory/ItemRef.cs +2 -2
- package/Common/Runtime/Modules/Inventory/VipContent.cs +2 -2
- package/Common/Runtime/Modules/Leaderboards/LeaderboardContent.cs +2 -2
- package/Common/Runtime/Modules/Leaderboards/LeaderboardRef.cs +2 -2
- package/Common/Runtime/Modules/SharedContent/ApiContent.cs +2 -2
- package/Common/Runtime/Modules/SharedContent/EmailContent.cs +2 -2
- package/Common/Runtime/Modules/SharedContent/EventContent.cs +2 -2
- package/Common/Runtime/Modules/SharedContent/PlayerReward.cs +2 -2
- package/Common/Runtime/Modules/SharedContent/ScheduleDefinition.cs +2 -2
- package/Common/Runtime/Modules/SharedContent/ScheduleExtensions.cs +2 -2
- package/Common/Runtime/Modules/SharedContent/SimGameType.cs +2 -2
- package/Common/Runtime/Modules/Shop/ListingContent.cs +2 -2
- package/Common/Runtime/Modules/Shop/ListingLink.cs +2 -2
- package/Common/Runtime/Modules/Shop/ListingRef.cs +2 -2
- package/Common/Runtime/Modules/Shop/SKUContent.cs +2 -2
- package/Common/Runtime/Modules/Shop/SKURef.cs +2 -2
- package/Common/Runtime/Modules/Shop/StoreContent.cs +2 -2
- package/Common/Runtime/Modules/Shop/StoreRef.cs +2 -2
- package/Common/Runtime/Modules/Steam/ISteamService.cs +2 -2
- package/Common/Runtime/Modules/Tournaments/TournamentColorConstants.cs +2 -2
- package/Common/Runtime/Modules/Tournaments/TournamentContent.cs +2 -2
- package/Common/Runtime/ObjectExtensions.cs +2 -2
- package/Common/Runtime/OpenApi/AccountsBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/AccountsBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/AccountsObject.gs.cs +2 -2
- package/Common/Runtime/OpenApi/AnnouncementsBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/AnnouncementsBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/AnnouncementsObject.gs.cs +2 -2
- package/Common/Runtime/OpenApi/AuthBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/AuthBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamAdmin.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamAdminCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamAuth.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamAuthCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamBeamo.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamBeamoCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamBeamootel.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamBeamootelCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamCustomer.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamCustomerCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamLobby.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamLobbyCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamMailbox.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamMailboxCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamMatchmaking.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamMatchmakingCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamParty.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamPartyCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamPlayer.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamPlayerCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamPlayerlobby.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamPlayerlobbyCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamPlayerparty.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamPlayerpartyCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamPlayerticket.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamPlayerticketCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamPresence.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamPresenceCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamScheduler.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamSchedulerCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamServiceplan.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamServiceplanCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamoBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamoBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/CalendarsObject.gs.cs +2 -2
- package/Common/Runtime/OpenApi/CalendarsObjectCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/CloudsavingBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/CloudsavingBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/CommerceBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/CommerceBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/CommerceObject.gs.cs +2 -2
- package/Common/Runtime/OpenApi/ContentBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/ContentBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/Event-playersObject.gs.cs +2 -2
- package/Common/Runtime/OpenApi/Event-playersObjectCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/EventsBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/EventsBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/EventsObject.gs.cs +2 -2
- package/Common/Runtime/OpenApi/Group-usersObject.gs.cs +2 -2
- package/Common/Runtime/OpenApi/Group-usersObjectCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/GroupsObject.gs.cs +2 -2
- package/Common/Runtime/OpenApi/GroupsObjectCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/InventoryBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/InventoryBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/InventoryObject.gs.cs +2 -2
- package/Common/Runtime/OpenApi/LeaderboardsBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/LeaderboardsBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/LeaderboardsObject.gs.cs +2 -2
- package/Common/Runtime/OpenApi/MailBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/MailBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/MailObject.gs.cs +2 -2
- package/Common/Runtime/OpenApi/Models.gs.cs +2 -2
- package/Common/Runtime/OpenApi/NotificationBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/NotificationBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/PaymentsBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/PaymentsBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/PaymentsObject.gs.cs +2 -2
- package/Common/Runtime/OpenApi/PushBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/PushBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/RealmsBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/RealmsBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/SessionBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/SessionBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/SocialBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/SocialBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/StatsBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/StatsBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/StatsObject.gs.cs +2 -2
- package/Common/Runtime/OpenApi/TournamentsBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/TournamentsBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/TournamentsObject.gs.cs +2 -2
- package/Common/Runtime/OpenApi/TrialsBasic.gs.cs +2 -2
- package/Common/Runtime/OpenApi/TrialsBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApiExtensions/BeamoExtensions.cs +2 -2
- package/Common/Runtime/OpenApiExtensions/LegacyConverterExtensions.cs +2 -2
- package/Common/Runtime/OpenApiSystem.cs +2 -2
- package/Common/Runtime/Player/Lazy.cs +2 -2
- package/Common/Runtime/Player/Observables.cs +2 -2
- package/Common/Runtime/Pooling/ClassPool.cs +2 -2
- package/Common/Runtime/Pooling/StringBuilderPool.cs +2 -2
- package/Common/Runtime/Promise.cs +2 -2
- package/Common/Runtime/ReflectionCache/BeamContextSystemAttribute.cs +2 -2
- package/Common/Runtime/ReflectionCache/INamingAttribute.cs +2 -2
- package/Common/Runtime/ReflectionCache/IReflectionAttribute.cs +2 -2
- package/Common/Runtime/ReflectionCache/PreserveAttribute.cs +2 -2
- package/Common/Runtime/ReflectionCache/ReflectionCache.cs +2 -2
- package/Common/Runtime/ReflectionCache/ReflectionCache_Attributes.cs +2 -2
- package/Common/Runtime/ReflectionCache/ReflectionCache_BaseTypes.cs +2 -2
- package/Common/Runtime/ReflectionCache/ReflectionCache_SignatureMatching.cs +2 -2
- package/Common/Runtime/Scheduler/BeamScheduler.cs +2 -2
- package/Common/Runtime/Scheduler/Cron.cs +2 -2
- package/Common/Runtime/Scheduler/CronValidation.cs +2 -2
- package/Common/Runtime/Semantics/ServiceName.cs +2 -2
- package/Common/Runtime/SmallerJSON/IRawJsonProvider.cs +2 -2
- package/Common/Runtime/SmallerJSON/SmallerJSON.ArrayDict.cs +2 -2
- package/Common/Runtime/SmallerJSON/SmallerJSON.FromString.cs +2 -2
- package/Common/Runtime/SmallerJSON/SmallerJSON.cs +2 -2
- package/Common/Runtime/Spew/Logger.cs +2 -2
- package/Common/Runtime/Spew/SpewLoggerAttribute.cs +2 -2
- package/Common/Runtime/Trie.cs +2 -2
- package/Common/Runtime/TypeExtensions.cs +2 -2
- package/Common/Runtime/Util/BeamAssemblyVersionUtil.cs +2 -2
- package/Common/Runtime/Util/BeamFileUtil.cs +2 -2
- package/Common/Runtime/Util/DocsPageHelper.cs +2 -2
- package/Common/Runtime/Util/NaturalStringComparer.cs +2 -2
- package/Editor/BeamCli/Commands/BeamChecksLockedFiles.cs +65 -0
- package/Editor/BeamCli/Commands/BeamChecksLockedFiles.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamLockedFilesCheckCommandResult.cs +12 -0
- package/Editor/BeamCli/Commands/BeamLockedFilesCheckCommandResult.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamProcessInfo.cs +14 -0
- package/Editor/BeamCli/Commands/BeamProcessInfo.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamProjectStop.cs +7 -0
- package/Editor/BeamEditor.cs +37 -12
- package/Editor/Toolbar/BeamableToolbarAssetPostProcessor.cs +1 -3
- package/Editor/Toolbar/BeamableToolbarCallbacks.cs +1 -1
- package/Editor/Toolbar/BeamableToolbarExtender.cs +38 -10
- package/Editor/Toolbar/MenuItems/BeamableRealmMenuItem.cs +27 -14
- package/Runtime/Environment/Resources/env-default.json +1 -1
- package/Runtime/Environment/Resources/versions-default.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
|
|
2
|
+
namespace Beamable.Editor.BeamCli.Commands
|
|
3
|
+
{
|
|
4
|
+
using Beamable.Common;
|
|
5
|
+
using Beamable.Common.BeamCli;
|
|
6
|
+
|
|
7
|
+
public partial class ChecksLockedFilesArgs : Beamable.Common.BeamCli.IBeamCommandArgs
|
|
8
|
+
{
|
|
9
|
+
/// <summary>The folder path to check for locked files</summary>
|
|
10
|
+
public string folderPath;
|
|
11
|
+
/// <summary>The file pattern to check for</summary>
|
|
12
|
+
public string pattern;
|
|
13
|
+
/// <summary>Serializes the arguments for command line usage.</summary>
|
|
14
|
+
public virtual string Serialize()
|
|
15
|
+
{
|
|
16
|
+
// Create a list of arguments for the command
|
|
17
|
+
System.Collections.Generic.List<string> genBeamCommandArgs = new System.Collections.Generic.List<string>();
|
|
18
|
+
// If the folderPath value was not default, then add it to the list of args.
|
|
19
|
+
if ((this.folderPath != default(string)))
|
|
20
|
+
{
|
|
21
|
+
genBeamCommandArgs.Add(("--folder-path=" + this.folderPath));
|
|
22
|
+
}
|
|
23
|
+
// If the pattern value was not default, then add it to the list of args.
|
|
24
|
+
if ((this.pattern != default(string)))
|
|
25
|
+
{
|
|
26
|
+
genBeamCommandArgs.Add(("--pattern=" + this.pattern));
|
|
27
|
+
}
|
|
28
|
+
string genBeamCommandStr = "";
|
|
29
|
+
// Join all the args with spaces
|
|
30
|
+
genBeamCommandStr = string.Join(" ", genBeamCommandArgs);
|
|
31
|
+
return genBeamCommandStr;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
public partial class BeamCommands
|
|
35
|
+
{
|
|
36
|
+
public virtual ChecksLockedFilesWrapper ChecksLockedFiles(ChecksLockedFilesArgs lockedFilesArgs)
|
|
37
|
+
{
|
|
38
|
+
// Create a list of arguments for the command
|
|
39
|
+
System.Collections.Generic.List<string> genBeamCommandArgs = new System.Collections.Generic.List<string>();
|
|
40
|
+
genBeamCommandArgs.Add("beam");
|
|
41
|
+
genBeamCommandArgs.Add(defaultBeamArgs.Serialize());
|
|
42
|
+
genBeamCommandArgs.Add("checks");
|
|
43
|
+
genBeamCommandArgs.Add("locked-files");
|
|
44
|
+
genBeamCommandArgs.Add(lockedFilesArgs.Serialize());
|
|
45
|
+
// Create an instance of an IBeamCommand
|
|
46
|
+
Beamable.Common.BeamCli.IBeamCommand command = this._factory.Create();
|
|
47
|
+
// Join all the command paths and args into one string
|
|
48
|
+
string genBeamCommandStr = string.Join(" ", genBeamCommandArgs);
|
|
49
|
+
// Configure the command with the command string
|
|
50
|
+
command.SetCommand(genBeamCommandStr);
|
|
51
|
+
ChecksLockedFilesWrapper genBeamCommandWrapper = new ChecksLockedFilesWrapper();
|
|
52
|
+
genBeamCommandWrapper.Command = command;
|
|
53
|
+
// Return the command!
|
|
54
|
+
return genBeamCommandWrapper;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
public partial class ChecksLockedFilesWrapper : Beamable.Common.BeamCli.BeamCommandWrapper
|
|
58
|
+
{
|
|
59
|
+
public virtual ChecksLockedFilesWrapper OnStreamLockedFilesCheckCommandResult(System.Action<ReportDataPoint<BeamLockedFilesCheckCommandResult>> cb)
|
|
60
|
+
{
|
|
61
|
+
this.Command.On("stream", cb);
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
namespace Beamable.Editor.BeamCli.Commands
|
|
3
|
+
{
|
|
4
|
+
using Beamable.Common;
|
|
5
|
+
using Beamable.Common.BeamCli;
|
|
6
|
+
|
|
7
|
+
[System.SerializableAttribute()]
|
|
8
|
+
public partial class BeamLockedFilesCheckCommandResult
|
|
9
|
+
{
|
|
10
|
+
public System.Collections.Generic.List<BeamProcessInfo> ProcessLockedFiles;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
namespace Beamable.Editor.BeamCli.Commands
|
|
3
|
+
{
|
|
4
|
+
using Beamable.Common;
|
|
5
|
+
using Beamable.Common.BeamCli;
|
|
6
|
+
|
|
7
|
+
[System.SerializableAttribute()]
|
|
8
|
+
public partial class BeamProcessInfo
|
|
9
|
+
{
|
|
10
|
+
public int ProcessId;
|
|
11
|
+
public string CommandLine;
|
|
12
|
+
public System.Collections.Generic.List<string> LockingFiles;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -12,6 +12,8 @@ namespace Beamable.Editor.BeamCli.Commands
|
|
|
12
12
|
public bool exactIds;
|
|
13
13
|
/// <summary>Kill the task instead of sending a graceful shutdown signal via the socket</summary>
|
|
14
14
|
public bool killTask;
|
|
15
|
+
/// <summary>The reason for stopping the service</summary>
|
|
16
|
+
public string reason;
|
|
15
17
|
/// <summary>Serializes the arguments for command line usage.</summary>
|
|
16
18
|
public virtual string Serialize()
|
|
17
19
|
{
|
|
@@ -36,6 +38,11 @@ namespace Beamable.Editor.BeamCli.Commands
|
|
|
36
38
|
{
|
|
37
39
|
genBeamCommandArgs.Add(("--kill-task=" + this.killTask));
|
|
38
40
|
}
|
|
41
|
+
// If the reason value was not default, then add it to the list of args.
|
|
42
|
+
if ((this.reason != default(string)))
|
|
43
|
+
{
|
|
44
|
+
genBeamCommandArgs.Add(("--reason=" + this.reason));
|
|
45
|
+
}
|
|
39
46
|
string genBeamCommandStr = "";
|
|
40
47
|
// Join all the args with spaces
|
|
41
48
|
genBeamCommandStr = string.Join(" ", genBeamCommandArgs);
|
package/Editor/BeamEditor.cs
CHANGED
|
@@ -200,7 +200,10 @@ namespace Beamable
|
|
|
200
200
|
static void Initialize()
|
|
201
201
|
{
|
|
202
202
|
if (IsInitialized) return;
|
|
203
|
-
|
|
203
|
+
#if !DISABLE_BEAMABLE_TOOLBAR_EXTENDER
|
|
204
|
+
// Initialize toolbar
|
|
205
|
+
BeamableToolbarExtender.LoadToolbarExtender();
|
|
206
|
+
#endif
|
|
204
207
|
initializeAttemptCount++;
|
|
205
208
|
|
|
206
209
|
if (initializeAttemptCount > WARN_ON_INITIALIZE_ATTEMPT)
|
|
@@ -362,11 +365,6 @@ namespace Beamable
|
|
|
362
365
|
|
|
363
366
|
IsInitialized = true;
|
|
364
367
|
|
|
365
|
-
#if !DISABLE_BEAMABLE_TOOLBAR_EXTENDER
|
|
366
|
-
// Initialize toolbar
|
|
367
|
-
BeamableToolbarExtender.LoadToolbarExtender();
|
|
368
|
-
#endif
|
|
369
|
-
|
|
370
368
|
}
|
|
371
369
|
catch (Exception ex)
|
|
372
370
|
{
|
|
@@ -616,6 +614,7 @@ namespace Beamable
|
|
|
616
614
|
/// </param>
|
|
617
615
|
public void Logout(bool clearRealmPid)
|
|
618
616
|
{
|
|
617
|
+
changeRealmPromise?.CompleteSuccess();
|
|
619
618
|
BeamCli.Logout().Then(_ =>
|
|
620
619
|
{
|
|
621
620
|
OnUserChange?.Invoke(null);
|
|
@@ -690,20 +689,46 @@ namespace Beamable
|
|
|
690
689
|
ServiceScope.GetService<ConfigDatabaseProvider>().Reload();
|
|
691
690
|
}
|
|
692
691
|
}
|
|
692
|
+
|
|
693
693
|
|
|
694
|
+
|
|
695
|
+
private Promise changeRealmPromise;
|
|
696
|
+
|
|
697
|
+
public bool IsSwitchingRealms
|
|
698
|
+
{
|
|
699
|
+
get
|
|
700
|
+
{
|
|
701
|
+
if (changeRealmPromise == null) return false;
|
|
702
|
+
if (changeRealmPromise.IsCompleted) return false;
|
|
703
|
+
if (changeRealmPromise.IsFailed) return false;
|
|
704
|
+
return true;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
694
707
|
public async Promise SwitchRealm(RealmView realm)
|
|
695
708
|
{
|
|
696
709
|
await SwitchRealm(realm.Pid);
|
|
697
710
|
}
|
|
698
711
|
public async Promise SwitchRealm(string pid)
|
|
699
712
|
{
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
713
|
+
if (changeRealmPromise != null)
|
|
714
|
+
{
|
|
715
|
+
changeRealmPromise.CompleteSuccess();
|
|
716
|
+
}
|
|
717
|
+
changeRealmPromise = new Promise();
|
|
718
|
+
try
|
|
719
|
+
{
|
|
720
|
+
await BeamCli.SwitchRealms(pid);
|
|
703
721
|
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
722
|
+
ApplyRequesterToken();
|
|
723
|
+
|
|
724
|
+
await CliContentService.Reload();
|
|
725
|
+
|
|
726
|
+
OnRealmChange?.Invoke(BeamCli.CurrentRealm);
|
|
727
|
+
}
|
|
728
|
+
finally
|
|
729
|
+
{
|
|
730
|
+
changeRealmPromise.CompleteSuccess();
|
|
731
|
+
}
|
|
707
732
|
}
|
|
708
733
|
|
|
709
734
|
public static async Task StopAll()
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
using Beamable.Editor.Reflection;
|
|
2
2
|
using System.Linq;
|
|
3
3
|
using UnityEditor;
|
|
4
|
+
using UnityEngine;
|
|
4
5
|
|
|
5
6
|
#if !DISABLE_BEAMABLE_TOOLBAR_EXTENDER
|
|
6
7
|
using Beamable.Editor.ToolbarExtender;
|
|
@@ -15,9 +16,6 @@ namespace Beamable.Editor
|
|
|
15
16
|
{
|
|
16
17
|
public static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
|
|
17
18
|
{
|
|
18
|
-
if (!BeamEditor.IsInitialized)
|
|
19
|
-
return;
|
|
20
|
-
|
|
21
19
|
#if !DISABLE_BEAMABLE_TOOLBAR_EXTENDER
|
|
22
20
|
var toolbarExtendedRelatedAssets = importedAssets.Union(movedAssets)
|
|
23
21
|
.Select(path => (path, type: AssetDatabase.GetMainAssetTypeAtPath(path)))
|
|
@@ -55,7 +55,7 @@ namespace Beamable.Editor.ToolbarExtender
|
|
|
55
55
|
|
|
56
56
|
static void OnUpdate()
|
|
57
57
|
{
|
|
58
|
-
if (!BeamEditor.IsInitialized) return;
|
|
58
|
+
// if (!BeamEditor.IsInitialized) return;
|
|
59
59
|
|
|
60
60
|
// Relying on the fact that toolbar is ScriptableObject and gets deleted when layout changes
|
|
61
61
|
if (m_currentToolbar == null)
|
|
@@ -35,14 +35,16 @@ namespace Beamable.Editor.ToolbarExtender
|
|
|
35
35
|
BeamableToolbarCallbacks.m_toolbarType.GetMethod("RepaintToolbar", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static).Invoke(null, null);
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
+
BeamGUI.LoadAllIcons();
|
|
38
39
|
|
|
39
40
|
BeamableToolbarCallbacks.OnToolbarGUI = OnGUI;
|
|
40
41
|
|
|
41
42
|
if (!BeamEditor.IsInitialized)
|
|
42
43
|
{
|
|
43
|
-
Debug.LogError("Beamable Toolbar cannot load because Beamable is not initialized. ");
|
|
44
|
+
// Debug.LogError("Beamable Toolbar cannot load because Beamable is not initialized. ");
|
|
44
45
|
return;
|
|
45
46
|
}
|
|
47
|
+
|
|
46
48
|
|
|
47
49
|
var api = BeamEditorContext.Default;
|
|
48
50
|
_editorAPI = api;
|
|
@@ -61,11 +63,16 @@ namespace Beamable.Editor.ToolbarExtender
|
|
|
61
63
|
|
|
62
64
|
}
|
|
63
65
|
|
|
66
|
+
private const string LAST_REALM_SESSION_KEY = "beam-toolbar-last-realm-name";
|
|
64
67
|
static void OnGUI(IMGUIContainer container)
|
|
65
68
|
{
|
|
66
|
-
if (_editorAPI == null) return;
|
|
69
|
+
// if (_editorAPI == null) return;
|
|
67
70
|
|
|
68
|
-
|
|
71
|
+
if (_editorAPI == null && BeamEditor.IsInitialized)
|
|
72
|
+
{
|
|
73
|
+
LoadToolbarExtender();
|
|
74
|
+
|
|
75
|
+
}
|
|
69
76
|
|
|
70
77
|
EditorGUILayout.BeginHorizontal(new GUIStyle
|
|
71
78
|
{
|
|
@@ -75,31 +82,42 @@ namespace Beamable.Editor.ToolbarExtender
|
|
|
75
82
|
try
|
|
76
83
|
{
|
|
77
84
|
var badgeColor = new Color(0,0,0,.3f);
|
|
78
|
-
if (_editorAPI
|
|
85
|
+
if (_editorAPI?.BeamCli.CurrentRealm?.IsProduction ?? false)
|
|
79
86
|
{
|
|
80
87
|
badgeColor = new Color(1, 0, 0, .5f);
|
|
81
88
|
}
|
|
82
|
-
else if (_editorAPI
|
|
89
|
+
else if (_editorAPI?.BeamCli.CurrentRealm?.IsStaging ?? false)
|
|
83
90
|
{
|
|
84
91
|
badgeColor = new Color(1, .5f, 0, .5f);
|
|
85
92
|
}
|
|
86
93
|
|
|
87
|
-
var realmDisplay = _editorAPI
|
|
88
|
-
|
|
89
|
-
|
|
94
|
+
var realmDisplay = _editorAPI?.BeamCli.CurrentRealm?.DisplayName ?? "<no realm>";
|
|
95
|
+
if (_editorAPI == null)
|
|
96
|
+
{
|
|
97
|
+
realmDisplay = SessionState.GetString(LAST_REALM_SESSION_KEY, "<loading>");
|
|
98
|
+
}
|
|
99
|
+
else
|
|
100
|
+
{
|
|
101
|
+
SessionState.SetString(LAST_REALM_SESSION_KEY, realmDisplay);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
var versionDisplay = BeamableEnvironment.SdkVersion.ToString();
|
|
105
|
+
if (BeamableEnvironment.SdkVersion.IsNightly)
|
|
90
106
|
{
|
|
91
107
|
versionDisplay = "nightly";
|
|
92
108
|
}
|
|
93
109
|
var titleContent = new GUIContent(realmDisplay + " (" + versionDisplay + ")");
|
|
94
110
|
|
|
111
|
+
GUI.enabled = _editorAPI != null;
|
|
95
112
|
var didClick = GUILayout.Button(titleContent, new GUIStyle(EditorStyles.toolbarButton)
|
|
96
113
|
{
|
|
97
114
|
alignment = TextAnchor.MiddleLeft,
|
|
98
115
|
padding = new RectOffset(24, 0, 0, 0),
|
|
99
116
|
fixedHeight = EditorStyles.toolbarButton.fixedHeight - 4,
|
|
100
117
|
});
|
|
118
|
+
GUI.enabled = true;
|
|
101
119
|
var buttonRect = GUILayoutUtility.GetLastRect();
|
|
102
|
-
if (didClick)
|
|
120
|
+
if (didClick && _editorAPI != null)
|
|
103
121
|
{
|
|
104
122
|
// create the menu and add items to it
|
|
105
123
|
var menu = new GenericMenu();
|
|
@@ -122,7 +140,17 @@ namespace Beamable.Editor.ToolbarExtender
|
|
|
122
140
|
var badgeRect = new Rect(buttonRect.x, buttonRect.y-1, badgeWidth, buttonRect.height+2);
|
|
123
141
|
|
|
124
142
|
var iconRect = new Rect(buttonRect.x+3, buttonRect.y-1, 20, 18);
|
|
125
|
-
|
|
143
|
+
|
|
144
|
+
if (_editorAPI == null || _editorAPI.IsSwitchingRealms)
|
|
145
|
+
{
|
|
146
|
+
var inset = 3;
|
|
147
|
+
GUI.DrawTexture(new Rect(iconRect.x + inset, iconRect.y + inset, iconRect.width - inset*2, iconRect.height - inset*2), BeamGUI.GetSpinner());
|
|
148
|
+
}
|
|
149
|
+
else
|
|
150
|
+
{
|
|
151
|
+
GUI.DrawTexture(iconRect, BeamGUI.iconBeamableSmall);
|
|
152
|
+
}
|
|
153
|
+
|
|
126
154
|
EditorGUI.DrawRect(badgeRect, badgeColor);
|
|
127
155
|
}
|
|
128
156
|
finally
|
|
@@ -2,6 +2,7 @@ using Beamable.Common.Api.Realms;
|
|
|
2
2
|
using System;
|
|
3
3
|
using System.Collections.Generic;
|
|
4
4
|
using System.Linq;
|
|
5
|
+
using Beamable.Common;
|
|
5
6
|
using Beamable.Config;
|
|
6
7
|
using Beamable.Editor.BeamCli;
|
|
7
8
|
using UnityEditor;
|
|
@@ -14,10 +15,13 @@ namespace Beamable.Editor.ToolbarExtender
|
|
|
14
15
|
#endif
|
|
15
16
|
public class BeamableRealmMenuItem : BeamableToolbarMenuItem
|
|
16
17
|
{
|
|
17
|
-
|
|
18
18
|
public override void ContextualizeMenu(BeamEditorContext editor, GenericMenu menu)
|
|
19
19
|
{
|
|
20
20
|
var rootDisplay = RenderLabel(editor);
|
|
21
|
+
if (string.IsNullOrEmpty(rootDisplay?.text))
|
|
22
|
+
{
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
21
25
|
|
|
22
26
|
var projects = new List<RealmView>();
|
|
23
27
|
|
|
@@ -46,23 +50,31 @@ namespace Beamable.Editor.ToolbarExtender
|
|
|
46
50
|
var buildPid = editor.ServiceScope.GetService<ConfigDatabaseProvider>()?.Pid ?? "";
|
|
47
51
|
var buildName = buildPid.ToString();
|
|
48
52
|
var sameEditorAndBuildPids = buildPid == editor.BeamCli?.Pid;
|
|
49
|
-
|
|
53
|
+
if (editor.IsSwitchingRealms)
|
|
50
54
|
{
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
buildName = proj.ProjectName;
|
|
58
|
-
}
|
|
59
|
-
menu.AddItem(new GUIContent(rootDisplay.text + "/" + display), enabled, () =>
|
|
55
|
+
menu.AddDisabledItem(new GUIContent(rootDisplay.text + "/(Switching Realms...)"));
|
|
56
|
+
}
|
|
57
|
+
else
|
|
58
|
+
{
|
|
59
|
+
|
|
60
|
+
foreach (var proj in projects)
|
|
60
61
|
{
|
|
61
|
-
var
|
|
62
|
+
var capturedProj = proj;
|
|
63
|
+
var enabled = proj.Pid == editor.BeamCli?.Pid;
|
|
64
|
+
|
|
65
|
+
var display = !sameEditorAndBuildPids && buildPid == proj.Pid
|
|
66
|
+
? $"{proj.GetDisplayName()} [build]"
|
|
67
|
+
: proj.GetDisplayName();
|
|
68
|
+
if (buildPid == proj.Pid)
|
|
62
69
|
{
|
|
63
|
-
|
|
70
|
+
buildName = proj.ProjectName;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
menu.AddItem(new GUIContent(rootDisplay.text + "/" + display), enabled, () =>
|
|
74
|
+
{
|
|
75
|
+
var _ = editor.SwitchRealm(capturedProj).Then(_ => { GUI.changed = true; });
|
|
64
76
|
});
|
|
65
|
-
}
|
|
77
|
+
}
|
|
66
78
|
}
|
|
67
79
|
|
|
68
80
|
if (projects.Count > 0)
|
|
@@ -81,6 +93,7 @@ namespace Beamable.Editor.ToolbarExtender
|
|
|
81
93
|
|
|
82
94
|
public override GUIContent RenderLabel(BeamEditorContext beamableApi)
|
|
83
95
|
{
|
|
96
|
+
if (!beamableApi.IsAuthenticated) return null;
|
|
84
97
|
var realmName = beamableApi?.BeamCli?.CurrentRealm?.DisplayName;
|
|
85
98
|
if (string.IsNullOrEmpty(realmName))
|
|
86
99
|
{
|