Files
tbd-station-14/Content.Server/GameObjects/Components/Mobs/Speech/BackwardsAccentComponent.cs
Exp c665e66318 Accent System (#1892)
* First Accent Prototype

* -RegisterSystem
-Fixed addaccent cmd
-Spanish accent

* -list is now ?
-Checks if the accent is already added
-Made components public

* owo whats this

* special word filter

* Eeeeeeeeee

* Better?

* -Use a delegate func
-Made some funcs not static
-Moved SentenceRegex

* InjectDependencies

* Name change?

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
2020-08-25 17:09:39 +02:00

19 lines
464 B
C#

using Robust.Shared.GameObjects;
using System;
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);
}
}
}