* Engine namespace changes.
* Automated remove redundant using statements.
* Simplified Graphics namespace.
* Apparently the container system stores full type names in the map file.😞 This updates those names.
* API Changes to LocalizationManager.LoadCulture.
* Update submodule to v0.3.2
25 lines
645 B
C#
25 lines
645 B
C#
using Content.Server.GameObjects.Components.Buckle;
|
|
using Content.Shared.Alert;
|
|
using Robust.Shared.Serialization;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Content.Server.Alert.Click
|
|
{
|
|
/// <summary>
|
|
/// Unbuckles if player is currently buckled.
|
|
/// </summary>
|
|
[UsedImplicitly]
|
|
public class Unbuckle : IAlertClick
|
|
{
|
|
void IExposeData.ExposeData(ObjectSerializer serializer) { }
|
|
|
|
public void AlertClicked(ClickAlertEventArgs args)
|
|
{
|
|
if (args.Player.TryGetComponent(out BuckleComponent buckle))
|
|
{
|
|
buckle.TryUnbuckle(args.Player);
|
|
}
|
|
}
|
|
}
|
|
}
|