servicepoint-tanks/tanks-backend/TanksServer/Models/Bullet.cs

19 lines
503 B
C#
Raw Normal View History

namespace TanksServer.Models;
2024-04-21 20:20:30 +02:00
internal sealed class Bullet : IMapEntity
{
2024-04-21 20:20:30 +02:00
public required Player Owner { get; init; }
2024-04-21 20:20:30 +02:00
public required double Rotation { get; init; }
2024-04-21 20:20:30 +02:00
public required FloatPosition Position { get; set; }
2024-04-21 20:20:30 +02:00
public required bool IsExplosive { get; init; }
2024-04-17 19:34:19 +02:00
2024-04-21 20:20:30 +02:00
public required DateTime Timeout { get; init; }
2024-04-19 13:32:41 +02:00
2024-04-21 20:20:30 +02:00
public PixelBounds Bounds => new(Position.ToPixelPosition(), Position.ToPixelPosition());
internal required DateTime OwnerCollisionAfter { get; init; }
}