prepare to send different data per client
This commit is contained in:
parent
fcd84d2c83
commit
fbaad86555
1 changed files with 245 additions and 128 deletions
21
TanksServer/Graphics/GamePixel.cs
Normal file
21
TanksServer/Graphics/GamePixel.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
namespace TanksServer.Graphics;
|
||||
|
||||
internal sealed class GamePixel
|
||||
{
|
||||
public Player? BelongsTo { get; set; }
|
||||
|
||||
public GamePixelEntityType? EntityType { get; set; }
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
BelongsTo = null;
|
||||
EntityType = null;
|
||||
}
|
||||
}
|
||||
|
||||
internal enum GamePixelEntityType : byte
|
||||
{
|
||||
Wall = 0x0,
|
||||
Tank = 0x1,
|
||||
Bullet = 0x2
|
||||
}
|
||||
Reference in a new issue