Kronos Matchmaking
Buy NowContact
  • About
    • Kronos LTS
    • Support
    • Accolades
  • Examples
    • Playable Demo
    • Sample Project
    • Example Content
  • Configuration
  • Testing & Debugging
  • Usage
    • Getting Started
    • Authentication
      • Authenticating Users
      • Customizing The Auth Widget
      • Creating Custom Auth Tasks
    • Matchmaking
      • Overview
      • Creating Matches
      • Starting Matchmaking
      • Canceling Matchmaking
      • Using Skill Ratings
      • Sending Match Invites
      • Joining Matches
      • Leaving Matches
    • Party
      • Overview
      • Creating Parties
      • Sending Party Invites
      • Joining Parties
      • Managing Party Players
      • Party Player Actors
      • Leaving Parties
    • Reservations
      • Overview
      • Using Reservations
      • The Host Reservation
      • Completing Reservations
    • Lobby
      • Overview
      • Lobby Setup
      • Set Players Ready
      • Lobby Player Data
      • Starting The Match
      • Updating Lobby Session
      • Leaving The Lobby
    • Widgets
  • Guides
    • Creating a Level Selector
    • Integrating with Lyra Game
    • Integrating with EIK
  • Advanced
    • Steam Sockets
    • Reconnect Parties
    • Custom Party Variables
    • Player Groups
  • Changelog
    • API Upgrades
    • Legacy
Powered by GitBook
On this page
  1. Usage
  2. Lobby

Lobby Player Data

The KronosLobbyPlayerState includes a Player Data framework that automatically replicates an integer array to all players. This makes it very easy to advertise data about each player, such as their level, or the character / class they are going to play.

Using The Lobby Player Data

  • SetPlayerData: Used to set the player data. Overrides previous player data entirely.

  • GetPlayerData: Used to read the player data.

  • InitPlayerData: Can be used to set initial player data. Called when the player is initializing.

For example, lets say that players have to select a character in the lobby. You can make it so that each character is represented by an index, and the first element of the player data array is reserved for the character index. E.g. "Character A" = 1, "Character B" = 2, "Character C" = 3. If the player selects "Character B", set the first element of the player data array to 2. Later if you want to check which character the player is playing, you can get the first element of the player data array.

PreviousSet Players ReadyNextStarting The Match

Last updated 10 months ago