servicepoint-tanks/tanks-backend/TanksServer/Models/PowerUp.cs
2024-05-08 00:29:33 +02:00

22 lines
432 B
C#

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