move upgrades to tank, serialize objects directly
This commit is contained in:
parent
b1df817ece
commit
827b3a9330
16 changed files with 135 additions and 180 deletions
|
@ -4,8 +4,11 @@ namespace TanksServer.Models;
|
|||
|
||||
internal enum PowerUpType
|
||||
{
|
||||
MagazineType,
|
||||
MagazineSize
|
||||
MagazineSize,
|
||||
BulletSpeed,
|
||||
BulletAcceleration,
|
||||
ExplosiveBullets,
|
||||
SmartBullets,
|
||||
}
|
||||
|
||||
internal sealed class PowerUp: IMapEntity
|
||||
|
@ -15,6 +18,4 @@ internal sealed class PowerUp: IMapEntity
|
|||
public PixelBounds Bounds => Position.GetBoundsForCenter(MapService.TileSize);
|
||||
|
||||
public required PowerUpType Type { get; init; }
|
||||
|
||||
public MagazineType? MagazineType { get; init; }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue