WutheringWaves/GameServer/Models/PlayerModel.cs

26 lines
584 B
C#
Raw Normal View History

using GameServer.Settings;
namespace GameServer.Models;
2024-02-09 09:20:14 +00:00
internal class PlayerModel
{
public int Id { get; private set; }
public string Name { get; private set; }
public int[] Characters { get; private set; }
2024-02-09 09:20:14 +00:00
public PlayerModel()
{
Name = string.Empty;
Characters = [];
2024-02-09 09:20:14 +00:00
}
public static PlayerModel CreateDefaultPlayer(PlayerStartingValues startingValues)
2024-02-09 09:20:14 +00:00
{
return new PlayerModel
{
Id = 1337,
Name = startingValues.Name,
Characters = startingValues.Characters
2024-02-09 09:20:14 +00:00
};
}
}