com.beamable 5.0.1 → 5.1.0-PREVIEW.RC10
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 +27 -1
- package/Common/README.md +16 -3
- 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 +23 -26
- 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 +71 -4
- package/Common/Runtime/Api/Inventory/InventoryApi.cs +136 -37
- 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 +13 -4
- 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 +32 -2
- package/Common/Runtime/Constants/Implementations/PortalExtensionConstants.cs +18 -0
- package/Common/Runtime/{OpenApi/BeamServiceplan.gs.cs.meta → Constants/Implementations/PortalExtensionConstants.cs.meta} +1 -1
- 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 +9 -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 +13 -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 +47 -8
- 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 +12 -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/BeamAuth.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamAuthCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamBeamo.gs.cs +136 -38
- package/Common/Runtime/OpenApi/BeamBeamoCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamBeamootel.gs.cs +32 -8
- package/Common/Runtime/OpenApi/BeamBeamootelCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamBilling.gs.cs +45 -0
- package/Common/Runtime/OpenApi/{BeamAdmin.gs.cs.meta → BeamBilling.gs.cs.meta} +1 -1
- package/Common/Runtime/OpenApi/BeamBillingCommon.gs.cs +45 -0
- package/Common/Runtime/OpenApi/{BeamServiceplanCommon.gs.cs.meta → BeamBillingCommon.gs.cs.meta} +1 -1
- package/Common/Runtime/OpenApi/BeamCustomer.gs.cs +198 -124
- package/Common/Runtime/OpenApi/BeamCustomerCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamLobby.gs.cs +4 -4
- package/Common/Runtime/OpenApi/BeamLobbyCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamMailbox.gs.cs +6 -2
- package/Common/Runtime/OpenApi/BeamMailboxCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamMatchmaking.gs.cs +4 -4
- package/Common/Runtime/OpenApi/BeamMatchmakingCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamParty.gs.cs +6 -6
- package/Common/Runtime/OpenApi/BeamPartyCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamPlayer.gs.cs +20 -8
- 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/BeamPlayersession.gs.cs +110 -0
- package/Common/Runtime/OpenApi/{BeamAdminCommon.gs.cs.meta → BeamPlayersession.gs.cs.meta} +1 -1
- package/Common/Runtime/OpenApi/BeamPlayersessionCommon.gs.cs +45 -0
- package/Common/Runtime/OpenApi/BeamPlayersessionCommon.gs.cs.meta +11 -0
- package/Common/Runtime/OpenApi/BeamPlayerstats.gs.cs +159 -0
- package/Common/Runtime/OpenApi/BeamPlayerstats.gs.cs.meta +11 -0
- package/Common/Runtime/OpenApi/{BeamServiceplanCommon.gs.cs → BeamPlayerstatsCommon.gs.cs} +6 -6
- package/Common/Runtime/OpenApi/BeamPlayerstatsCommon.gs.cs.meta +11 -0
- 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 +6 -2
- package/Common/Runtime/OpenApi/BeamPresenceCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamRealmsecrets.gs.cs +255 -0
- package/Common/Runtime/OpenApi/BeamRealmsecrets.gs.cs.meta +11 -0
- package/Common/Runtime/OpenApi/BeamRealmsecretsCommon.gs.cs +45 -0
- package/Common/Runtime/OpenApi/BeamRealmsecretsCommon.gs.cs.meta +11 -0
- package/Common/Runtime/OpenApi/BeamScheduler.gs.cs +90 -42
- package/Common/Runtime/OpenApi/BeamSchedulerCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/BeamSession.gs.cs +114 -0
- package/Common/Runtime/OpenApi/BeamSession.gs.cs.meta +11 -0
- package/Common/Runtime/OpenApi/BeamSessionCommon.gs.cs +45 -0
- package/Common/Runtime/OpenApi/BeamSessionCommon.gs.cs.meta +11 -0
- package/Common/Runtime/OpenApi/BeamStats.gs.cs +308 -0
- package/Common/Runtime/OpenApi/BeamStats.gs.cs.meta +11 -0
- package/Common/Runtime/OpenApi/{BeamAdminCommon.gs.cs → BeamStatsCommon.gs.cs} +6 -6
- package/Common/Runtime/OpenApi/BeamStatsCommon.gs.cs.meta +11 -0
- 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 +21 -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 +1489 -410
- package/Common/Runtime/OpenApi/NotificationBasic.gs.cs +21 -2
- package/Common/Runtime/OpenApi/NotificationBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/PaymentsBasic.gs.cs +160 -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 +12 -12
- package/Common/Runtime/OpenApi/RealmsBasicCommon.gs.cs +2 -2
- package/Common/Runtime/OpenApi/SessionBasic.gs.cs +16 -16
- 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 +9 -9
- 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 +189 -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 +66 -43
- 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/BeamAccountId.cs +91 -0
- package/Common/Runtime/Semantics/BeamAccountId.cs.meta +11 -0
- package/Common/Runtime/Semantics/BeamCid.cs +89 -0
- package/Common/Runtime/Semantics/BeamCid.cs.meta +11 -0
- package/Common/Runtime/Semantics/BeamContentId.cs +55 -0
- package/Common/Runtime/Semantics/BeamContentId.cs.meta +11 -0
- package/Common/Runtime/Semantics/BeamContentManifestId.cs +49 -0
- package/Common/Runtime/Semantics/BeamContentManifestId.cs.meta +11 -0
- package/Common/Runtime/Semantics/BeamGamerTag.cs +90 -0
- package/Common/Runtime/Semantics/BeamGamerTag.cs.meta +11 -0
- package/Common/Runtime/Semantics/BeamPid.cs +49 -0
- package/Common/Runtime/Semantics/BeamPid.cs.meta +11 -0
- package/Common/Runtime/Semantics/BeamStats.cs +62 -0
- package/Common/Runtime/Semantics/BeamStats.cs.meta +11 -0
- package/Common/Runtime/Semantics/IBeamSemanticType.cs +16 -0
- package/Common/Runtime/Semantics/IBeamSemanticType.cs.meta +11 -0
- package/Common/Runtime/Semantics/ServiceName.cs +25 -4
- 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 +226 -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/BeamCliUtil.cs +165 -18
- package/Editor/BeamCli/BeamCommand.cs +0 -6
- package/Editor/BeamCli/BeamWebCommand.cs +102 -56
- package/Editor/BeamCli/Commands/Beam.cs +7 -0
- package/Editor/BeamCli/Commands/BeamBeamableTypesSchema.cs +17 -0
- package/Editor/BeamCli/Commands/BeamBeamableTypesSchema.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamComponentExtensionOption.cs +13 -0
- package/Editor/BeamCli/Commands/BeamComponentExtensionOption.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamComponentSelectorOption.cs +13 -0
- package/Editor/BeamCli/Commands/BeamComponentSelectorOption.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamContentFieldEntry.cs +14 -0
- package/Editor/BeamCli/Commands/BeamContentFieldEntry.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamContentHistory.cs +97 -0
- package/Editor/BeamCli/Commands/BeamContentHistory.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryChangelist.cs +11 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryChangelist.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryChangelistEntry.cs +23 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryChangelistEntry.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryChangelistPage.cs +12 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryChangelistPage.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryCommandEvent.cs +16 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryCommandEvent.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryEntriesPage.cs +15 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryEntriesPage.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryEntry.cs +16 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryEntry.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryRestoreCommandOutput.cs +12 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryRestoreCommandOutput.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryRestoreContent.cs +82 -0
- package/Editor/BeamCli/Commands/BeamContentHistoryRestoreContent.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamContentHistorySyncChangelist.cs +71 -0
- package/Editor/BeamCli/Commands/BeamContentHistorySyncChangelist.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamContentHistorySyncChangelistCommandOutput.cs +12 -0
- package/Editor/BeamCli/Commands/BeamContentHistorySyncChangelistCommandOutput.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamContentHistorySyncContent.cs +82 -0
- package/Editor/BeamCli/Commands/BeamContentHistorySyncContent.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamContentHistorySyncContentCommandOutput.cs +12 -0
- package/Editor/BeamCli/Commands/BeamContentHistorySyncContentCommandOutput.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamContentSync.cs +7 -0
- package/Editor/BeamCli/Commands/BeamContentTypeEntry.cs +18 -0
- package/Editor/BeamCli/Commands/BeamContentTypeEntry.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamDeployablePlan.cs +2 -0
- package/Editor/BeamCli/Commands/BeamDeploymentDiffSummary.cs +3 -0
- package/Editor/BeamCli/Commands/BeamDeploymentPlan.cs +14 -0
- package/Editor/BeamCli/Commands/BeamDeploymentRelease.cs +14 -0
- package/Editor/BeamCli/Commands/BeamFederationMethodEntry.cs +15 -0
- package/Editor/BeamCli/Commands/BeamFederationMethodEntry.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamFederationMethodParam.cs +13 -0
- package/Editor/BeamCli/Commands/BeamFederationMethodParam.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamFederationTypeEntry.cs +17 -0
- package/Editor/BeamCli/Commands/BeamFederationTypeEntry.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamGameWithRealms.cs +14 -0
- package/Editor/BeamCli/Commands/BeamGameWithRealms.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamGenerateSkillDocs.cs +57 -0
- package/Editor/BeamCli/Commands/BeamGenerateSkillDocs.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamGenerateSkillDocsCommandResult.cs +12 -0
- package/Editor/BeamCli/Commands/BeamGenerateSkillDocsCommandResult.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamGenerateTypeSchema.cs +64 -0
- package/Editor/BeamCli/Commands/BeamGenerateTypeSchema.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamHostServiceDescriptor.cs +1 -0
- package/Editor/BeamCli/Commands/BeamInitGetRealms.cs +73 -0
- package/Editor/BeamCli/Commands/BeamInitGetRealms.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamInitGetRealmsResult.cs +12 -0
- package/Editor/BeamCli/Commands/BeamInitGetRealmsResult.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamInstallAISkillsCommandResult.cs +17 -0
- package/Editor/BeamCli/Commands/BeamInstallAISkillsCommandResult.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamInstallAiSkill.cs +85 -0
- package/Editor/BeamCli/Commands/BeamInstallAiSkill.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamListMountSitesCommandResults.cs +12 -0
- package/Editor/BeamCli/Commands/BeamListMountSitesCommandResults.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamListReplacementTypeCommandOutput.cs +12 -0
- package/Editor/BeamCli/Commands/BeamListReplacementTypeCommandOutput.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamMcpSetup.cs +58 -0
- package/Editor/BeamCli/Commands/BeamMcpSetup.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamMcpSetupCommandResult.cs +12 -0
- package/Editor/BeamCli/Commands/BeamMcpSetupCommandResult.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamMountSiteConfig.cs +14 -0
- package/Editor/BeamCli/Commands/BeamMountSiteConfig.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamMountSiteSelector.cs +13 -0
- package/Editor/BeamCli/Commands/BeamMountSiteSelector.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamPageExtensionOption.cs +13 -0
- package/Editor/BeamCli/Commands/BeamPageExtensionOption.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionAddMicroservice.cs +55 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionAddMicroservice.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionFileUploadInfo.cs +16 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionFileUploadInfo.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionListExtensionOptions.cs +51 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionListExtensionOptions.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionListMountSites.cs +51 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionListMountSites.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionOptionsResult.cs +13 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionOptionsResult.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionPlanFileReference.cs +14 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionPlanFileReference.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionPlanReference.cs +16 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionPlanReference.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionSetConfig.cs +63 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionSetConfig.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionUploadInfo.cs +15 -0
- package/Editor/BeamCli/Commands/BeamPortalExtensionUploadInfo.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamProjectAddReplacementType.cs +81 -0
- package/Editor/BeamCli/Commands/BeamProjectAddReplacementType.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamProjectBuild.cs +7 -0
- package/Editor/BeamCli/Commands/BeamProjectGenerateClientOapi.cs +14 -0
- package/Editor/BeamCli/Commands/BeamProjectListReplacementType.cs +58 -0
- package/Editor/BeamCli/Commands/BeamProjectListReplacementType.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamProjectNewPortalExtension.cs +121 -0
- package/Editor/BeamCli/Commands/BeamProjectNewPortalExtension.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamProjectRemoveReplacementType.cs +60 -0
- package/Editor/BeamCli/Commands/BeamProjectRemoveReplacementType.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamRealmOption.cs +16 -0
- package/Editor/BeamCli/Commands/BeamRealmOption.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamRemotePortalConfiguration.cs +12 -0
- package/Editor/BeamCli/Commands/BeamRemotePortalConfiguration.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamRemotePortalExtensionDescriptor.cs +15 -0
- package/Editor/BeamCli/Commands/BeamRemotePortalExtensionDescriptor.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamReplacementTypeInfo.cs +15 -0
- package/Editor/BeamCli/Commands/BeamReplacementTypeInfo.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamServiceInstance.cs +1 -0
- package/Editor/BeamCli/Commands/BeamSetPortalExtensionConfigCommandResults.cs +11 -0
- package/Editor/BeamCli/Commands/BeamSetPortalExtensionConfigCommandResults.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamUnrealTypeMappingEntry.cs +14 -0
- package/Editor/BeamCli/Commands/BeamUnrealTypeMappingEntry.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamUtilityMemberEntry.cs +16 -0
- package/Editor/BeamCli/Commands/BeamUtilityMemberEntry.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamUtilityMethodEntry.cs +16 -0
- package/Editor/BeamCli/Commands/BeamUtilityMethodEntry.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamUtilityParam.cs +13 -0
- package/Editor/BeamCli/Commands/BeamUtilityParam.cs.meta +11 -0
- package/Editor/BeamCli/Commands/BeamUtilityTypeEntry.cs +19 -0
- package/Editor/BeamCli/Commands/BeamUtilityTypeEntry.cs.meta +11 -0
- package/Editor/BeamCli/UI/LogUtil/LogViewUtil.cs +2 -0
- package/Editor/BeamEditor.cs +52 -7
- package/Editor/Config/ConsoleConfiguration.asset +6 -1
- package/Editor/ContentService/CliContentService.cs +364 -39
- package/Editor/ContentService/DefaultContentImporter.cs +248 -0
- package/Editor/ContentService/DefaultContentImporter.cs.meta +2 -0
- package/Editor/LibraryService.cs +25 -2
- package/Editor/Modules/Content/DefaultAssets~/currency/coins.png +0 -0
- package/Editor/Modules/Content/DefaultAssets~/currency/coins.png.meta +135 -0
- package/Editor/Modules/Content/DefaultAssets~/currency/gems.png +0 -0
- package/Editor/Modules/Content/DefaultAssets~/currency/gems.png.meta +135 -0
- package/Editor/Modules/Content/DefaultContent/currency/coins.asset +2 -1
- package/Editor/Modules/Content/DefaultContent/currency/gems.asset +2 -1
- package/Editor/Modules/Content/UI/ContentObjectEditor.cs +3 -2
- package/Editor/Server/MicroserviceConfiguration.cs +3 -0
- package/Editor/Server/UI/PublishWindow/UsamPublishWindow.cs +5 -1
- package/Editor/Server/Usam/UsamService.cs +1 -1
- package/Editor/Server/Usam/UsamService_GenerateClient.cs +6 -1
- package/Editor/Toolbar/MenuItems/BeamableRealmMenuItem.cs +2 -1
- package/Editor/Toolbar/MenuItems/OpenToolboxWindowMenuItem.asset +1 -1
- package/Editor/UI/AccountWindow/AccountWindow_Games.cs +19 -3
- package/Editor/UI/AccountWindow/AccountWindow_SignedIn.cs +4 -3
- package/Editor/UI/BeamGUI/BeamGUI_Icons.cs +43 -43
- package/Editor/UI/BeamGUI/BeamGUI_LogoBanner.cs +2 -0
- package/Editor/UI/ContentWindow/ContentWindow.cs +121 -9
- package/Editor/UI/ContentWindow/ContentWindow_ContentActions.cs +148 -16
- package/Editor/UI/ContentWindow/ContentWindow_Header.cs +30 -6
- package/Editor/UI/ContentWindow/ContentWindow_ItemsPanel.cs +35 -4
- package/Editor/UI/LibraryWindow/BeamLibraryWindow.cs +2 -2
- package/Editor/UI/LibraryWindow/BeamLibraryWindow_Main.cs +0 -21
- package/Editor/UI/LibraryWindow/BeamLibraryWindow_Samples.cs +98 -38
- package/Editor/UI/McpMenuItems.cs +47 -0
- package/Editor/UI/McpMenuItems.cs.meta +11 -0
- package/Runtime/Beam.cs +2 -0
- package/Runtime/BeamContext.cs +9 -2
- package/Runtime/Core/Platform/SDK/Events/EventsService.cs +8 -2
- package/Runtime/Core/Platform/SDK/Inventory/InventoryService.cs +7 -3
- package/Runtime/Environment/Resources/env-default.json +3 -3
- package/Runtime/Environment/Resources/versions-default.json +2 -2
- package/Runtime/Modules/Console/BeamableAdminConsole.cs +722 -0
- package/Runtime/Modules/Console/BeamableAdminConsole.cs.meta +3 -0
- package/Runtime/Modules/Console/ConsoleConfiguration.cs +7 -3
- package/Runtime/Modules/Console/ConsoleFlow.cs +3 -0
- package/Runtime/Modules/Content/ContentConfiguration.cs +11 -1
- package/Runtime/Modules/Content/ContentParameterProvider.cs +2 -0
- package/Runtime/Modules/Content/ContentService.cs +13 -4
- package/Runtime/Server/MicroserviceClient.cs +5 -2
- package/Runtime/UI/Lightbeam/DependencyExtensions.cs +5 -1
- package/Runtime/UI/Lightbeam/LightBeam.cs +45 -0
- package/Runtime/UI/Lightbeam/Sprites_v1/BeamLogo.PNG +0 -0
- package/Runtime/UI/Lightbeam/Sprites_v1/BeamLogo.PNG.meta +325 -0
- package/Runtime/UI/Lightbeam/Sprites_v1/Bg.png +0 -0
- package/Runtime/UI/Lightbeam/Sprites_v1/Bg.png.meta +143 -0
- package/Runtime/UI/Lightbeam/Sprites_v1/BtBase.png +0 -0
- package/Runtime/UI/Lightbeam/Sprites_v1/BtBase.png.meta +143 -0
- package/Runtime/UI/Lightbeam/Sprites_v1/IconInfo.png +0 -0
- package/Runtime/UI/Lightbeam/Sprites_v1/IconInfo.png.meta +143 -0
- package/Runtime/UI/Lightbeam/Sprites_v1/Icon_Link.png +0 -0
- package/Runtime/UI/Lightbeam/Sprites_v1/Icon_Link.png.meta +169 -0
- package/Runtime/UI/Lightbeam/Sprites_v1/UIBase.png +0 -0
- package/Runtime/UI/Lightbeam/Sprites_v1/UIBase.png.meta +143 -0
- package/Runtime/UI/Lightbeam/Sprites_v1/UIBaseWhite.png +0 -0
- package/Runtime/UI/Lightbeam/Sprites_v1/UIBaseWhite.png.meta +143 -0
- package/Runtime/UI/Lightbeam/Sprites_v1.meta +8 -0
- package/Runtime/UI/Lightbeam/Unity.Beamable.LightBeams.asmdef +7 -4
- package/Runtime/UI/Sprites/icon.png +0 -0
- package/{Editor/Modules/Content/DefaultAssets~/currency → Runtime/UI/Sprites}/icon.png.meta +46 -10
- package/Runtime/UI/Sprites/icon_coin.png +0 -0
- package/Runtime/UI/Sprites/icon_coin.png.meta +135 -0
- package/Runtime/UI/Sprites/icon_gem.png +0 -0
- package/Runtime/UI/Sprites/icon_gem.png.meta +135 -0
- package/Runtime/Unity.Beamable.asmdef +2 -1
- package/Samples~/LightBeamSamples/AccountManager/AccountExampleConfig.cs +1 -1
- package/Samples~/LightBeamSamples/AccountManager/AccountManager.cs +7 -2
- package/Samples~/LightBeamSamples/AccountManager/Prefabs/{AccountDetailsBehaviour → AccountDetailsPage}/AccountDetails.prefab +148 -214
- package/Samples~/LightBeamSamples/AccountManager/Prefabs/{AccountDetailsBehaviour/AccountDetailsBehaviour.cs → AccountDetailsPage/AccountDetailsPage.cs} +8 -2
- package/Samples~/LightBeamSamples/AccountManager/Prefabs/AccountDisplayBehaviour/AccountDisplay.prefab +551 -76
- package/Samples~/LightBeamSamples/AccountManager/Prefabs/AccountSwitchPage/AccountSwitchPage.prefab +324 -88
- package/Samples~/LightBeamSamples/AccountManager/Prefabs/HomePage/HomePage.cs +7 -2
- package/Samples~/LightBeamSamples/AccountManager/Prefabs/HomePage/HomePage.prefab +469 -280
- package/Samples~/LightBeamSamples/AccountManager/Prefabs/RecoverEmailPage/RecoverAccountPage.prefab +183 -110
- package/Samples~/LightBeamSamples/AccountManager/Prefabs/RegisterEmailPage/RegisterEmailPage.prefab +157 -84
- package/Samples~/LightBeamSamples/AccountManager/Sample_AccountManager.unity +1913 -24
- package/Samples~/LightBeamSamples/CloudSaving/CloudSavingManager.cs +4 -0
- package/Samples~/LightBeamSamples/CloudSaving/Prefabs/BytePage/BytePage.prefab +1699 -423
- package/Samples~/LightBeamSamples/CloudSaving/Prefabs/HomePage/HomePage.cs +4 -1
- package/Samples~/LightBeamSamples/CloudSaving/Prefabs/HomePage/HomePage.prefab +738 -340
- package/Samples~/LightBeamSamples/CloudSaving/Prefabs/JsonPage/JsonPage.prefab +3448 -1303
- package/Samples~/LightBeamSamples/CloudSaving/Prefabs/StringPage/StringPage.prefab +168 -184
- package/Samples~/LightBeamSamples/CloudSaving/Sample_CloudSaving.unity +1387 -30
- package/Samples~/LightBeamSamples/FriendsManager/FriendsManager.cs +4 -0
- package/Samples~/LightBeamSamples/FriendsManager/Prefabs/BlockedDisplay/BlockedDisplay.prefab +71 -29
- package/Samples~/LightBeamSamples/FriendsManager/Prefabs/FriendDisplay/FriendDisplay.prefab +84 -31
- package/Samples~/LightBeamSamples/FriendsManager/Prefabs/HomePage/HomePage.prefab +446 -182
- package/Samples~/LightBeamSamples/FriendsManager/Prefabs/PlayerFriendsDisplay/PlayerDisplay.prefab +349 -127
- package/Samples~/LightBeamSamples/FriendsManager/Prefabs/ReceivedInvitesDisplay/ReceivedInviteDisplay.prefab +89 -36
- package/Samples~/LightBeamSamples/FriendsManager/Prefabs/SelectorButton.prefab +16 -12
- package/Samples~/LightBeamSamples/FriendsManager/Prefabs/SentInvitesDisplay/SentInviteDisplay.prefab +81 -30
- package/Samples~/LightBeamSamples/FriendsManager/Sample_FriendsManager.unity +2113 -41
- package/Samples~/LightBeamSamples/Inventory/InventoryManager.cs +4 -0
- package/Samples~/LightBeamSamples/Inventory/Prefabs/CurrencyDisplay/CurrencyDisplay.prefab +180 -29
- package/Samples~/LightBeamSamples/Inventory/Prefabs/CurrencyDisplay/CurrencyDisplayBehaviour.cs +7 -2
- package/Samples~/LightBeamSamples/Inventory/Prefabs/CurrencyInfoPage/CurrencyInfoBehaviour.cs +7 -2
- package/Samples~/LightBeamSamples/Inventory/Prefabs/CurrencyInfoPage/CurrencyInfoDisplay.prefab +434 -97
- package/Samples~/LightBeamSamples/Inventory/Prefabs/HomePage/HomePage.prefab +1300 -279
- package/Samples~/LightBeamSamples/Inventory/Prefabs/ItemDisplay/ItemDisplay.prefab +182 -62
- package/Samples~/LightBeamSamples/Inventory/Prefabs/ItemDisplay/ItemDisplayBehaviour.cs +7 -2
- package/Samples~/LightBeamSamples/Inventory/Prefabs/ItemInfoPage/ItemInfoPage.cs +2 -2
- package/Samples~/LightBeamSamples/Inventory/Prefabs/ItemInfoPage/ItemInfoPage.prefab +240 -105
- package/Samples~/LightBeamSamples/Inventory/Prefabs/PropertyDisplay/PropertyDisplay.prefab +16 -13
- package/Samples~/LightBeamSamples/Inventory/Sample_InventoryManager.unity +1865 -41
- package/Samples~/LightBeamSamples/LobbyManager/LobbyManager.cs +4 -0
- package/Samples~/LightBeamSamples/LobbyManager/Prefabs/CreateLobbyDisplay/CreateLobbyDisplay.prefab +261 -268
- package/Samples~/LightBeamSamples/LobbyManager/Prefabs/FindLobbyDisplay/FindLobbyDisplay.prefab +44 -64
- package/Samples~/LightBeamSamples/LobbyManager/Prefabs/HomePage/HomePage.prefab +2337 -185
- package/Samples~/LightBeamSamples/LobbyManager/Prefabs/JoinLobbyDisplay/JoinLobbyDisplay.prefab +221 -233
- package/Samples~/LightBeamSamples/LobbyManager/Prefabs/LobbyDetailsDisplay/LobbyDetailsDisplay.prefab +273 -440
- package/Samples~/LightBeamSamples/LobbyManager/Prefabs/LobbyDisplay/LobbyDisplay.prefab +24 -47
- package/Samples~/LightBeamSamples/LobbyManager/Prefabs/PlayerDisplay/PlayerIdDisplay.prefab +18 -14
- package/Samples~/LightBeamSamples/LobbyManager/Prefabs/PlayerLobby/PlayerLobby.prefab +234 -238
- package/Samples~/LightBeamSamples/LobbyManager/Sample_LobbyManager.unity +1567 -41
- package/Samples~/LightBeamSamples/LootBox/Prefabs/LootBoxPage/LootBoxPage.prefab +19 -186
- package/Samples~/LightBeamSamples/LootBox/Sample_LootBox.unity +651 -49
- package/Samples~/LightBeamSamples/LootBox/Shared/LootboxConstants.cs +1 -1
- package/Samples~/LightBeamSamples/SceneLoader/Editor/LightBeamBuilds.cs +16 -6
- package/Tests/Runtime/Beamable/Environment/PackageVersionTests/ImplicitConversionTest.cs +2 -2
- package/Tests/Runtime/Beamable/Platform/Inventory/InventoryServiceTests/UpdateTests.cs +4 -2
- package/Tests/Runtime/Beamable/Player/Inventory/GetItemTests.cs +16 -9
- package/package.json +8 -15
- package/Common/Runtime/OpenApi/BeamAdmin.gs.cs +0 -77
- package/Common/Runtime/OpenApi/BeamServiceplan.gs.cs +0 -96
- package/Editor/ContentService/ContentUtils.cs +0 -79
- package/Editor/ContentService/ContentUtils.cs.meta +0 -11
- package/Editor/Modules/Content/DefaultAssets~/currency/icon.png +0 -0
- /package/Samples~/LightBeamSamples/AccountManager/Prefabs/{AccountDetailsBehaviour → AccountDetailsPage}/AccountDetails.prefab.meta +0 -0
- /package/Samples~/LightBeamSamples/AccountManager/Prefabs/{AccountDetailsBehaviour/AccountDetailsBehaviour.cs.meta → AccountDetailsPage/AccountDetailsPage.cs.meta} +0 -0
- /package/Samples~/LightBeamSamples/AccountManager/Prefabs/{AccountDetailsBehaviour.meta → AccountDetailsPage.meta} +0 -0
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
using Beamable.Common.BeamCli.Contracts;
|
|
3
3
|
using Beamable.Common.Content;
|
|
4
4
|
using Beamable.Editor;
|
|
5
|
+
using Beamable.Editor.ContentService;
|
|
5
6
|
using Beamable.Editor.Util;
|
|
6
7
|
using System;
|
|
7
8
|
using System.Collections.Generic;
|
|
9
|
+
using System.Linq;
|
|
8
10
|
using System.Threading.Tasks;
|
|
9
11
|
using Beamable.Common;
|
|
10
12
|
using Beamable.Editor.BeamCli.UI;
|
|
@@ -19,7 +21,7 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
19
21
|
|
|
20
22
|
private Dictionary<string, bool> _foldoutStates = new()
|
|
21
23
|
{
|
|
22
|
-
{"Created Contents", true}, {"Modified Contents", true}, {"Deleted Contents", true}
|
|
24
|
+
{"Created Contents", true}, {"Modified Contents", true}, {"Deleted Contents", true}, {"Renamed Contents", true}
|
|
23
25
|
};
|
|
24
26
|
|
|
25
27
|
private Vector2 _mainScrollPosition;
|
|
@@ -31,7 +33,7 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
31
33
|
{
|
|
32
34
|
if (_contentService.HasConflictedContent || _contentService.HasInvalidContent || !_contentService.HasChangedContents)
|
|
33
35
|
{
|
|
34
|
-
|
|
36
|
+
ChangeWindowStatusDelayed(ContentWindowStatus.Normal);
|
|
35
37
|
return;
|
|
36
38
|
}
|
|
37
39
|
|
|
@@ -43,7 +45,7 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
43
45
|
{
|
|
44
46
|
_contentService.PublishContentsWithProgress().Then(_ =>
|
|
45
47
|
{
|
|
46
|
-
|
|
48
|
+
ChangeWindowStatusDelayed(ContentWindowStatus.Normal);
|
|
47
49
|
});
|
|
48
50
|
}
|
|
49
51
|
}
|
|
@@ -55,9 +57,9 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
55
57
|
|
|
56
58
|
private void DrawRevertPanel()
|
|
57
59
|
{
|
|
58
|
-
if (!_contentService.HasChangedContents)
|
|
60
|
+
if (!_contentService.HasChangedContents && !_contentService.CurrentProgress.IsActive)
|
|
59
61
|
{
|
|
60
|
-
|
|
62
|
+
ChangeWindowStatusDelayed(ContentWindowStatus.Normal);
|
|
61
63
|
return;
|
|
62
64
|
}
|
|
63
65
|
|
|
@@ -69,7 +71,7 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
69
71
|
{
|
|
70
72
|
_revertAction?.Invoke().Then(_ =>
|
|
71
73
|
{
|
|
72
|
-
|
|
74
|
+
ChangeWindowStatusDelayed(ContentWindowStatus.Normal);
|
|
73
75
|
});
|
|
74
76
|
}
|
|
75
77
|
}
|
|
@@ -195,7 +197,7 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
195
197
|
GUILayout.FlexibleSpace();
|
|
196
198
|
if (BeamGUI.CancelButton("Back", GUILayout.Width(60)))
|
|
197
199
|
{
|
|
198
|
-
|
|
200
|
+
ChangeWindowStatusDelayed(ContentWindowStatus.Normal);
|
|
199
201
|
}
|
|
200
202
|
}
|
|
201
203
|
|
|
@@ -206,8 +208,14 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
206
208
|
var allCreated = (_statusToDraw & ContentStatus.Created) != 0 ? _contentService.GetAllContentFromStatus(ContentStatus.Created) : emptyList;
|
|
207
209
|
var allDeleted = (_statusToDraw & ContentStatus.Deleted) != 0 ? _contentService.GetAllContentFromStatus(ContentStatus.Deleted) : emptyList;
|
|
208
210
|
|
|
211
|
+
// Separate renamed items from Created/Deleted lists
|
|
212
|
+
var allRenames = _contentService.GetAllRenames();
|
|
213
|
+
var renamedCreatedIds = new HashSet<string>(allRenames.Select(r => r.CreatedFullId));
|
|
214
|
+
var renamedDeletedIds = new HashSet<string>(allRenames.Select(r => r.DeletedFullId));
|
|
215
|
+
allCreated = allCreated.Where(e => !renamedCreatedIds.Contains(e.FullId)).ToList();
|
|
216
|
+
allDeleted = allDeleted.Where(e => !renamedDeletedIds.Contains(e.FullId)).ToList();
|
|
217
|
+
|
|
209
218
|
float screenWidth = EditorGUIUtility.currentViewWidth;
|
|
210
|
-
// float availableSpace = Mathf.Max(screenWidth, ACTION_PANEL_MIN_WIDTH);
|
|
211
219
|
float availableSpace = Mathf.Max(screenWidth, ACTION_PANEL_MIN_WIDTH);
|
|
212
220
|
|
|
213
221
|
EditorGUILayout.BeginVertical();
|
|
@@ -217,14 +225,14 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
217
225
|
GUI.DrawTexture(texRect, icon);
|
|
218
226
|
EditorGUILayout.LabelField(title, _contentHeaderStyle);
|
|
219
227
|
EditorGUILayout.EndHorizontal();
|
|
220
|
-
|
|
228
|
+
|
|
221
229
|
GUILayout.Space(12);
|
|
222
230
|
EditorGUILayout.LabelField(warningMessage, _contentHeaderDescriptionStyle);
|
|
223
231
|
GUILayout.Space(12);
|
|
224
|
-
|
|
225
|
-
|
|
232
|
+
|
|
233
|
+
|
|
226
234
|
EditorGUILayout.Space(12);
|
|
227
|
-
|
|
235
|
+
|
|
228
236
|
_mainScrollPosition = EditorGUILayout.BeginScrollView(_mainScrollPosition, GUILayout.ExpandWidth(true));
|
|
229
237
|
const int widthOfAUnityScrollBar = 25;
|
|
230
238
|
availableSpace -= widthOfAUnityScrollBar + NESTED_CONTENT_PADDING*2;
|
|
@@ -235,31 +243,76 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
235
243
|
DrawChangedContents(availableSpace, "Created Contents", BeamGUI.iconStatusAdded, allCreated, showRevert);
|
|
236
244
|
DrawChangedContents(availableSpace, "Modified Contents", BeamGUI.iconStatusModified, allModified, showRevert);
|
|
237
245
|
DrawChangedContents(availableSpace, "Deleted Contents", BeamGUI.iconStatusDeleted, allDeleted, showRevert);
|
|
238
|
-
|
|
246
|
+
if (allRenames.Count > 0)
|
|
247
|
+
{
|
|
248
|
+
DrawRenamedContents(availableSpace, "Renamed Contents", BeamGUI.iconStatusModified, allRenames, showRevert);
|
|
249
|
+
}
|
|
250
|
+
|
|
239
251
|
EditorGUILayout.EndVertical();
|
|
240
252
|
EditorGUILayout.EndScrollView();
|
|
241
253
|
|
|
242
254
|
EditorGUILayout.Space(12);
|
|
255
|
+
|
|
256
|
+
if (DrawContentOperationProgress())
|
|
257
|
+
{
|
|
258
|
+
EditorGUILayout.Space(12);
|
|
259
|
+
}
|
|
243
260
|
|
|
244
261
|
var buttonsRect = EditorGUILayout.GetControlRect(GUILayout.ExpandWidth(true), GUILayout.Height(30f));
|
|
245
262
|
var buttonsRectController = new EditorGUIRectController(buttonsRect);
|
|
246
263
|
var primaryBtnContent = new GUIContent(buttonText);
|
|
247
264
|
var primaryBtnSize = GUI.skin.button.CalcSize(primaryBtnContent);
|
|
248
265
|
|
|
249
|
-
if (BeamGUI.
|
|
266
|
+
if (BeamGUI.ShowDisabled(!_contentService.CurrentProgress.IsActive,
|
|
267
|
+
() => BeamGUI.PrimaryButton(buttonsRectController.ReserveWidthFromRight(primaryBtnSize.x + BASE_PADDING * 2), primaryBtnContent)))
|
|
250
268
|
{
|
|
251
269
|
onButtonClicked?.Invoke();
|
|
252
270
|
}
|
|
253
271
|
var cancelBtnContent = new GUIContent("Cancel");
|
|
254
272
|
var cancelBtnSize = GUI.skin.button.CalcSize(cancelBtnContent);
|
|
255
|
-
if (BeamGUI.
|
|
273
|
+
if (BeamGUI.ShowDisabled(!_contentService.CurrentProgress.IsActive,
|
|
274
|
+
() => BeamGUI.CustomButton(buttonsRectController.ReserveWidthFromRight(cancelBtnSize.x + BASE_PADDING * 2), cancelBtnContent, BeamGUI.ColorizeButton(Color.gray))))
|
|
256
275
|
{
|
|
257
|
-
|
|
276
|
+
ChangeWindowStatusDelayed(ContentWindowStatus.Normal);
|
|
258
277
|
}
|
|
259
278
|
|
|
260
279
|
EditorGUILayout.EndVertical();
|
|
261
280
|
}
|
|
262
281
|
|
|
282
|
+
/// <summary>
|
|
283
|
+
/// Draws the active content operation progress bar in the Content Manager action panel.
|
|
284
|
+
/// </summary>
|
|
285
|
+
/// <returns>True when progress UI was drawn and the caller should reserve spacing for it.</returns>
|
|
286
|
+
private bool DrawContentOperationProgress()
|
|
287
|
+
{
|
|
288
|
+
var progress = _contentService.CurrentProgress;
|
|
289
|
+
if (!progress.IsActive)
|
|
290
|
+
{
|
|
291
|
+
return false;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
var progressAction = progress.Title == "Publish Contents" ? "published" : "synced";
|
|
295
|
+
var progressText = progress.TotalItems > 0
|
|
296
|
+
? $"{progress.ProcessedItems}/{progress.TotalItems} items {progressAction}"
|
|
297
|
+
: $"Preparing {progress.Title.ToLowerInvariant()}...";
|
|
298
|
+
|
|
299
|
+
if (!string.IsNullOrEmpty(progress.CurrentContentName))
|
|
300
|
+
{
|
|
301
|
+
progressText = $"{progressText} - {progress.CurrentContentName}";
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
EditorGUILayout.LabelField(progress.Title, EditorStyles.boldLabel);
|
|
305
|
+
var progressRect = EditorGUILayout.GetControlRect(GUILayout.ExpandWidth(true), GUILayout.Height(20));
|
|
306
|
+
EditorGUI.ProgressBar(progressRect, progress.Progress, progressText);
|
|
307
|
+
|
|
308
|
+
if (!string.IsNullOrEmpty(progress.Description))
|
|
309
|
+
{
|
|
310
|
+
EditorGUILayout.LabelField(progress.Description, _contentHeaderDescriptionStyle);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
return true;
|
|
314
|
+
}
|
|
315
|
+
|
|
263
316
|
private void DrawChangedContents(float width,
|
|
264
317
|
string headerName,
|
|
265
318
|
Texture icon,
|
|
@@ -349,6 +402,85 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
349
402
|
EditorGUILayout.EndVertical();
|
|
350
403
|
}
|
|
351
404
|
|
|
405
|
+
private void DrawRenamedContents(float width, string headerName, Texture icon,
|
|
406
|
+
List<ContentRenameInfo> renames, bool showRevert)
|
|
407
|
+
{
|
|
408
|
+
if (renames.Count == 0) return;
|
|
409
|
+
|
|
410
|
+
_foldoutStates.TryAdd(headerName, true);
|
|
411
|
+
|
|
412
|
+
var heightSize = CalculateContentsHeight(_foldoutStates[headerName], renames.Count);
|
|
413
|
+
EditorGUILayout.BeginVertical();
|
|
414
|
+
var rectController =
|
|
415
|
+
new EditorGUIRectController(
|
|
416
|
+
EditorGUILayout.GetControlRect(GUILayout.Width(width), GUILayout.Height(heightSize)));
|
|
417
|
+
|
|
418
|
+
GUI.Box(rectController.rect, GUIContent.none, EditorStyles.helpBox);
|
|
419
|
+
var headerRect = new EditorGUIRectController(rectController.ReserveHeight(BeamGUI.StandardVerticalSpacing * 1.5f));
|
|
420
|
+
|
|
421
|
+
headerRect.ReserveWidth(BASE_PADDING);
|
|
422
|
+
var foldoutRect = headerRect.ReserveWidth(FOLDOUT_WIDTH);
|
|
423
|
+
_foldoutStates[headerName] = EditorGUI.Foldout(foldoutRect, _foldoutStates[headerName], GUIContent.none);
|
|
424
|
+
|
|
425
|
+
var iconSize = 15f;
|
|
426
|
+
var iconRect = headerRect.ReserveWidth(iconSize);
|
|
427
|
+
GUI.DrawTexture(new Rect(iconRect.x, iconRect.center.y - iconSize / 2f, iconSize, iconSize), icon, ScaleMode.ScaleToFit);
|
|
428
|
+
|
|
429
|
+
headerRect.ReserveWidth(BASE_PADDING);
|
|
430
|
+
|
|
431
|
+
var labelRect = headerRect.rect;
|
|
432
|
+
var guiStyle = new GUIStyle(EditorStyles.boldLabel) { alignment = TextAnchor.MiddleLeft };
|
|
433
|
+
EditorGUI.LabelField(labelRect, headerName, guiStyle);
|
|
434
|
+
|
|
435
|
+
if (_foldoutStates[headerName])
|
|
436
|
+
{
|
|
437
|
+
foreach (var rename in renames)
|
|
438
|
+
{
|
|
439
|
+
var itemRect = rectController.ReserveSingleLine();
|
|
440
|
+
EditorGUILayout.BeginHorizontal();
|
|
441
|
+
{
|
|
442
|
+
itemRect.xMin = iconRect.xMax;
|
|
443
|
+
itemRect.width -= BASE_PADDING;
|
|
444
|
+
var itemRectController = new EditorGUIRectController(itemRect);
|
|
445
|
+
|
|
446
|
+
var itemIconRect = itemRectController.ReserveWidth(iconSize);
|
|
447
|
+
itemRectController.ReserveWidth(BASE_PADDING);
|
|
448
|
+
|
|
449
|
+
Rect buttonRect = default;
|
|
450
|
+
if (showRevert)
|
|
451
|
+
{
|
|
452
|
+
buttonRect = itemRectController.ReserveWidthFromRight(80);
|
|
453
|
+
}
|
|
454
|
+
var contentRect = itemRectController.rect;
|
|
455
|
+
var displayText = $"{rename.DeletedFullId} → {rename.NewName}";
|
|
456
|
+
var entryContent = new GUIContent(displayText, displayText);
|
|
457
|
+
EditorGUI.LabelField(contentRect, entryContent);
|
|
458
|
+
if (showRevert)
|
|
459
|
+
{
|
|
460
|
+
var revertContent = new GUIContent("Revert", BeamGUI.iconRevertAction,
|
|
461
|
+
"Revert this rename to its original name");
|
|
462
|
+
if (GUI.Button(buttonRect, revertContent))
|
|
463
|
+
{
|
|
464
|
+
if (EditorUtility.DisplayDialog("Revert Rename",
|
|
465
|
+
$"Are you sure you want to revert the rename of {rename.OldName}?",
|
|
466
|
+
"Revert", "Cancel"))
|
|
467
|
+
{
|
|
468
|
+
var bothIds = $"{rename.CreatedFullId},{rename.DeletedFullId}";
|
|
469
|
+
_ = _contentService.SyncContentsWithProgress(
|
|
470
|
+
true, true, true, true, bothIds,
|
|
471
|
+
ContentFilterType.ExactIds);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
EditorGUILayout.EndHorizontal();
|
|
477
|
+
rectController.ReserveHeight(EditorGUIUtility.standardVerticalSpacing);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
EditorGUILayout.EndVertical();
|
|
482
|
+
}
|
|
483
|
+
|
|
352
484
|
private float CalculateContentsHeight(bool isOpen, int entriesCount)
|
|
353
485
|
{
|
|
354
486
|
var height = BeamGUI.StandardVerticalSpacing * 1.5f; // Header
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
using Beamable;
|
|
2
2
|
using Beamable.Common.BeamCli.Contracts;
|
|
3
|
+
using Beamable.Common.Content;
|
|
3
4
|
using Beamable.Editor.BeamCli.Commands;
|
|
4
5
|
using Beamable.Editor.BeamCli.UI.LogHelpers;
|
|
6
|
+
using Beamable.Editor.ContentService;
|
|
5
7
|
using Beamable.Editor.Util;
|
|
6
8
|
using Beamable.Editor.UI2.Utils;
|
|
7
9
|
using System.Collections.Generic;
|
|
@@ -119,7 +121,7 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
119
121
|
{
|
|
120
122
|
if (BeamGUI.HeaderButton("Content Editor", BeamGUI.iconContentEditorIcon, width: 90, iconPadding: 2))
|
|
121
123
|
{
|
|
122
|
-
|
|
124
|
+
ChangeWindowStatusDelayed(ContentWindowStatus.Normal);
|
|
123
125
|
}
|
|
124
126
|
}
|
|
125
127
|
if (_windowStatus is ContentWindowStatus.Normal || _windowStatus is ContentWindowStatus.Validate)
|
|
@@ -260,6 +262,17 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
260
262
|
Repaint();
|
|
261
263
|
}
|
|
262
264
|
|
|
265
|
+
/// <summary>
|
|
266
|
+
/// Defers Content Manager state changes until the current IMGUI event has finished.
|
|
267
|
+
/// </summary>
|
|
268
|
+
/// <remarks>
|
|
269
|
+
/// Some state transitions remove or add controls. Deferring them avoids mismatched layout groups during repaint.
|
|
270
|
+
/// </remarks>
|
|
271
|
+
private void ChangeWindowStatusDelayed(ContentWindowStatus windowStatus)
|
|
272
|
+
{
|
|
273
|
+
EditorApplication.delayCall += () => ChangeWindowStatus(windowStatus);
|
|
274
|
+
}
|
|
275
|
+
|
|
263
276
|
private void DrawLowBarHeader(Rect rect)
|
|
264
277
|
{
|
|
265
278
|
if (NeedsMigration) return;
|
|
@@ -420,27 +433,38 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
420
433
|
|
|
421
434
|
private async Promise RevertAllContents()
|
|
422
435
|
{
|
|
423
|
-
await _contentService.SyncContentsWithProgress(true, true, true, true);
|
|
436
|
+
await _contentService.SyncContentsWithProgress(true, true, true, true, showUnityModalProgress: false);
|
|
424
437
|
}
|
|
425
438
|
|
|
426
439
|
private async Promise RevertModifiedContents()
|
|
427
440
|
{
|
|
428
|
-
|
|
441
|
+
// Capture renames before the first sync clears the registry via Reload()
|
|
442
|
+
var renames = _contentService.GetAllRenames();
|
|
443
|
+
|
|
444
|
+
await _contentService.SyncContentsWithProgress(true, false, false, false, showUnityModalProgress: false);
|
|
445
|
+
|
|
446
|
+
if (renames.Count > 0)
|
|
447
|
+
{
|
|
448
|
+
var renameIds = string.Join(",",
|
|
449
|
+
renames.SelectMany(r => new[] { r.CreatedFullId, r.DeletedFullId }));
|
|
450
|
+
await _contentService.SyncContentsWithProgress(
|
|
451
|
+
true, true, true, true, renameIds, ContentFilterType.ExactIds);
|
|
452
|
+
}
|
|
429
453
|
}
|
|
430
454
|
|
|
431
455
|
private async Promise RevertConflictedContents()
|
|
432
456
|
{
|
|
433
|
-
await _contentService.SyncContentsWithProgress(false, false, true, false);
|
|
457
|
+
await _contentService.SyncContentsWithProgress(false, false, true, false, showUnityModalProgress: false);
|
|
434
458
|
}
|
|
435
459
|
|
|
436
460
|
private async Promise RevertDeletedContents()
|
|
437
461
|
{
|
|
438
|
-
await _contentService.SyncContentsWithProgress(false, false, false, true);
|
|
462
|
+
await _contentService.SyncContentsWithProgress(false, false, false, true, showUnityModalProgress: false);
|
|
439
463
|
}
|
|
440
464
|
|
|
441
465
|
private async Promise RevertAllNewContents()
|
|
442
466
|
{
|
|
443
|
-
await _contentService.SyncContentsWithProgress(false, true, false, false);
|
|
467
|
+
await _contentService.SyncContentsWithProgress(false, true, false, false, showUnityModalProgress: false);
|
|
444
468
|
}
|
|
445
469
|
|
|
446
470
|
|
|
@@ -387,6 +387,9 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
var contentObject = CreateInstance(type) as ContentObject;
|
|
390
|
+
// Force Unity's serializer to instantiate all nested [Serializable] reference fields
|
|
391
|
+
// (e.g. Optional abd strings types) with proper default instances instead of leaving them null.
|
|
392
|
+
JsonUtility.FromJsonOverwrite(JsonUtility.ToJson(contentObject), contentObject);
|
|
390
393
|
string baseName = $"New_{itemType.Replace(".","_")}_";
|
|
391
394
|
int nextNumber = _contentService.GetContentsFromType(type)
|
|
392
395
|
.Select(item => item.Name)
|
|
@@ -549,10 +552,19 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
549
552
|
|
|
550
553
|
string lastUpdateDate = DateTimeOffset.FromUnixTimeMilliseconds(entry.LatestUpdateAtDate).ToLocalTime().ToString("g");
|
|
551
554
|
|
|
555
|
+
bool isRenamed = _contentService.TryGetRenameInfo(entry.FullId, out var renameInfo)
|
|
556
|
+
&& renameInfo.CreatedFullId == entry.FullId;
|
|
557
|
+
if (isRenamed)
|
|
558
|
+
nameLabel = isEditingName ? nameLabel : $"{entry.Name} (renamed from {renameInfo.OldName})";
|
|
559
|
+
|
|
552
560
|
string[] values = {nameLabel, entry.Tags != null ? string.Join(", ", entry.Tags) : "-", lastUpdateDate};
|
|
553
|
-
Texture iconForEntry
|
|
554
|
-
|
|
555
|
-
|
|
561
|
+
Texture iconForEntry;
|
|
562
|
+
if (_contentService.IsContentInvalid(entry.FullId))
|
|
563
|
+
iconForEntry = BeamGUI.iconStatusInvalid;
|
|
564
|
+
else if (isRenamed)
|
|
565
|
+
iconForEntry = BeamGUI.iconStatusModified;
|
|
566
|
+
else
|
|
567
|
+
iconForEntry = GetIconForStatus(entry.IsInConflict, entry.StatusEnum);
|
|
556
568
|
Texture[] icons = {iconForEntry};
|
|
557
569
|
|
|
558
570
|
bool[] isEditable = {isEditingName};
|
|
@@ -782,7 +794,18 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
782
794
|
});
|
|
783
795
|
}
|
|
784
796
|
|
|
785
|
-
if (entry.
|
|
797
|
+
if (_contentService.TryGetRenameInfo(entry.FullId, out var ctxRenameInfo)
|
|
798
|
+
&& ctxRenameInfo.CreatedFullId == entry.FullId)
|
|
799
|
+
{
|
|
800
|
+
menu.AddItem(new GUIContent($"Revert Item (renamed from {ctxRenameInfo.OldName})"), false,
|
|
801
|
+
() =>
|
|
802
|
+
{
|
|
803
|
+
var bothIds = $"{ctxRenameInfo.CreatedFullId},{ctxRenameInfo.DeletedFullId}";
|
|
804
|
+
_ = _contentService.SyncContentsWithProgress(
|
|
805
|
+
true, true, true, true, bothIds, ContentFilterType.ExactIds);
|
|
806
|
+
});
|
|
807
|
+
}
|
|
808
|
+
else if (entry.StatusEnum is not ContentStatus.UpToDate and not ContentStatus.Created)
|
|
786
809
|
{
|
|
787
810
|
menu.AddItem(new GUIContent("Revert Item"), false,
|
|
788
811
|
() =>
|
|
@@ -1069,6 +1092,14 @@ namespace Beamable.Editor.UI.ContentWindow
|
|
|
1069
1092
|
HashSet<string> statuses,
|
|
1070
1093
|
string nameSearchPartValue)
|
|
1071
1094
|
{
|
|
1095
|
+
// Hide the Deleted side of a detected rename — only the Created side (new name) is shown
|
|
1096
|
+
if (entry.StatusEnum == ContentStatus.Deleted
|
|
1097
|
+
&& _contentService.TryGetRenameInfo(entry.FullId, out var ri)
|
|
1098
|
+
&& ri.DeletedFullId == entry.FullId)
|
|
1099
|
+
{
|
|
1100
|
+
return false;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1072
1103
|
// Check if it is the specificType
|
|
1073
1104
|
if (!string.IsNullOrEmpty(specificType) &&
|
|
1074
1105
|
!entry.TypeName.Equals(specificType, StringComparison.InvariantCultureIgnoreCase))
|
|
@@ -15,7 +15,7 @@ namespace Beamable.Editor.Library
|
|
|
15
15
|
{
|
|
16
16
|
WindowDefaultConfig = new BeamEditorWindowInitConfig()
|
|
17
17
|
{
|
|
18
|
-
Title = "Beam
|
|
18
|
+
Title = "Beam Samples",
|
|
19
19
|
FocusOnShow = false,
|
|
20
20
|
DockPreferenceTypeName = typeof(SceneView).AssemblyQualifiedName,
|
|
21
21
|
RequireLoggedUser = true,
|
|
@@ -25,7 +25,7 @@ namespace Beamable.Editor.Library
|
|
|
25
25
|
[MenuItem(
|
|
26
26
|
Constants.MenuItems.Windows.Paths.MENU_ITEM_PATH_WINDOW_BEAMABLE + "/" +
|
|
27
27
|
Constants.Commons.OPEN + " " +
|
|
28
|
-
"Beam
|
|
28
|
+
"Beam Samples",
|
|
29
29
|
priority = Constants.MenuItems.Windows.Orders.MENU_ITEM_PATH_WINDOW_PRIORITY_2
|
|
30
30
|
)]
|
|
31
31
|
public static async void Init() => _ = await GetFullyInitializedWindow();
|
|
@@ -8,28 +8,7 @@ namespace Beamable.Editor.Library
|
|
|
8
8
|
{
|
|
9
9
|
void DrawMain()
|
|
10
10
|
{
|
|
11
|
-
DrawHeader();
|
|
12
11
|
DrawSampleSection();
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
void DrawHeader()
|
|
16
|
-
{
|
|
17
|
-
BeamGUI.DrawHeaderSection(this, ActiveContext,
|
|
18
|
-
drawTopBarGui: () =>
|
|
19
|
-
{
|
|
20
|
-
// there aren't really any options that make sense yet.
|
|
21
|
-
},
|
|
22
|
-
drawLowBarGui: () =>
|
|
23
|
-
{
|
|
24
|
-
},
|
|
25
|
-
onClickedRefresh: () =>
|
|
26
|
-
{
|
|
27
|
-
library.Reload();
|
|
28
|
-
},
|
|
29
|
-
onClickedHelp: () =>
|
|
30
|
-
{
|
|
31
|
-
Application.OpenURL(DocsPageHelper.GetUnityDocsPageUrl("unity/samples/lightbeam/", EditorConstants.UNITY_CURRENT_DOCS_VERSION));
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
13
|
}
|
|
35
14
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
using Beamable.Editor.Util;
|
|
2
2
|
using System.Collections.Generic;
|
|
3
|
+
using TMPro;
|
|
3
4
|
using UnityEditor;
|
|
4
5
|
using UnityEditor.Experimental;
|
|
5
6
|
using UnityEngine;
|
|
@@ -38,67 +39,116 @@ namespace Beamable.Editor.Library
|
|
|
38
39
|
margin = new RectOffset(12, 12, 12, 12)
|
|
39
40
|
});
|
|
40
41
|
|
|
42
|
+
// Header: welcome title and subtext
|
|
43
|
+
{
|
|
44
|
+
var headerStyle = new GUIStyle(EditorStyles.largeLabel)
|
|
45
|
+
{
|
|
46
|
+
fontStyle = FontStyle.Bold,
|
|
47
|
+
fontSize = 25,
|
|
48
|
+
wordWrap = true,
|
|
49
|
+
alignment = TextAnchor.UpperLeft,
|
|
50
|
+
margin = new RectOffset(2, 2, 4, 0),
|
|
51
|
+
padding = new RectOffset(2, 2, 0, 0)
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
var subStyle = new GUIStyle(EditorStyles.label)
|
|
55
|
+
{
|
|
56
|
+
wordWrap = true,
|
|
57
|
+
richText = false,
|
|
58
|
+
fontSize = 12,
|
|
59
|
+
alignment = TextAnchor.UpperLeft,
|
|
60
|
+
margin = new RectOffset(2, 2, 0, 8),
|
|
61
|
+
padding = new RectOffset(2, 2, 0, 0)
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const string titleText = "Welcome to the Lightbeam Samples";
|
|
65
|
+
const string subText = "This section has ready-to-use samples covering features such as Player Accounts, Inventory, Cloud Saving, Friends, Lobbies, and more. Explore them to accelerate your integration with Beamable.";
|
|
66
|
+
|
|
67
|
+
var headerHeight = headerStyle.CalcHeight(new GUIContent(titleText), width);
|
|
68
|
+
var subHeight = subStyle.CalcHeight(new GUIContent(subText), width);
|
|
69
|
+
|
|
70
|
+
EditorGUILayout.LabelField(titleText, headerStyle, GUILayout.Height(headerHeight));
|
|
71
|
+
EditorGUILayout.LabelField(subText, subStyle, GUILayout.Height(subHeight));
|
|
72
|
+
|
|
73
|
+
EditorGUILayout.BeginHorizontal();
|
|
74
|
+
if (EditorGUILayout.LinkButton("Visit our documentation website →"))
|
|
75
|
+
{
|
|
76
|
+
library.OpenDocumentation("unity/samples/lightbeam/");
|
|
77
|
+
}
|
|
78
|
+
GUILayout.FlexibleSpace();
|
|
79
|
+
EditorGUILayout.EndHorizontal();
|
|
80
|
+
|
|
81
|
+
EditorGUILayout.Space(8);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Add Sample Cards
|
|
41
85
|
var count = library.lightbeams.Count;
|
|
42
86
|
var widthPerCard = Mathf.Clamp(width / count, minWidth, maxWidth);
|
|
43
87
|
var cardsPerRow = Mathf.FloorToInt(width / widthPerCard);
|
|
44
88
|
widthPerCard = Mathf.Min(maxWidth, width / cardsPerRow);
|
|
45
89
|
var heightPerCard = Mathf.Clamp(widthPerCard, minHeight, maxHeight);
|
|
46
|
-
var rows = Mathf.CeilToInt(count / (float)cardsPerRow);
|
|
47
|
-
|
|
90
|
+
var rows = Mathf.Max(Mathf.CeilToInt(count / (float)cardsPerRow),0);
|
|
48
91
|
|
|
49
92
|
var xOffset = (width * .5f) - (widthPerCard * .5f * cardsPerRow); // center the cards
|
|
50
93
|
var index = 0;
|
|
51
94
|
var cardRects = new List<Rect>();
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
95
|
+
|
|
96
|
+
// Add guard for minimun screen width
|
|
97
|
+
if (rows > 0)
|
|
98
|
+
{
|
|
55
99
|
{
|
|
56
|
-
|
|
57
|
-
for (var
|
|
100
|
+
// layout the rects
|
|
101
|
+
for (var r = 0; r < rows && index < library.lightbeams.Count; r++)
|
|
58
102
|
{
|
|
59
|
-
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
103
|
+
EditorGUILayout.BeginHorizontal();
|
|
104
|
+
for (var c = 0; c < cardsPerRow && index < library.lightbeams.Count; c++, index++)
|
|
105
|
+
{
|
|
106
|
+
|
|
107
|
+
var rect = GUILayoutUtility.GetRect(GUIContent.none, GUIStyle.none,
|
|
108
|
+
GUILayout.Width(widthPerCard),
|
|
109
|
+
GUILayout.Height(heightPerCard),
|
|
110
|
+
GUILayout.ExpandWidth(false));
|
|
111
|
+
|
|
112
|
+
int padding = 8;
|
|
113
|
+
var padded = new Rect(rect.x + padding + xOffset, rect.y + padding,
|
|
114
|
+
rect.width - padding * 2,
|
|
115
|
+
rect.height - padding * 2);
|
|
116
|
+
cardRects.Add(padded);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
EditorGUILayout.EndHorizontal();
|
|
69
120
|
}
|
|
70
|
-
|
|
71
|
-
EditorGUILayout.EndHorizontal();
|
|
72
121
|
}
|
|
73
|
-
}
|
|
74
122
|
|
|
75
|
-
{ // draw drop shadow
|
|
76
|
-
for (var i = 0; i < library.lightbeams.Count; i++)
|
|
77
123
|
{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
124
|
+
// draw drop shadow
|
|
125
|
+
for (var i = 0; i < library.lightbeams.Count; i++)
|
|
126
|
+
{
|
|
127
|
+
var rect = cardRects[i];
|
|
128
|
+
|
|
129
|
+
var shadowOffset = 24;
|
|
130
|
+
var shadowRect = new Rect(rect.x - shadowOffset, rect.y + shadowOffset, rect.width,
|
|
131
|
+
rect.height);
|
|
132
|
+
GUI.DrawTexture(shadowRect, BeamGUI.iconShadowSoftA, ScaleMode.StretchToFill, true);
|
|
133
|
+
|
|
134
|
+
shadowOffset = 6;
|
|
135
|
+
shadowRect = new Rect(rect.x - shadowOffset, rect.y + shadowOffset, rect.width, rect.height);
|
|
136
|
+
GUI.DrawTexture(shadowRect, BeamGUI.iconShadowSoftA, ScaleMode.StretchToFill, true);
|
|
137
|
+
}
|
|
87
138
|
}
|
|
88
|
-
}
|
|
89
139
|
|
|
90
|
-
{ // draw the actual card content
|
|
91
|
-
for (var i = 0; i < library.lightbeams.Count; i++)
|
|
92
140
|
{
|
|
93
|
-
|
|
94
|
-
|
|
141
|
+
// draw the actual card content
|
|
142
|
+
for (var i = 0; i < library.lightbeams.Count; i++)
|
|
143
|
+
{
|
|
144
|
+
var rect = cardRects[i];
|
|
145
|
+
DrawSample(rect, library.lightbeams[i]);
|
|
146
|
+
}
|
|
95
147
|
}
|
|
96
148
|
}
|
|
97
149
|
|
|
98
150
|
EditorGUILayout.EndVertical();
|
|
99
151
|
EditorGUILayout.EndScrollView();
|
|
100
|
-
|
|
101
|
-
|
|
102
152
|
}
|
|
103
153
|
|
|
104
154
|
private Material iconMaterial;
|
|
@@ -262,6 +312,16 @@ namespace Beamable.Editor.Library
|
|
|
262
312
|
{
|
|
263
313
|
AddDelayedAction(() =>
|
|
264
314
|
{
|
|
315
|
+
|
|
316
|
+
// Search for the TMP Settings asset which is part of the Essential Resources
|
|
317
|
+
// Use this to detect if the TMP Pro Resources was imported already
|
|
318
|
+
string[] guid = AssetDatabase.FindAssets("t:TMP_Settings");
|
|
319
|
+
if (guid.Length == 0)
|
|
320
|
+
{
|
|
321
|
+
TMP_PackageResourceImporter.ImportResources(true,false,false);
|
|
322
|
+
Debug.Log("TMP Pro Resources Imported");
|
|
323
|
+
}
|
|
324
|
+
|
|
265
325
|
library.OpenSample(lightBeam);
|
|
266
326
|
});
|
|
267
327
|
}
|