Exemplo n.º 1
0
        public override void InUse()
        {
            Player player = Handler.player;

            for (float k = 0; k <= (float)Math.PI * 2; k += (float)Math.PI / 40)
            {
                int      proj = Projectile.NewProjectile(player.Center + new Vector2((float)Math.Cos(k), (float)Math.Sin(k)), new Vector2((float)Math.Cos(k), (float)Math.Sin(k)) * 5, ModContent.ProjectileType <Purifier>(), 0, 0, player.whoAmI);
                Purifier pur  = Main.projectile[proj].modProjectile as Purifier;
                pur.start = player.Center;
                LegendWorld.PureTiles.Add(player.Center / 16);
            }
            Active = false;
            OnExit();
        }
Exemplo n.º 2
0
        private void CreateObjects()
        {
            for (int i = 0; i < m_size; i++)
            {
                var purifier = new Purifier();
                var pos      = new Vector2(i * 2, 1);

                new Glyph(this, pos, Direction.SW, GlyphType.Purification);

                // Use a piston for the first arm as we also use it to move atoms between the cells of the glyph
                var armType = (i == 0) ? MechanismType.Piston : MechanismType.Arm1;
                purifier.BigArm   = new Arm(this, pos.Add(0, 1), Direction.SW, armType, extension: 2);
                purifier.SmallArm = new Arm(this, pos.Add(1, 0), Direction.SW, MechanismType.Arm1);

                m_purifiers.Add(purifier);
            }

            OutputArm = new Arm(this, new Vector2(m_size * 2 + 3, 0), Direction.W, MechanismType.Arm1, extension: 3);
        }
        /// <summary>
        /// Converts the string representation of the <paramref name="input"/>
        /// object to a <see cref="Uri"/> instance.
        /// </summary>
        /// <param name="input">
        /// The object to convert.
        /// </param>
        /// <returns>
        /// Result of the conversion.
        /// </returns>
        /// <exception cref="InvalidDataException">
        /// The <paramref name="input"/> does not represent a <see cref="Uri"/>.
        /// </exception>
        public override Uri Convert(object input)
        {
            var value = input as Uri;

            if (value != null)
            {
                return(value);
            }

            if (Uri.TryCreate(input.ToString(), UriKind.RelativeOrAbsolute, out value))
            {
                if (Purifier != null)
                {
                    Purifier.Purify(value);
                }

                return(value);
            }

            throw NewInvalidDataException(input);
        }
Exemplo n.º 4
0
 public void MeTest4()
 => Assert.AreEqual("公僕ぷり", Purifier.Purify("公僕"));
Exemplo n.º 5
0
 public void MeTest3()
 => Assert.AreEqual("無我ぷり", Purifier.Purify("無我"));
Exemplo n.º 6
0
 public void MeTest2()
 => Assert.AreEqual("私ぷり", Purifier.Purify("我"));
Exemplo n.º 7
0
 public void RemovingTest2()
 => Assert.AreEqual("完璧ぷり", Purifier.Purify("完璧だ"));
Exemplo n.º 8
0
 public void YoTest3()
 => Assert.AreEqual("問題ないぷりよ", Purifier.Purify("問題ないことよ"));
Exemplo n.º 9
0
 public void YoTest1()
 => Assert.AreEqual("横暴ぷりよ!", Purifier.Purify("横暴よ!"));
Exemplo n.º 10
0
 public void NounTest3()
 => Assert.AreEqual("みれぃっぷり!", Purifier.Purify("みれぃ!"));
Exemplo n.º 11
0
 public void WeTest1()
 => Assert.AreEqual("私たちの新曲ぷり。", Purifier.Purify("私達の新曲。"));
Exemplo n.º 12
0
 public void RemovingTest7()
 => Assert.AreEqual("美味しいぷり", Purifier.Purify("美味しいの"));
Exemplo n.º 13
0
 public void RemovingTest6()
 => Assert.AreEqual("良いぷり…", Purifier.Purify("良いな…"));
Exemplo n.º 14
0
 public void RemovingTest5()
 => Assert.AreEqual("怪盗ぷり", Purifier.Purify("怪盗さ"));
Exemplo n.º 15
0
 public void RemovingTest4()
 => Assert.AreEqual("待っていたぷり", Purifier.Purify("待っていたわ"));
Exemplo n.º 16
0
 public void RemovingTest3()
 => Assert.AreEqual("小鳥ちゃんぷり", Purifier.Purify("小鳥ちゃんだわ"));
Exemplo n.º 17
0
 public void NounTest1()
 => Assert.AreEqual("みれぃぷり", Purifier.Purify("みれぃ"));
Exemplo n.º 18
0
 public void NounTest2()
 => Assert.AreEqual("みれぃぷり。", Purifier.Purify("みれぃ。"));
Exemplo n.º 19
0
 public void TestMethod1()
 {
     Console.WriteLine(Purifier.Purify("僕はみれぃ、我々はアイドルです。"));
 }
Exemplo n.º 20
0
 public void NeTest1()
 => Assert.AreEqual("ななみちゃんぷりね。", Purifier.Purify("ななみちゃんね。"));
Exemplo n.º 21
0
 public void WeTest2()
 => Assert.AreEqual("いま私たちぷり", Purifier.Purify("いま僕たち"));
Exemplo n.º 22
0
 public void YoTest2()
 => Assert.AreEqual("検事ぷりよ", Purifier.Purify("検事だよ"));
Exemplo n.º 23
0
 public void MeTest1()
 => Assert.AreEqual("私が可愛いってことぷり", Purifier.Purify("僕が可愛いってこと"));
Exemplo n.º 24
0
 public void WeTest5()
 => Assert.AreEqual("私たちぷり", Purifier.Purify("我々"));
Exemplo n.º 25
0
 public void RemovingTest1()
 => Assert.AreEqual("解散ぷり", Purifier.Purify("解散です"));