public void HandleSetAsTranslated(int id) { if (AttachedObject.IsTranslated(id)) { return; } AttachedObject.SetAsTranslated(id); }
public IEnumerable <int> GetTranslatedIds() { var rings = AttachedObject.GetValue <NomaiVesselComputerRing[]>("_computerRings"); return(rings .Where(ring => AttachedObject.IsTranslated(ring.GetEntryID())) .Select(ring => ring.GetEntryID())); }
public IEnumerable <int> GetTranslatedIds() { var activeList = AttachedObject.GetValue <List <NomaiComputerRing> >("_activeRingList"); foreach (var item in activeList) { if (AttachedObject.IsTranslated(item.GetEntryID())) { yield return(item.GetEntryID()); } } var inactiveList = AttachedObject.GetValue <List <NomaiComputerRing> >("_inactiveRingList"); foreach (var item in inactiveList) { if (AttachedObject.IsTranslated(item.GetEntryID())) { yield return(item.GetEntryID()); } } }
public IEnumerable <int> GetTranslatedIds() { var dict = AttachedObject.GetValue <Dictionary <int, OWTreeNode <NomaiTextLine> > >("_idToNodeDict"); return(dict.Keys.Where(key => AttachedObject.IsTranslated(key))); }