* 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>
19 lines
464 B
C#
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);
|
|
}
|
|
}
|
|
}
|