first commit
This commit is contained in:
23
NitroxModel/Packets/PlaceBase.cs
Normal file
23
NitroxModel/Packets/PlaceBase.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using NitroxModel.DataStructures;
|
||||
using NitroxModel.DataStructures.GameLogic.Entities.Bases;
|
||||
|
||||
namespace NitroxModel.Packets;
|
||||
|
||||
[Serializable]
|
||||
public sealed class PlaceBase : Packet
|
||||
{
|
||||
public NitroxId FormerGhostId { get; }
|
||||
public BuildEntity BuildEntity { get; set; }
|
||||
|
||||
public PlaceBase(NitroxId formerGhostId, BuildEntity buildEntity)
|
||||
{
|
||||
FormerGhostId = formerGhostId;
|
||||
BuildEntity = buildEntity;
|
||||
}
|
||||
|
||||
public void Deflate()
|
||||
{
|
||||
BuildEntity = null;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user