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

21 lines
422 B
C#
Raw Normal View History

2024-04-17 19:34:19 +02:00
using TanksServer.GameLogic;
namespace TanksServer.Models;
internal enum PowerUpType
2024-04-17 19:34:19 +02:00
{
2024-04-30 11:17:02 +02:00
MagazineType,
MagazineSize
}
internal sealed class PowerUp: IMapEntity
{
public required FloatPosition Position { get; init; }
2024-04-17 19:34:19 +02:00
public PixelBounds Bounds => Position.GetBoundsForCenter(MapService.TileSize);
public required PowerUpType Type { get; init; }
public MagazineType? MagazineType { get; init; }
2024-04-17 19:34:19 +02:00
}