2021-07-17 02:37:09 +02:00
|
|
|
|
using System;
|
2020-11-22 08:38:07 +01:00
|
|
|
|
using Robust.Shared.Utility;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Objectives.Interfaces
|
|
|
|
|
|
{
|
2021-03-05 01:08:38 +01:00
|
|
|
|
public interface IObjectiveCondition : IEquatable<IObjectiveCondition>
|
2020-11-22 08:38:07 +01:00
|
|
|
|
{
|
2020-12-01 17:05:19 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Returns a copy of the IObjectiveCondition which is assigned to the mind.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="mind">Mind to assign to.</param>
|
|
|
|
|
|
/// <returns>The new IObjectiveCondition.</returns>
|
2021-06-09 22:19:39 +02:00
|
|
|
|
IObjectiveCondition GetAssigned(Mind.Mind mind);
|
2020-12-01 17:05:19 +01:00
|
|
|
|
|
2020-11-22 08:38:07 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Returns the title of the condition.
|
|
|
|
|
|
/// </summary>
|
2020-12-01 17:05:19 +01:00
|
|
|
|
string Title { get; }
|
2020-11-22 08:38:07 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Returns the description of the condition.
|
|
|
|
|
|
/// </summary>
|
2020-12-01 17:05:19 +01:00
|
|
|
|
string Description { get; }
|
2020-11-22 08:38:07 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Returns a SpriteSpecifier to be used as an icon for the condition.
|
|
|
|
|
|
/// </summary>
|
2020-12-01 17:05:19 +01:00
|
|
|
|
SpriteSpecifier Icon { get; }
|
2020-11-22 08:38:07 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2020-12-01 17:05:19 +01:00
|
|
|
|
/// Returns the current progress of the condition in % from 0 to 1.
|
2020-11-22 08:38:07 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>Current progress in %.</returns>
|
2020-12-01 17:05:19 +01:00
|
|
|
|
float Progress { get; }
|
2020-11-22 08:38:07 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Returns a difficulty of the condition.
|
|
|
|
|
|
/// </summary>
|
2020-12-01 17:05:19 +01:00
|
|
|
|
float Difficulty { get; }
|
2020-11-22 08:38:07 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|