Esempio n. 1
0
        private void OnAnchor(ModuleAnchor anchor, bool anchored, bool fromAfterTechPopulate)
        {
            BuffController buff = BuffController.MakeNewIfNone(this.block.tank);
            List <string>  list = new List <string>();

            list.AddRange(m_BuffType);
            list.Add("Anchor");
            buff.Update(list.ToArray());
        }
Esempio n. 2
0
 void ChangeAnchorEmission(ModuleAnchor _, bool isAnchored, bool __)
 {
     if (isAnchored)
     {
         SetEmissionOn();
     }
     else
     {
         SetEmissionOff();
     }
 }
Esempio n. 3
0
 private void OnAnchorStatusChanged(ModuleAnchor anchor, bool anchored, bool fromAfterTechPopulate)
 {
     this.DebugPrint("<MPM> OnAnchorStatusChanged");
     if (anchored)
     {
         this.playSelectedParticles(this.onAnchor, "  ", "<MPM> Playing anchored particles");
     }
     else
     {
         this.stopSelectedParticles(this.onAnchor, "  ", "<MPM> Stopping anchored particles");
     }
     return;
 }
Esempio n. 4
0
        private void OnAnchor(ModuleAnchor anchor, bool anchored, bool fromAfterTechPopulate)
        {
            BuffControllerMk2 buff = BuffControllerMk2.MakeNewIfNone(this.block.tank);
            List <string>     list = new List <string>();

            for (int i = 0; i < m_BuffPath.Length; i++)
            {
                if (m_NeedsToBeAnchored[i] == true)
                {
                    List <string> splitPath = m_BuffPath[i].Split('.').ToList();
                    Type          component = typeof(TankBlock).Assembly.GetType(splitPath[0]);
                    if (buff.pathToSegment.ContainsKey(m_BuffPath[i]) && buff.typeToBlock.ContainsKey(component))
                    {
                        buff.pathToSegment[m_BuffPath[i]].ManipulateObj(buff.typeToBlock[component], "UPDATE");
                    }
                }
            }
        }
Esempio n. 5
0
 private void OnAnchor(ModuleAnchor _, bool IsAnchored, bool __)
 {
     SetSpinners(IsAnchored != Invert);
 }