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/PowerUp.cs
Vinzenz Schroeter 061c893456 remove mine
2024-05-06 00:33:49 +02:00

20 lines
422 B
C#

using TanksServer.GameLogic;
namespace TanksServer.Models;
internal enum PowerUpType
{
MagazineType,
MagazineSize
}
internal sealed class PowerUp: IMapEntity
{
public required FloatPosition Position { get; init; }
public PixelBounds Bounds => Position.GetBoundsForCenter(MapService.TileSize);
public required PowerUpType Type { get; init; }
public MagazineType? MagazineType { get; init; }
}