social / pragma.gamemanagement / GameManagementService /

GameManagementService #

class GameManagementService(pragmaNode: PragmaNode, instanceId: UUID, routingUtils: RoutingUtils = RoutingUtils.defaultInstance, getGameManagementDataCommand: GetGameManagementDataCommand = GetGameManagementDataCommand(), limitedAccessEventScheduler: LimitedAccessEventScheduler = LimitedAccessEventSchedulerImpl()) : DistributedService

GameManagementService is responsible for interactions with game titles and shards, shard access modes and limited access events.

References

Constructors #

GameManagementService

fun GameManagementService(pragmaNode: PragmaNode, instanceId: UUID, routingUtils: RoutingUtils = RoutingUtils.defaultInstance, getGameManagementDataCommand: GetGameManagementDataCommand = GetGameManagementDataCommand(), limitedAccessEventScheduler: LimitedAccessEventScheduler = LimitedAccessEventSchedulerImpl())

Functions #

NameSummary

createGameShardV1

suspend fun createGameShardV1(operatorSession: OperatorSession, request: GameManagementRpc.CreateGameShardV1Request): GameManagementRpc.CreateGameShardV1Response

Create new game shard for an existing game.

createGameTitleV1

suspend fun createGameTitleV1(operatorSession: OperatorSession, request: GameManagementRpc.CreateGameTitleV1Request): GameManagementRpc.CreateGameTitleV1Response

Create new game titles for individual games.

createLimitedAccessEventOperatorV1

suspend fun createLimitedAccessEventOperatorV1(operatorSession: OperatorSession, request: GameManagementRpc.CreateLimitedAccessEventOperatorV1Request): GameManagementRpc.CreateLimitedAccessEventOperatorV1Response

Create a GameManagementCommon.LimitedAccessEvent.

deleteLimitedAccessEventOperatorV1

suspend fun deleteLimitedAccessEventOperatorV1(operatorSession: OperatorSession, request: GameManagementRpc.DeleteLimitedAccessEventOperatorV1Request): GameManagementRpc.DeleteLimitedAccessEventOperatorV1Response

Deletes a limited access event.

getAllLimitedAccessEventsOperatorV1

suspend fun getAllLimitedAccessEventsOperatorV1(operatorSession: OperatorSession, request: GameManagementRpc.GetAllLimitedAccessEventsOperatorV1Request): GameManagementRpc.GetAllLimitedAccessEventsOperatorV1Response

Get a list of all limited access events attached to a game shard.

getAllLimitedAccessEventsPartnerV1

suspend fun getAllLimitedAccessEventsPartnerV1(partnerSession: PartnerSession, request: GameManagementRpc.GetAllLimitedAccessEventsPartnerV1Request): GameManagementRpc.GetAllLimitedAccessEventsPartnerV1Response

Get a list of all limited access events attached to a game shard.

getLimitedAccessEventOperatorV1

suspend fun getLimitedAccessEventOperatorV1(operatorSession: OperatorSession, request: GameManagementRpc.GetLimitedAccessEventOperatorV1Request): GameManagementRpc.GetLimitedAccessEventOperatorV1Response

Get a single limited access event by id.

setFullAccessPlayerGroupsOperatorV1

suspend fun setFullAccessPlayerGroupsOperatorV1(serviceSession: OperatorSession, request: GameManagementRpc.SetFullAccessPlayerGroupsOperatorV1Request): GameManagementRpc.SetFullAccessPlayerGroupsOperatorV1Response

Set the list of player groups that have full access to a game shard.

setShardAccessModeOperatorV1

suspend fun setShardAccessModeOperatorV1(operatorSession: OperatorSession, request: GameManagementRpc.SetShardAccessModeOperatorV1Request): GameManagementRpc.SetShardAccessModeOperatorV1Response

Sets the shard access mode for a specific game shard to the specified mode.

updateGameShardV1

suspend fun updateGameShardV1(operatorSession: OperatorSession, request: GameManagementRpc.UpdateGameShardV1Request): GameManagementRpc.UpdateGameShardV1Response

Edits the name and description of a game shard.

updateGameTitleV1

suspend fun updateGameTitleV1(operatorSession: OperatorSession, request: GameManagementRpc.UpdateGameTitleV1Request): GameManagementRpc.UpdateGameTitleV1Response

Updates a game title’s name and description.

updateLimitedAccessEventOperatorV1

suspend fun updateLimitedAccessEventOperatorV1(operatorSession: OperatorSession, request: GameManagementRpc.UpdateLimitedAccessEventOperatorV1Request): GameManagementRpc.UpdateLimitedAccessEventOperatorV1Response

Update an already defined limited access event to modify any details of the event.

viewGameShardV1

suspend fun viewGameShardV1(operatorSession: OperatorSession, request: GameManagementRpc.ViewGameShardV1Request): GameManagementRpc.ViewGameShardV1Response

Gets a game shard by game shard id.

viewGameTitlesV1

suspend fun viewGameTitlesV1(operatorSession: OperatorSession, request: GameManagementRpc.ViewGameTitlesV1Request): GameManagementRpc.ViewGameTitlesV1Response

Returns a list of all game titles.

viewGameTitleV1

suspend fun viewGameTitleV1(operatorSession: OperatorSession, request: GameManagementRpc.ViewGameTitleV1Request): GameManagementRpc.ViewGameTitleV1Response

Returns a game title by game title id.