Adding character coords

This commit is contained in:
Zeeshaun
2026-01-23 14:24:08 -06:00
parent 900951b1a7
commit 241312b0be
4 changed files with 25 additions and 10 deletions
@@ -28,12 +28,13 @@ public class CharactersController : ControllerBase
if (string.IsNullOrWhiteSpace(userId))
return Unauthorized();
var character = new Character
{
OwnerUserId = userId,
Name = req.Name.Trim(),
CreatedUtc = DateTime.UtcNow
};
var character = new Character
{
OwnerUserId = userId,
Name = req.Name.Trim(),
Coord = new Coord { X = 0, Y = 0 },
CreatedUtc = DateTime.UtcNow
};
await _characters.CreateAsync(character);
return Ok(character);