21 lines
422 B
C#
21 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; }
|
|
}
|