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/TickSteps/CollideBulletsWithTanks.cs
2024-04-07 20:16:22 +02:00

18 lines
384 B
C#

using TanksServer.Models;
using TanksServer.Services;
namespace TanksServer.TickSteps;
internal sealed class CollideBulletsWithTanks(BulletManager bullets) : ITickStep
{
public Task TickAsync()
{
bullets.RemoveWhere(BulletHitsTank);
return Task.CompletedTask;
}
private bool BulletHitsTank(Bullet bullet)
{
return false; // TODO
}
}