Files
crystall-punk-14/Content.Shared/_CP14/Workbench/WorkbenchCraftCondition.cs
Red 2fc34bface Workbench UI improve (#1508)
* grid workbench

* categorization

* Update CP14WorkbenchWindow.xaml.cs

* conditions

* categories
2025-07-08 00:42:34 +03:00

52 lines
1.4 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using JetBrains.Annotations;
using Robust.Shared.Prototypes;
using Robust.Shared.Utility;
namespace Content.Shared._CP14.Workbench;
[ImplicitDataDefinitionForInheritors]
[MeansImplicitUse]
public abstract partial class CP14WorkbenchCraftCondition
{
public abstract bool CheckCondition(
EntityManager entManager,
IPrototypeManager protoManager,
EntityUid workbench,
EntityUid user);
public virtual void PostCraft(
EntityManager entManager,
IPrototypeManager protoManager,
EntityUid workbench,
EntityUid user)
{
}
public abstract void FailedEffect(
EntityManager entManager,
IPrototypeManager protoManager,
EntityUid workbench,
EntityUid user);
/// <summary>
/// This text will be displayed in the description of the craft conditions. Write something like The workbench must be filled to 100% mana. here
/// </summary>
public virtual string GetConditionTitle(
EntityManager entManager,
IPrototypeManager protoManager,
EntityUid workbench,
EntityUid user)
{
return string.Empty;
}
/// <summary>
/// You can specify the texture directly. Return null to disable.
/// </summary>
public virtual SpriteSpecifier? GetConditionTexture(IPrototypeManager protoManager)
{
return null;
}
}