25 lines
584 B
C#
25 lines
584 B
C#
using GameServer.Settings;
|
|
|
|
namespace GameServer.Models;
|
|
internal class PlayerModel
|
|
{
|
|
public int Id { get; private set; }
|
|
public string Name { get; private set; }
|
|
public int[] Characters { get; private set; }
|
|
|
|
public PlayerModel()
|
|
{
|
|
Name = string.Empty;
|
|
Characters = [];
|
|
}
|
|
|
|
public static PlayerModel CreateDefaultPlayer(PlayerStartingValues startingValues)
|
|
{
|
|
return new PlayerModel
|
|
{
|
|
Id = 1337,
|
|
Name = startingValues.Name,
|
|
Characters = startingValues.Characters
|
|
};
|
|
}
|
|
}
|