Files
crystall-punk-14/Content.Server/Rotation/HardRotateVerbs.cs

43 lines
1.2 KiB
C#
Raw Normal View History

2021-06-09 22:19:39 +02:00
namespace Content.Server.Rotation
2021-02-22 00:46:27 +01:00
{
// Mapping tools
// Uncomment if you need them, I guess.
/*
[GlobalVerb]
public sealed class HardRotateCcwVerb : GlobalVerb
{
public override bool RequireInteractionRange => false;
public override void GetData(IEntity user, IEntity target, VerbData data)
{
data.Visibility = VerbVisibility.Visible;
data.Text = "Rotate CCW";
2021-03-14 14:40:01 +01:00
data.IconTexture = "/Textures/Interface/VerbIcons/rotate_ccw.svg.192dpi.png";
2021-02-22 00:46:27 +01:00
}
public override void Activate(IEntity user, IEntity target)
{
target.Transform.LocalRotation += Math.PI / 2;
}
}
[GlobalVerb]
public sealed class HardRotateCwVerb : GlobalVerb
{
public override bool RequireInteractionRange => false;
public override void GetData(IEntity user, IEntity target, VerbData data)
{
data.Visibility = VerbVisibility.Visible;
data.Text = "Rotate CW";
2021-03-14 14:40:01 +01:00
data.IconTexture = "/Textures/Interface/VerbIcons/rotate_cw.svg.192dpi.png";
2021-02-22 00:46:27 +01:00
}
public override void Activate(IEntity user, IEntity target)
{
target.Transform.LocalRotation -= Math.PI / 2;
}
}*/
}