mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-04-17 17:42:35 +00:00
26 lines
529 B
C#
26 lines
529 B
C#
using QSB.WorldSync;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace QSB.Tools.TranslatorTool.TranslationSync.WorldObjects
|
|
{
|
|
internal class QSBWallText : WorldObject<NomaiWallText>
|
|
{
|
|
public void HandleSetAsTranslated(int id)
|
|
{
|
|
if (AttachedObject.IsTranslated(id))
|
|
{
|
|
return;
|
|
}
|
|
|
|
AttachedObject.SetAsTranslated(id);
|
|
}
|
|
|
|
public IEnumerable<int> GetTranslatedIds()
|
|
{
|
|
var dict = AttachedObject._idToNodeDict;
|
|
return dict.Keys.Where(key => AttachedObject.IsTranslated(key));
|
|
}
|
|
}
|
|
}
|