* Engine namespace changes.
* Automated remove redundant using statements.
* Simplified Graphics namespace.
* Apparently the container system stores full type names in the map file.😞 This updates those names.
* API Changes to LocalizationManager.LoadCulture.
* Update submodule to v0.3.2
35 lines
1.3 KiB
C#
35 lines
1.3 KiB
C#
using System.Collections.Generic;
|
|
using Content.Shared.GameObjects.Components.Body.Mechanism;
|
|
using Content.Shared.GameObjects.Components.Body.Part;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Shared.GameObjects.Components.Body.Surgery
|
|
{
|
|
/// <summary>
|
|
/// Interface representing an entity capable of performing surgery,
|
|
/// such as a circular saw.
|
|
/// </summary>
|
|
public interface ISurgeon
|
|
{
|
|
public delegate void MechanismRequestCallback(
|
|
IMechanism target,
|
|
IBodyPartContainer container,
|
|
ISurgeon surgeon,
|
|
IEntity performer);
|
|
|
|
/// <summary>
|
|
/// How long it takes to perform a single surgery step in seconds.
|
|
/// </summary>
|
|
public float BaseOperationTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// When performing a surgery, the <see cref="SurgeryDataComponent"/>
|
|
/// may sometimes require selecting from a set of
|
|
/// <see cref="IMechanism"/>s to operate on.
|
|
/// This function is called in that scenario, and it is expected that you call
|
|
/// the callback with one <see cref="IMechanism"/> from the provided list.
|
|
/// </summary>
|
|
public void RequestMechanism(IEnumerable<IMechanism> options, MechanismRequestCallback callback);
|
|
}
|
|
}
|