* basic implementation * minor fixes * objectives temp commit * proper onstart bind * changes all conditions to be bound to a mind-instance * oops * oops v2 * adds possiblity to enable duplicate assignment of objective equal objectives are unable to be added * minor fixes, adds greentext * refactors incompatability to be defined by requirements * fixes a wrong whitespace * minor fix * addressed reviews v1 * address reviews v2 Co-authored-by: Exp <theexp111@gmail.com> * final sweep * adds/refactors traitor&sss cvars * Update Content.Server/Mobs/Mind.cs * never trust github web * adds datasets & makes codewords use them * addresses exp's reviews * addressed zumos reviews Co-authored-by: Paul <ritter.paul1+git@googlemail.com> Co-authored-by: Exp <theexp111@gmail.com>
48 lines
1.4 KiB
C#
48 lines
1.4 KiB
C#
#nullable enable
|
|
using System;
|
|
using Content.Server.Mobs;
|
|
using Robust.Shared.Interfaces.Serialization;
|
|
using Robust.Shared.Serialization;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Content.Server.Objectives.Interfaces
|
|
{
|
|
public interface IObjectiveCondition : IExposeData, IEquatable<IObjectiveCondition>
|
|
{
|
|
/// <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>
|
|
IObjectiveCondition GetAssigned(Mind mind);
|
|
|
|
/// <summary>
|
|
/// Returns the title of the condition.
|
|
/// </summary>
|
|
string Title { get; }
|
|
|
|
/// <summary>
|
|
/// Returns the description of the condition.
|
|
/// </summary>
|
|
string Description { get; }
|
|
|
|
/// <summary>
|
|
/// Returns a SpriteSpecifier to be used as an icon for the condition.
|
|
/// </summary>
|
|
SpriteSpecifier Icon { get; }
|
|
|
|
/// <summary>
|
|
/// Returns the current progress of the condition in % from 0 to 1.
|
|
/// </summary>
|
|
/// <returns>Current progress in %.</returns>
|
|
float Progress { get; }
|
|
|
|
/// <summary>
|
|
/// Returns a difficulty of the condition.
|
|
/// </summary>
|
|
float Difficulty { get; }
|
|
|
|
void IExposeData.ExposeData(ObjectSerializer serializer){}
|
|
}
|
|
}
|