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/tanks-backend/TanksServer/Models/Bullet.cs
2024-04-29 21:55:59 +02:00

22 lines
600 B
C#

namespace TanksServer.Models;
internal sealed class Bullet : IMapEntity
{
public required Player Owner { get; init; }
public required double Rotation { get; set; }
public required FloatPosition Position { get; set; }
public required bool IsExplosive { get; init; }
public required DateTime Timeout { get; init; }
public PixelBounds Bounds => new(Position.ToPixelPosition(), Position.ToPixelPosition());
internal required DateTime OwnerCollisionAfter { get; init; }
public required double Speed { get; init; }
public required bool IsSmart { get; init; }
}