com.beamable 5.0.1 → 5.1.0-PREVIEW.RC2
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 +24 -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 +3 -3
- 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 +38 -8
- 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 +7 -0
- package/Editor/BeamCli/Commands/BeamDeploymentRelease.cs +7 -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/Config/ConsoleConfiguration.asset +5 -1
- package/Editor/ContentService/CliContentService.cs +125 -9
- package/Editor/LibraryService.cs +25 -2
- package/Editor/Modules/Content/DefaultAssets~/currency/icon.png +0 -0
- 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_GenerateClient.cs +6 -1
- package/Editor/Toolbar/MenuItems/OpenToolboxWindowMenuItem.asset +1 -1
- package/Editor/UI/AccountWindow/AccountWindow_SignedIn.cs +1 -1
- package/Editor/UI/ContentWindow/ContentWindow.cs +8 -1
- package/Editor/UI/ContentWindow/ContentWindow_ContentActions.cs +50 -9
- package/Editor/UI/ContentWindow/ContentWindow_Header.cs +17 -6
- package/Editor/UI/ContentWindow/ContentWindow_ItemsPanel.cs +3 -0
- 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 +1 -1
- package/Runtime/Modules/Console/BeamableAdminConsole.cs +696 -0
- package/Runtime/Modules/Console/BeamableAdminConsole.cs.meta +3 -0
- package/Runtime/Modules/Console/ConsoleConfiguration.cs +5 -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/LightBeam.cs +18 -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/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 +740 -342
- 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/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
|
@@ -0,0 +1,696 @@
|
|
|
1
|
+
using Beamable.ConsoleCommands;
|
|
2
|
+
using System;
|
|
3
|
+
using System.Collections.Generic;
|
|
4
|
+
using System.Linq;
|
|
5
|
+
using System.Text;
|
|
6
|
+
using UnityEngine;
|
|
7
|
+
|
|
8
|
+
#if ENABLE_INPUT_SYSTEM && !ENABLE_LEGACY_INPUT_MANAGER
|
|
9
|
+
using UnityEngine.InputSystem;
|
|
10
|
+
#endif
|
|
11
|
+
|
|
12
|
+
namespace Beamable.Console
|
|
13
|
+
{
|
|
14
|
+
public class BeamableAdminConsole : MonoBehaviour
|
|
15
|
+
{
|
|
16
|
+
public static BeamableAdminConsole Instance { get; private set; }
|
|
17
|
+
public event Action<string> OnLogLine;
|
|
18
|
+
public bool IsActive => _isActive;
|
|
19
|
+
public bool IsInitialized => _isInitialized;
|
|
20
|
+
|
|
21
|
+
#region Private State
|
|
22
|
+
|
|
23
|
+
private bool _isInitialized;
|
|
24
|
+
private bool _isActive;
|
|
25
|
+
private bool _focusInputNextFrame;
|
|
26
|
+
private bool _moveCursorToEndNextFrame;
|
|
27
|
+
|
|
28
|
+
private string _inputText = string.Empty;
|
|
29
|
+
private string _consoleText = string.Empty;
|
|
30
|
+
private Vector2 _scrollPosition;
|
|
31
|
+
|
|
32
|
+
// 3-finger touch detection for Android
|
|
33
|
+
private int _fingerCount;
|
|
34
|
+
private bool _waitForRelease;
|
|
35
|
+
private Vector2 _averagePositionStart;
|
|
36
|
+
|
|
37
|
+
// Virtual keyboard state tracking
|
|
38
|
+
private bool _wasVirtualKeyboardOpen;
|
|
39
|
+
|
|
40
|
+
private readonly Dictionary<string, ConsoleCommandEntry> _commands =
|
|
41
|
+
new Dictionary<string, ConsoleCommandEntry>(StringComparer.OrdinalIgnoreCase);
|
|
42
|
+
|
|
43
|
+
private ConsoleHistory _history;
|
|
44
|
+
private AutoCompleter _autoCompleter;
|
|
45
|
+
private BeamableConsole _beamableConsole;
|
|
46
|
+
private BeamContext _beamContext;
|
|
47
|
+
|
|
48
|
+
// IMGUI styles — built lazily inside OnGUI so GUI.skin is available
|
|
49
|
+
private GUIStyle _titleStyle;
|
|
50
|
+
private GUIStyle _outputStyle;
|
|
51
|
+
private GUIStyle _inputStyle;
|
|
52
|
+
private GUIStyle _promptStyle;
|
|
53
|
+
private GUIStyle _suggestionStyle;
|
|
54
|
+
private readonly Color _backgroundColor = new Color(0f, 0f, 0f, 0.85f);
|
|
55
|
+
private readonly float _heightRatio = 0.8f;
|
|
56
|
+
|
|
57
|
+
private const string InputControlName = "SAConsoleInput";
|
|
58
|
+
|
|
59
|
+
private const float ReferenceResolutionHeight = 1080f;
|
|
60
|
+
private float _screenScale = 1f;
|
|
61
|
+
private float _lastScreenScale = -1f;
|
|
62
|
+
|
|
63
|
+
#endregion
|
|
64
|
+
|
|
65
|
+
#region MonoBehaviour Lifecycle
|
|
66
|
+
|
|
67
|
+
private void Awake()
|
|
68
|
+
{
|
|
69
|
+
_history = new ConsoleHistory();
|
|
70
|
+
_autoCompleter = new AutoCompleter(_commands);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
private void Update()
|
|
74
|
+
{
|
|
75
|
+
if (!_isInitialized) return;
|
|
76
|
+
|
|
77
|
+
if (!IsEnabled()) return;
|
|
78
|
+
|
|
79
|
+
if (CheckToggleKey())
|
|
80
|
+
{
|
|
81
|
+
if (!_isActive){ShowConsole();}
|
|
82
|
+
else{HideConsole();}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (ShouldToggleByTouch())
|
|
86
|
+
{
|
|
87
|
+
if (!_isActive){ShowConsole();}
|
|
88
|
+
else{HideConsole();}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Handle virtual keyboard confirmation (any platform)
|
|
92
|
+
if (_isActive && !string.IsNullOrEmpty(_inputText))
|
|
93
|
+
{
|
|
94
|
+
bool isKeyboardOpen = TouchScreenKeyboard.visible;
|
|
95
|
+
if (_wasVirtualKeyboardOpen && !isKeyboardOpen)
|
|
96
|
+
{
|
|
97
|
+
// Keyboard was open and is now closed — user pressed confirm
|
|
98
|
+
SubmitInput(_inputText);
|
|
99
|
+
}
|
|
100
|
+
_wasVirtualKeyboardOpen = isKeyboardOpen;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
private bool CheckToggleKey()
|
|
105
|
+
{
|
|
106
|
+
#if ENABLE_INPUT_SYSTEM && !ENABLE_LEGACY_INPUT_MANAGER
|
|
107
|
+
if (Keyboard.current.backquoteKey.wasPressedThisFrame)
|
|
108
|
+
{
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
#endif
|
|
112
|
+
#if ENABLE_LEGACY_INPUT_MANAGER
|
|
113
|
+
if (Input.GetKeyDown(KeyCode.BackQuote))
|
|
114
|
+
{
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
#endif
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
#endregion
|
|
122
|
+
|
|
123
|
+
#region Initialization
|
|
124
|
+
|
|
125
|
+
public void InitializeConsole(BeamContext beamContext)
|
|
126
|
+
{
|
|
127
|
+
Instance = this;
|
|
128
|
+
|
|
129
|
+
DetachConsole();
|
|
130
|
+
_beamContext = beamContext;
|
|
131
|
+
_beamableConsole = _beamContext.ServiceProvider.GetService<BeamableConsole>();
|
|
132
|
+
if(_beamableConsole == null)
|
|
133
|
+
{
|
|
134
|
+
Debug.LogError("ConsoleFlow Unable to retrieve BeamableConsole from context.");
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
AttachConsole();
|
|
139
|
+
|
|
140
|
+
try
|
|
141
|
+
{
|
|
142
|
+
_beamableConsole.LoadCommands();
|
|
143
|
+
}
|
|
144
|
+
catch (Exception)
|
|
145
|
+
{
|
|
146
|
+
Debug.LogError("[StandAloneConsoleFlow] Unable to load console commands.");
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
_isInitialized = true;
|
|
150
|
+
Log("Console ready");
|
|
151
|
+
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
#endregion
|
|
155
|
+
|
|
156
|
+
#region Visibility
|
|
157
|
+
|
|
158
|
+
/// <summary>Opens the console window and focuses the input field.</summary>
|
|
159
|
+
public void ShowConsole()
|
|
160
|
+
{
|
|
161
|
+
_isActive = true;
|
|
162
|
+
_inputText = string.Empty;
|
|
163
|
+
_focusInputNextFrame = true;
|
|
164
|
+
_scrollPosition.y = float.MaxValue; // jump to bottom
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/// <summary>Hides the console window.</summary>
|
|
168
|
+
public void HideConsole()
|
|
169
|
+
{
|
|
170
|
+
_isActive = false;
|
|
171
|
+
_inputText = string.Empty;
|
|
172
|
+
_autoCompleter.Reset();
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
#endregion
|
|
176
|
+
|
|
177
|
+
#region Logging
|
|
178
|
+
|
|
179
|
+
/// <summary>Appends a line to the console output and fires <see cref="OnLogLine"/>.</summary>
|
|
180
|
+
public void Log(string line)
|
|
181
|
+
{
|
|
182
|
+
if (line == null) return;
|
|
183
|
+
_consoleText += Environment.NewLine + line;
|
|
184
|
+
_scrollPosition.y = float.MaxValue;
|
|
185
|
+
TrimConsoleText();
|
|
186
|
+
OnLogLine?.Invoke(line);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
#endregion
|
|
190
|
+
|
|
191
|
+
#region Update & OnGUI
|
|
192
|
+
|
|
193
|
+
private void OnGUI()
|
|
194
|
+
{
|
|
195
|
+
_screenScale = Screen.height / ReferenceResolutionHeight * ConsoleConfiguration.Instance.UISize;
|
|
196
|
+
|
|
197
|
+
if (!_isActive) return;
|
|
198
|
+
|
|
199
|
+
MakeStyle();
|
|
200
|
+
|
|
201
|
+
// Keyboard shortcuts processed BEFORE control drawing so we can consume
|
|
202
|
+
// events (e.g. Tab, UpArrow) before the TextField sees them.
|
|
203
|
+
if (Event.current.type == EventType.KeyDown)
|
|
204
|
+
{
|
|
205
|
+
switch (Event.current.keyCode)
|
|
206
|
+
{
|
|
207
|
+
case KeyCode.Return:
|
|
208
|
+
case KeyCode.KeypadEnter:
|
|
209
|
+
if (!string.IsNullOrEmpty(_inputText))
|
|
210
|
+
SubmitInput(_inputText);
|
|
211
|
+
Event.current.Use();
|
|
212
|
+
break;
|
|
213
|
+
|
|
214
|
+
case KeyCode.Tab:
|
|
215
|
+
_autoCompleter.Accept(ref _inputText);
|
|
216
|
+
_moveCursorToEndNextFrame = true;
|
|
217
|
+
_focusInputNextFrame = true;
|
|
218
|
+
Event.current.Use();
|
|
219
|
+
break;
|
|
220
|
+
|
|
221
|
+
case KeyCode.UpArrow:
|
|
222
|
+
_inputText = _history.Previous();
|
|
223
|
+
Event.current.Use();
|
|
224
|
+
break;
|
|
225
|
+
|
|
226
|
+
case KeyCode.DownArrow:
|
|
227
|
+
_inputText = _history.Next();
|
|
228
|
+
Event.current.Use();
|
|
229
|
+
break;
|
|
230
|
+
|
|
231
|
+
// Forced hide here if using the Old Input System since the tab intercept all input calls
|
|
232
|
+
#if ENABLE_LEGACY_INPUT_MANAGER
|
|
233
|
+
case KeyCode.BackQuote:
|
|
234
|
+
HideConsole();
|
|
235
|
+
break;
|
|
236
|
+
#endif
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// Guard: Hide() might have been called by Escape above
|
|
241
|
+
if (!_isActive) return;
|
|
242
|
+
|
|
243
|
+
var windowRect = new Rect(0f, 0f, Screen.width, Screen.height * _heightRatio);
|
|
244
|
+
var prevColor = GUI.color;
|
|
245
|
+
GUI.color = _backgroundColor;
|
|
246
|
+
GUI.DrawTexture(windowRect, Texture2D.whiteTexture);
|
|
247
|
+
GUI.color = prevColor;
|
|
248
|
+
|
|
249
|
+
GUILayout.BeginArea(windowRect);
|
|
250
|
+
DrawConsoleContent();
|
|
251
|
+
GUILayout.EndArea();
|
|
252
|
+
|
|
253
|
+
// Deferred focus — must happen in a Layout event to avoid IMGUI control-ID mismatches.
|
|
254
|
+
if (_focusInputNextFrame && Event.current.type == EventType.Layout)
|
|
255
|
+
{
|
|
256
|
+
GUI.FocusControl(InputControlName);
|
|
257
|
+
_focusInputNextFrame = false;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
private void DrawConsoleContent()
|
|
262
|
+
{
|
|
263
|
+
var scaledTitleHeight = Mathf.RoundToInt(56 * _screenScale);
|
|
264
|
+
var scaledPromptWidth = Mathf.RoundToInt(36 * _screenScale);
|
|
265
|
+
var scaledSeparatorHeight = Mathf.Max(1, Mathf.RoundToInt(2 * _screenScale));
|
|
266
|
+
var scaledInputHeight = Mathf.RoundToInt(56 * _screenScale);
|
|
267
|
+
var scaledInputMinHeight = Mathf.RoundToInt(44 * _screenScale);
|
|
268
|
+
|
|
269
|
+
// Title bar
|
|
270
|
+
GUILayout.BeginHorizontal(GUILayout.Height(scaledTitleHeight));
|
|
271
|
+
{
|
|
272
|
+
GUILayout.Label("<b>▶ BEAMABLE ADMIN CONSOLE</b>", _titleStyle);
|
|
273
|
+
GUILayout.FlexibleSpace();
|
|
274
|
+
}
|
|
275
|
+
GUILayout.EndHorizontal();
|
|
276
|
+
|
|
277
|
+
// Thin separator
|
|
278
|
+
GUILayout.Box(string.Empty, GUILayout.ExpandWidth(true), GUILayout.Height(scaledSeparatorHeight));
|
|
279
|
+
|
|
280
|
+
// Scrollable output area — reserved space for title + input row
|
|
281
|
+
float reservedHeight = scaledTitleHeight + scaledInputHeight + Mathf.RoundToInt(2 * _screenScale);
|
|
282
|
+
float outputHeight = Mathf.Max(Mathf.RoundToInt(40 * _screenScale), Screen.height * _heightRatio - reservedHeight);
|
|
283
|
+
_scrollPosition = GUILayout.BeginScrollView(
|
|
284
|
+
_scrollPosition, GUILayout.Height(outputHeight), GUILayout.ExpandWidth(true));
|
|
285
|
+
{
|
|
286
|
+
GUILayout.Label(_consoleText, _outputStyle);
|
|
287
|
+
}
|
|
288
|
+
GUILayout.EndScrollView();
|
|
289
|
+
|
|
290
|
+
// Input row: ">" [text field] [suggestion hint]
|
|
291
|
+
GUILayout.BeginHorizontal(GUILayout.Height(scaledInputHeight));
|
|
292
|
+
{
|
|
293
|
+
GUILayout.Label(">", _promptStyle, GUILayout.Width(scaledPromptWidth));
|
|
294
|
+
|
|
295
|
+
GUI.SetNextControlName(InputControlName);
|
|
296
|
+
var prevBg = GUI.backgroundColor;
|
|
297
|
+
GUI.backgroundColor = GUI.GetNameOfFocusedControl() == InputControlName
|
|
298
|
+
? new Color(0.24f, 0.24f, 0.24f, 1f)
|
|
299
|
+
: new Color(0.18f, 0.18f, 0.18f, 1f);
|
|
300
|
+
var newInput = GUILayout.TextField(_inputText, _inputStyle, GUILayout.MinHeight(scaledInputMinHeight));
|
|
301
|
+
GUI.backgroundColor = prevBg;
|
|
302
|
+
if (newInput != _inputText)
|
|
303
|
+
{
|
|
304
|
+
_inputText = newInput;
|
|
305
|
+
_autoCompleter.Update(_inputText);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
if (_moveCursorToEndNextFrame && Event.current.type == EventType.Repaint)
|
|
309
|
+
{
|
|
310
|
+
var editor = (TextEditor)GUIUtility.GetStateObject(typeof(TextEditor), GUIUtility.keyboardControl);
|
|
311
|
+
if (editor != null)
|
|
312
|
+
{
|
|
313
|
+
editor.text = _inputText;
|
|
314
|
+
editor.cursorIndex = _inputText.Length;
|
|
315
|
+
editor.selectIndex = _inputText.Length;
|
|
316
|
+
editor.MoveTextEnd();
|
|
317
|
+
}
|
|
318
|
+
_moveCursorToEndNextFrame = false;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
var suggestion = _autoCompleter.CurrentSuggestion;
|
|
322
|
+
if (!string.IsNullOrEmpty(suggestion))
|
|
323
|
+
{
|
|
324
|
+
GUILayout.Label($"↹ {suggestion}", _suggestionStyle, GUILayout.ExpandWidth(false));
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
GUILayout.EndHorizontal();
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
private void MakeStyle()
|
|
331
|
+
{
|
|
332
|
+
if (Mathf.Abs(_lastScreenScale - _screenScale) < 0.01f) return;
|
|
333
|
+
_lastScreenScale = _screenScale;
|
|
334
|
+
|
|
335
|
+
var scaledFontSize = Mathf.RoundToInt(20 * _screenScale);
|
|
336
|
+
var scaledPaddingH = Mathf.RoundToInt(12 * _screenScale);
|
|
337
|
+
var scaledPaddingV = Mathf.RoundToInt(8 * _screenScale);
|
|
338
|
+
var scaledPaddingSmall = Mathf.RoundToInt(4 * _screenScale);
|
|
339
|
+
var scaledPaddingTiny = Mathf.RoundToInt(6 * _screenScale);
|
|
340
|
+
|
|
341
|
+
_titleStyle = new GUIStyle(GUI.skin.label)
|
|
342
|
+
{
|
|
343
|
+
fontSize = scaledFontSize,
|
|
344
|
+
fontStyle = FontStyle.Bold,
|
|
345
|
+
richText = true,
|
|
346
|
+
normal = { textColor = Color.white },
|
|
347
|
+
padding = new RectOffset(scaledPaddingH, scaledPaddingH / 2, scaledPaddingV, scaledPaddingSmall)
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
_outputStyle = new GUIStyle(GUI.skin.label)
|
|
351
|
+
{
|
|
352
|
+
fontSize = scaledFontSize,
|
|
353
|
+
wordWrap = true,
|
|
354
|
+
richText = true,
|
|
355
|
+
stretchWidth = true,
|
|
356
|
+
normal = { textColor = new Color(0.87f, 0.87f, 0.87f) },
|
|
357
|
+
padding = new RectOffset(scaledPaddingH, scaledPaddingH, scaledPaddingSmall, scaledPaddingSmall)
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
_inputStyle = new GUIStyle(GUI.skin.textField)
|
|
361
|
+
{
|
|
362
|
+
fontSize = scaledFontSize,
|
|
363
|
+
normal = { textColor = Color.white },
|
|
364
|
+
hover = { textColor = Color.white },
|
|
365
|
+
focused = { textColor = Color.white },
|
|
366
|
+
active = { textColor = Color.white }
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
_promptStyle = new GUIStyle(GUI.skin.label)
|
|
370
|
+
{
|
|
371
|
+
fontSize = scaledFontSize,
|
|
372
|
+
fontStyle = FontStyle.Bold,
|
|
373
|
+
normal = { textColor = new Color(0.4f, 0.9f, 0.4f) },
|
|
374
|
+
padding = new RectOffset(Mathf.RoundToInt(8 * _screenScale), 0, scaledPaddingTiny, 0)
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
_suggestionStyle = new GUIStyle(GUI.skin.label)
|
|
378
|
+
{
|
|
379
|
+
fontSize = scaledFontSize,
|
|
380
|
+
fontStyle = FontStyle.Italic,
|
|
381
|
+
stretchWidth = false,
|
|
382
|
+
normal = { textColor = new Color(0.55f, 0.78f, 1f) },
|
|
383
|
+
padding = new RectOffset(scaledPaddingH, Mathf.RoundToInt(8 * _screenScale), scaledPaddingTiny, 0)
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
#endregion
|
|
389
|
+
|
|
390
|
+
#region Command Execution
|
|
391
|
+
|
|
392
|
+
private void SubmitInput(string txt)
|
|
393
|
+
{
|
|
394
|
+
_history.Push(txt);
|
|
395
|
+
_inputText = string.Empty;
|
|
396
|
+
_autoCompleter.Reset();
|
|
397
|
+
|
|
398
|
+
var parts = txt.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
|
|
399
|
+
if (parts.Length == 0) return;
|
|
400
|
+
|
|
401
|
+
var args = new string[parts.Length - 1];
|
|
402
|
+
for (var i = 1; i < parts.Length; i++) args[i - 1] = parts[i];
|
|
403
|
+
|
|
404
|
+
var result = _beamableConsole.Execute(parts[0], args);
|
|
405
|
+
if (!string.IsNullOrEmpty(result)) Log(result);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
private void AttachConsole()
|
|
409
|
+
{
|
|
410
|
+
if (_beamableConsole == null) return;
|
|
411
|
+
_beamableConsole.OnLog += Log;
|
|
412
|
+
_beamableConsole.OnExecute += HandleExecute;
|
|
413
|
+
_beamableConsole.OnCommandRegistered += HandleCommandRegistered;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
private void DetachConsole()
|
|
417
|
+
{
|
|
418
|
+
if (_beamableConsole == null) return;
|
|
419
|
+
_beamableConsole.OnLog -= Log;
|
|
420
|
+
_beamableConsole.OnExecute -= HandleExecute;
|
|
421
|
+
_beamableConsole.OnCommandRegistered -= HandleCommandRegistered;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
private void HandleCommandRegistered(BeamableConsoleCommandAttribute attr, ConsoleCommandCallback cb)
|
|
425
|
+
{
|
|
426
|
+
foreach (var name in attr.Names)
|
|
427
|
+
_commands[name.ToLower()] = new ConsoleCommandEntry { Attribute = attr, Callback = cb };
|
|
428
|
+
|
|
429
|
+
_autoCompleter.Refresh();
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
private string HandleExecute(string command, string[] args)
|
|
433
|
+
{
|
|
434
|
+
if (string.Equals(command, "help", StringComparison.OrdinalIgnoreCase))
|
|
435
|
+
return BuildHelp(args);
|
|
436
|
+
|
|
437
|
+
if (_commands.TryGetValue(command.ToLower(), out var entry))
|
|
438
|
+
{
|
|
439
|
+
var echo = "> " + command + (args.Length > 0 ? " " + string.Join(" ", args) : string.Empty);
|
|
440
|
+
Log(echo);
|
|
441
|
+
return entry.Callback(args);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
return "Unknown command: " + command;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
private string BuildHelp(string[] args)
|
|
448
|
+
{
|
|
449
|
+
if (args.Length == 0)
|
|
450
|
+
{
|
|
451
|
+
var sb = new StringBuilder();
|
|
452
|
+
sb.AppendLine("Available commands:");
|
|
453
|
+
foreach (var entry in _commands.Values.Distinct())
|
|
454
|
+
sb.AppendLine($" {entry.Attribute.Usage} — {entry.Attribute.Description}");
|
|
455
|
+
return sb.ToString();
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
var key = args[0].ToLower();
|
|
459
|
+
return _commands.TryGetValue(key, out var found)
|
|
460
|
+
? $"{found.Attribute.Usage}\n {found.Attribute.Description}"
|
|
461
|
+
: $"No help found for '{args[0]}'.";
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
#endregion
|
|
465
|
+
|
|
466
|
+
#region Toggle Detection
|
|
467
|
+
|
|
468
|
+
private bool ShouldToggleByTouch()
|
|
469
|
+
{
|
|
470
|
+
var shouldToggle = false;
|
|
471
|
+
|
|
472
|
+
#if ENABLE_INPUT_SYSTEM && !ENABLE_LEGACY_INPUT_MANAGER
|
|
473
|
+
|
|
474
|
+
if (Touchscreen.current != null)
|
|
475
|
+
{
|
|
476
|
+
var fingerCount = 0;
|
|
477
|
+
var averagePosition = Vector2.zero;
|
|
478
|
+
foreach (var touch in Touchscreen.current.touches)
|
|
479
|
+
{
|
|
480
|
+
var phase = touch.phase.ReadValue();
|
|
481
|
+
if (phase != UnityEngine.InputSystem.TouchPhase.Ended &&
|
|
482
|
+
phase != UnityEngine.InputSystem.TouchPhase.Canceled &&
|
|
483
|
+
phase != UnityEngine.InputSystem.TouchPhase.None)
|
|
484
|
+
{
|
|
485
|
+
fingerCount++;
|
|
486
|
+
averagePosition += touch.position.ReadValue();
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
switch (fingerCount)
|
|
491
|
+
{
|
|
492
|
+
case 3 when !_waitForRelease:
|
|
493
|
+
{
|
|
494
|
+
averagePosition /= 3;
|
|
495
|
+
if (_fingerCount != 3)
|
|
496
|
+
{
|
|
497
|
+
_averagePositionStart = averagePosition;
|
|
498
|
+
}
|
|
499
|
+
else if ((_averagePositionStart - averagePosition).magnitude > 20.0f)
|
|
500
|
+
{
|
|
501
|
+
_waitForRelease = true;
|
|
502
|
+
shouldToggle = true;
|
|
503
|
+
}
|
|
504
|
+
break;
|
|
505
|
+
}
|
|
506
|
+
case 0 when _waitForRelease:
|
|
507
|
+
_waitForRelease = false;
|
|
508
|
+
break;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
_fingerCount = fingerCount;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
return shouldToggle;
|
|
515
|
+
#else
|
|
516
|
+
// 3-finger touch detection (legacy input)
|
|
517
|
+
var fingerCount = 0;
|
|
518
|
+
var averagePosition = Vector2.zero;
|
|
519
|
+
var touchCount = Input.touchCount;
|
|
520
|
+
for (var i = 0; i < touchCount; ++i)
|
|
521
|
+
{
|
|
522
|
+
var touch = Input.GetTouch(i);
|
|
523
|
+
if (touch.phase != TouchPhase.Ended && touch.phase != TouchPhase.Canceled)
|
|
524
|
+
{
|
|
525
|
+
fingerCount++;
|
|
526
|
+
averagePosition += touch.position;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
switch (fingerCount)
|
|
531
|
+
{
|
|
532
|
+
case 3 when !_waitForRelease:
|
|
533
|
+
{
|
|
534
|
+
averagePosition /= 3;
|
|
535
|
+
if (_fingerCount != 3)
|
|
536
|
+
{
|
|
537
|
+
_averagePositionStart = averagePosition;
|
|
538
|
+
}
|
|
539
|
+
else if ((_averagePositionStart - averagePosition).magnitude > 20.0f)
|
|
540
|
+
{
|
|
541
|
+
_waitForRelease = true;
|
|
542
|
+
shouldToggle = true;
|
|
543
|
+
}
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
case 0 when _waitForRelease:
|
|
547
|
+
_waitForRelease = false;
|
|
548
|
+
break;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
_fingerCount = fingerCount;
|
|
552
|
+
return shouldToggle;
|
|
553
|
+
#endif
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
private bool IsEnabled()
|
|
557
|
+
{
|
|
558
|
+
|
|
559
|
+
#if UNITY_EDITOR
|
|
560
|
+
return true;
|
|
561
|
+
#else
|
|
562
|
+
return ConsoleConfiguration.Instance.EnableAdminConsole
|
|
563
|
+
|| _beamContext.AuthorizedUser.Value.HasScope("cli:console");
|
|
564
|
+
#endif
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
#endregion
|
|
568
|
+
|
|
569
|
+
#region Text Trimming
|
|
570
|
+
|
|
571
|
+
/// Mirrors ConsoleFlow's vertex-budget-based pruning to keep IMGUI from
|
|
572
|
+
/// hitting Unity's 65K-vertex text mesh limit.
|
|
573
|
+
private void TrimConsoleText()
|
|
574
|
+
{
|
|
575
|
+
const int charsPerVertex = 6;
|
|
576
|
+
const int vertexLimit = 65 * 1024;
|
|
577
|
+
|
|
578
|
+
int excess = (_consoleText.Length * charsPerVertex) - vertexLimit;
|
|
579
|
+
if (excess <= 0) return;
|
|
580
|
+
|
|
581
|
+
int cutAt = excess / charsPerVertex;
|
|
582
|
+
int newLine = _consoleText.IndexOf(Environment.NewLine, cutAt, StringComparison.Ordinal);
|
|
583
|
+
_consoleText = newLine >= 0
|
|
584
|
+
? _consoleText.Substring(newLine + Environment.NewLine.Length)
|
|
585
|
+
: string.Empty;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
#endregion
|
|
589
|
+
|
|
590
|
+
#region Nested Console Command Entry
|
|
591
|
+
|
|
592
|
+
private struct ConsoleCommandEntry
|
|
593
|
+
{
|
|
594
|
+
public BeamableConsoleCommandAttribute Attribute;
|
|
595
|
+
public ConsoleCommandCallback Callback;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
#endregion
|
|
599
|
+
|
|
600
|
+
#region Nested Console History
|
|
601
|
+
|
|
602
|
+
private class ConsoleHistory
|
|
603
|
+
{
|
|
604
|
+
private readonly List<string> _items = new List<string>();
|
|
605
|
+
private int _pos;
|
|
606
|
+
|
|
607
|
+
public void Push(string text)
|
|
608
|
+
{
|
|
609
|
+
if (string.IsNullOrEmpty(text)) return;
|
|
610
|
+
_items.Add(text);
|
|
611
|
+
_pos = _items.Count;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
public string Previous()
|
|
615
|
+
{
|
|
616
|
+
if (_items.Count == 0) return string.Empty;
|
|
617
|
+
_pos = Mathf.Max(0, _pos - 1);
|
|
618
|
+
return _items[_pos];
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
public string Next()
|
|
622
|
+
{
|
|
623
|
+
_pos++;
|
|
624
|
+
if (_pos < _items.Count) return _items[_pos];
|
|
625
|
+
_pos = _items.Count;
|
|
626
|
+
return string.Empty;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
#endregion
|
|
631
|
+
|
|
632
|
+
#region Nested Auto Completer
|
|
633
|
+
|
|
634
|
+
private class AutoCompleter
|
|
635
|
+
{
|
|
636
|
+
private readonly Dictionary<string, ConsoleCommandEntry> _source;
|
|
637
|
+
private List<string> _matches = new List<string>();
|
|
638
|
+
private int _matchIndex;
|
|
639
|
+
private string _lastInput = string.Empty;
|
|
640
|
+
|
|
641
|
+
public string CurrentSuggestion { get; private set; } = string.Empty;
|
|
642
|
+
|
|
643
|
+
public AutoCompleter(Dictionary<string, ConsoleCommandEntry> source) => _source = source;
|
|
644
|
+
|
|
645
|
+
/// <summary>Re-runs the last search (called after new commands are registered).</summary>
|
|
646
|
+
public void Refresh() => Update(_lastInput);
|
|
647
|
+
|
|
648
|
+
public void Update(string input)
|
|
649
|
+
{
|
|
650
|
+
_lastInput = input;
|
|
651
|
+
_matchIndex = 0;
|
|
652
|
+
|
|
653
|
+
if (string.IsNullOrWhiteSpace(input))
|
|
654
|
+
{
|
|
655
|
+
_matches = _source.Keys.OrderBy(k => k).ToList();
|
|
656
|
+
CurrentSuggestion = string.Empty;
|
|
657
|
+
}
|
|
658
|
+
else
|
|
659
|
+
{
|
|
660
|
+
_matches = _source.Keys
|
|
661
|
+
.Where(k => k.StartsWith(input, StringComparison.OrdinalIgnoreCase))
|
|
662
|
+
.OrderBy(k => k)
|
|
663
|
+
.ToList();
|
|
664
|
+
CurrentSuggestion = _matches.Count > 0 ? _matches[0] : string.Empty;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/// <summary>
|
|
669
|
+
/// Accepts the current suggestion (sets <paramref name="inputText"/>).
|
|
670
|
+
/// Pressing Tab again cycles to the next matching command.
|
|
671
|
+
/// </summary>
|
|
672
|
+
public void Accept(ref string inputText)
|
|
673
|
+
{
|
|
674
|
+
if (_matches.Count == 0) return;
|
|
675
|
+
|
|
676
|
+
if (string.Equals(inputText, CurrentSuggestion, StringComparison.OrdinalIgnoreCase))
|
|
677
|
+
{
|
|
678
|
+
_matchIndex = (_matchIndex + 1) % _matches.Count;
|
|
679
|
+
CurrentSuggestion = _matches[_matchIndex];
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
inputText = CurrentSuggestion;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
public void Reset()
|
|
686
|
+
{
|
|
687
|
+
CurrentSuggestion = string.Empty;
|
|
688
|
+
_matches.Clear();
|
|
689
|
+
_matchIndex = 0;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
#endregion
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
}
|
|
@@ -9,6 +9,10 @@ namespace Beamable.Console
|
|
|
9
9
|
public class ConsoleConfiguration : ModuleConfigurationObject
|
|
10
10
|
{
|
|
11
11
|
public static ConsoleConfiguration Instance => Get<ConsoleConfiguration>();
|
|
12
|
+
|
|
13
|
+
public float UISize = 1.0f;
|
|
14
|
+
public bool EnableAdminConsole = true;
|
|
15
|
+
public bool ForceEnabled = true;
|
|
12
16
|
|
|
13
17
|
#if !ENABLE_INPUT_SYSTEM || ENABLE_LEGACY_INPUT_MANAGER
|
|
14
18
|
public InputActionArg ToggleAction = new InputActionArg
|
|
@@ -18,8 +22,6 @@ namespace Beamable.Console
|
|
|
18
22
|
#elif ENABLE_INPUT_SYSTEM && !ENABLE_LEGACY_INPUT_MANAGER
|
|
19
23
|
public InputActionArg ToggleAction;
|
|
20
24
|
#endif
|
|
21
|
-
|
|
22
|
-
[Tooltip("When true, anyone will be able to open the admin console, regardless of access role. Make sure to uncheck this box for production builds")]
|
|
23
|
-
public bool ForceEnabled;
|
|
25
|
+
|
|
24
26
|
}
|
|
25
27
|
}
|