This repository has been archived on 2026-07-13. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
servicepoint-tanks/TanksServer/Models/Bullet.cs
2024-04-17 19:34:19 +02:00

14 lines
459 B
C#

namespace TanksServer.Models;
internal sealed class Bullet(Player tankOwner, FloatPosition position, double rotation, bool isExplosive) : IMapEntity
{
public Player Owner { get; } = tankOwner;
public double Rotation { get; } = rotation;
public FloatPosition Position { get; set; } = position;
public bool IsExplosive { get; } = isExplosive;
public PixelBounds Bounds => new (Position.ToPixelPosition(), Position.ToPixelPosition());
}