move backend to subfolder
This commit is contained in:
parent
d4d1f2f981
commit
8d09663eff
80 changed files with 98 additions and 88 deletions
16
tanks-backend/TanksServer/Models/Bullet.cs
Normal file
16
tanks-backend/TanksServer/Models/Bullet.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
namespace TanksServer.Models;
|
||||
|
||||
internal sealed class Bullet(Player tankOwner, FloatPosition position, double rotation, bool isExplosive, DateTime timeout) : IMapEntity
|
||||
{
|
||||
public Player Owner { get; } = tankOwner;
|
||||
|
||||
public double Rotation { get; } = rotation;
|
||||
|
||||
public FloatPosition Position { get; set; } = position;
|
||||
|
||||
public bool IsExplosive { get; } = isExplosive;
|
||||
|
||||
public DateTime Timeout { get; } = timeout;
|
||||
|
||||
public PixelBounds Bounds => new (Position.ToPixelPosition(), Position.ToPixelPosition());
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue