Removes the ConstructorComponents and moves the construction blueprint feature into a new ECS system. (#1114)
This commit is contained in:
@@ -1,83 +0,0 @@
|
||||
using System;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Maths;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.GameObjects.Components.Construction
|
||||
{
|
||||
/// <summary>
|
||||
/// Basically handles the logic of "this mob can do construction".
|
||||
/// </summary>
|
||||
public abstract class SharedConstructorComponent : Component
|
||||
{
|
||||
public override string Name => "Constructor";
|
||||
public override uint? NetID => ContentNetIDs.CONSTRUCTOR;
|
||||
|
||||
/// <summary>
|
||||
/// Sent client -> server to to tell the server that we started building
|
||||
/// a structure-construction.
|
||||
/// </summary>
|
||||
[Serializable, NetSerializable]
|
||||
protected class TryStartStructureConstructionMessage : ComponentMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// Position to start building.
|
||||
/// </summary>
|
||||
public readonly GridCoordinates Location;
|
||||
|
||||
/// <summary>
|
||||
/// The construction prototype to start building.
|
||||
/// </summary>
|
||||
public readonly string PrototypeName;
|
||||
|
||||
public readonly Angle Angle;
|
||||
|
||||
/// <summary>
|
||||
/// Identifier to be sent back in the acknowledgement so that the client can clean up its ghost.
|
||||
/// </summary>
|
||||
public readonly int Ack;
|
||||
|
||||
public TryStartStructureConstructionMessage(GridCoordinates loc, string prototypeName, Angle angle, int ack)
|
||||
{
|
||||
Directed = true;
|
||||
Location = loc;
|
||||
PrototypeName = prototypeName;
|
||||
Angle = angle;
|
||||
Ack = ack;
|
||||
}
|
||||
}
|
||||
|
||||
/// <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
|
||||
{
|
||||
public readonly int Ack;
|
||||
|
||||
public AckStructureConstructionMessage(int ack)
|
||||
{
|
||||
Directed = true;
|
||||
Ack = ack;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user