2020-09-13 14:23:52 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using Robust.Shared.GameObjects;
|
2020-08-25 17:09:39 +02:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.GameObjects.Components.Mobs.Speech
|
|
|
|
|
|
{
|
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
|
public class BackwardsAccentComponent : Component, IAccentComponent
|
|
|
|
|
|
{
|
|
|
|
|
|
public override string Name => "BackwardsAccent";
|
|
|
|
|
|
|
|
|
|
|
|
public string Accentuate(string message)
|
|
|
|
|
|
{
|
|
|
|
|
|
var arr = message.ToCharArray();
|
|
|
|
|
|
Array.Reverse(arr);
|
|
|
|
|
|
return new string(arr);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|