using OWML.Utils; using QSB.WorldSync; using System.Collections.Generic; using System.Linq; namespace QSB.Tools.TranslatorTool.TranslationSync.WorldObjects { internal class QSBVesselComputer : WorldObject { public void HandleSetAsTranslated(int id) { if (AttachedObject.IsTranslated(id)) { return; } AttachedObject.SetAsTranslated(id); } public IEnumerable GetTranslatedIds() { var rings = AttachedObject.GetValue("_computerRings"); return rings .Where(ring => AttachedObject.IsTranslated(ring.GetEntryID())) .Select(ring => ring.GetEntryID()); } } }