* Don't use invalid defaults for loadouts At the time it made more sense but now with species specific stuff it's better to have nothing. * Loadout SetDefault only applies valid loadouts
22 lines
610 B
C#
22 lines
610 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using Robust.Shared.Player;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Content.Shared.Preferences.Loadouts.Effects;
|
|
|
|
[ImplicitDataDefinitionForInheritors]
|
|
public abstract partial class LoadoutEffect
|
|
{
|
|
/// <summary>
|
|
/// Tries to validate the effect.
|
|
/// </summary>
|
|
public abstract bool Validate(
|
|
HumanoidCharacterProfile profile,
|
|
RoleLoadout loadout,
|
|
ICommonSession? session,
|
|
IDependencyCollection collection,
|
|
[NotNullWhen(false)] out FormattedMessage? reason);
|
|
|
|
public virtual void Apply(RoleLoadout loadout) {}
|
|
}
|