mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
* prediction!!! * fixes * fixes and add debug logs * fix prediction and cleanup * raise event on client + comp access * reapply power state changes * Update Content.Client/Kitchen/EntitySystems/ReagentGrinderSystem.cs Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com> * Update Content.Shared/Kitchen/Components/ReagentGrinderComponent.cs Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com> * comments and prefilled grinder protos * t --------- Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com> Co-authored-by: ScarKy0 <scarky0@onet.eu>
73 lines
1.8 KiB
C#
73 lines
1.8 KiB
C#
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Kitchen;
|
|
|
|
/// <summary>
|
|
/// Sent by the client if they want to toggle the grinder's auto mode.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class ReagentGrinderToggleAutoModeMessage() : BoundUserInterfaceMessage;
|
|
|
|
/// <summary>
|
|
/// Sent by the client if they want to start the grinder.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class ReagentGrinderStartMessage(GrinderProgram program) : BoundUserInterfaceMessage
|
|
{
|
|
public GrinderProgram Program = program;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Sent by the client if they want to eject all grindable entities within the grinder.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class ReagentGrinderEjectChamberAllMessage() : BoundUserInterfaceMessage;
|
|
|
|
/// <summary>
|
|
/// Sent by the client if they want eject a single grindable entity within the grinder.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class ReagentGrinderEjectChamberContentMessage(NetEntity entityId) : BoundUserInterfaceMessage
|
|
{
|
|
public NetEntity EntityId = entityId;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enum to be used for the grinder's appearance data.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public enum ReagentGrinderVisualState : byte
|
|
{
|
|
BeakerAttached
|
|
}
|
|
|
|
/// <summary>
|
|
/// The mode the grinder will use when activated. Grinding and juicing the same prototype will yield different results.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public enum GrinderProgram : byte
|
|
{
|
|
Grind,
|
|
Juice
|
|
}
|
|
|
|
/// <summary>
|
|
/// Key for the ReagentGrinderBoundUserInterface.
|
|
/// </summary>
|
|
[NetSerializable, Serializable]
|
|
public enum ReagentGrinderUiKey : byte
|
|
{
|
|
Key
|
|
}
|
|
|
|
/// <summary>
|
|
/// The setting of the grinder's auto mode.
|
|
/// </summary>
|
|
[NetSerializable, Serializable]
|
|
public enum GrinderAutoMode : byte
|
|
{
|
|
Off,
|
|
Grind,
|
|
Juice
|
|
}
|