servicepoint-tanks/TanksServer/Models/Tank.cs

17 lines
356 B
C#
Raw Normal View History

2024-04-07 13:02:49 +02:00
namespace TanksServer.Models;
2024-04-07 17:17:11 +02:00
internal sealed class Tank(Player player, FloatPosition spawnPosition)
2024-04-07 13:02:49 +02:00
{
2024-04-07 17:17:11 +02:00
private double _rotation;
2024-04-07 13:02:49 +02:00
public Player Owner { get; } = player;
2024-04-07 17:17:11 +02:00
public double Rotation
{
get => _rotation;
set => _rotation = value % 16d;
}
public FloatPosition Position { get; set; } = spawnPosition;
2024-04-07 13:02:49 +02:00
}