Exemplo n.º 1
0
 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()));
        }
Exemplo n.º 3
0
        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());
                }
            }
        }
Exemplo n.º 4
0
        public IEnumerable <int> GetTranslatedIds()
        {
            var dict = AttachedObject.GetValue <Dictionary <int, OWTreeNode <NomaiTextLine> > >("_idToNodeDict");

            return(dict.Keys.Where(key => AttachedObject.IsTranslated(key)));
        }