Refactor AccentManager to be an entity system, makes accents ECS. (#4825)
This commit is contained in:
committed by
GitHub
parent
55b4edb895
commit
4c80fb9586
@@ -1,18 +1,10 @@
|
||||
using System;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.Speech.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
public class BackwardsAccentComponent : Component, IAccentComponent
|
||||
public class BackwardsAccentComponent : Component
|
||||
{
|
||||
public override string Name => "BackwardsAccent";
|
||||
|
||||
public string Accentuate(string message)
|
||||
{
|
||||
var arr = message.ToCharArray();
|
||||
Array.Reverse(arr);
|
||||
return new string(arr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user