2024-04-17 19:34:19 +02:00
|
|
|
using TanksServer.GameLogic;
|
|
|
|
|
|
|
|
namespace TanksServer.Models;
|
|
|
|
|
2024-04-29 18:03:23 +02:00
|
|
|
internal enum PowerUpType
|
2024-04-17 19:34:19 +02:00
|
|
|
{
|
2024-04-30 11:17:02 +02:00
|
|
|
MagazineType,
|
|
|
|
MagazineSize
|
2024-04-29 18:03:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
2024-04-29 18:03:23 +02:00
|
|
|
|
|
|
|
public required PowerUpType Type { get; init; }
|
|
|
|
|
|
|
|
public MagazineType? MagazineType { get; init; }
|
2024-04-17 19:34:19 +02:00
|
|
|
}
|