servicepoint-tanks/TanksServer/Models/Bullet.cs

13 lines
393 B
C#
Raw Normal View History

namespace TanksServer.Models;
internal sealed class Bullet(Player tankOwner, FloatPosition position, double rotation) : IMapEntity
{
2024-04-07 21:09:36 +02:00
public Player Owner { get; } = tankOwner;
public double Rotation { get; set; } = rotation;
public FloatPosition Position { get; set; } = position;
public PixelBounds Bounds => new (Position.ToPixelPosition(), Position.ToPixelPosition());
}