Better item construction

This commit is contained in:
Clyybber
2020-06-06 10:40:53 +02:00
parent 5d2282231f
commit 2995981b5e
4 changed files with 84 additions and 7 deletions

View File

@@ -48,6 +48,26 @@ namespace Content.Shared.GameObjects.Components.Construction
}
}
/// <summary>
/// Sent client -> server to to tell the server that we started building
/// an item-construction.
/// </summary>
[Serializable, NetSerializable]
protected class TryStartItemConstructionMessage : ComponentMessage
{
/// <summary>
/// The construction prototype to start building.
/// </summary>
public readonly string PrototypeName;
public TryStartItemConstructionMessage(string prototypeName)
{
Directed = true;
PrototypeName = prototypeName;
}
}
[Serializable, NetSerializable]
protected class AckStructureConstructionMessage : ComponentMessage
{