Exemplo n.º 1
0
        public Task <Player> Create(NewPlayer player)
        {
            Player createdPlayer = new Player();

            createdPlayer.Name         = player.Name;
            createdPlayer.Id           = Guid.NewGuid();
            createdPlayer.IsBanned     = false;
            createdPlayer.Level        = 1;
            createdPlayer.Score        = 0;
            createdPlayer.CreationTime = DateTime.UtcNow;
            createdPlayer.Inventory    = new List <Item>();
            createdPlayer.TagList      = new List <PlayerTag>();
            return(repository.Create(createdPlayer));
        }
Exemplo n.º 2
0
 public Task <Player> Create(NewPlayer player)
 {
     return(processor.Create(player));
 }