forked from finepointcgi/Nakama-cSharp-Tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayerInfo.cs
More file actions
34 lines (28 loc) · 803 Bytes
/
PlayerInfo.cs
File metadata and controls
34 lines (28 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
namespace NakamacSharpTutorial;
/// <summary>
/// Stores lobby and profile information for a connected player.
/// </summary>
public class PlayerInfo
{
/// <summary>
/// Display name used in social/group features.
/// </summary>
public string Name;
/// <summary>
/// Sample progression level.
/// </summary>
public int Level;
/// <summary>
/// Sample matchmaking skill value.
/// </summary>
public int Skill;
/// <summary>
/// Unique runtime identifier (mapped to username in this sample).
/// </summary>
public string Id; // players unique id
/// <summary>
/// Ready/status flag used during pre-game flow.
/// </summary>
public int Status = 0; // if the player is ready or not or any other status
}