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

22 lines
433 B
C#
Raw Permalink 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
{
MagazineSize,
BulletSpeed,
BulletAcceleration,
ExplosiveBullets,
SmartBullets,
}
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; }
2024-04-17 19:34:19 +02:00
}