Files
gameauthapi/Models/Player.cs
T
2025-05-08 09:29:20 -05:00

19 lines
603 B
C#

// Models/Player.cs
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace GameAuthApi.Models;
public class Player
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; }
public string UserId { get; set; } // Linked to user
public string Name { get; set; } // In-game player name
public string LocationId { get; set; } // Current location (nullable)
public string InventoryLocationId { get; set; } // Inventory location (nullable)
public int Climbing { get; set; } = 3; // Climbing skill level (default 3)
}