////////////////

        protected override void Receive()
        {
            var myworld = ModContent.GetInstance <AmbushesWorld>();

            Ambush ambush = Ambush.CreateType(this.AmbushType, this.TilePositionX, this.TilePositionY, this.IsEntrapment);

            myworld.AmbushMngr.ArmAmbush(ambush);
        }
Exemplo n.º 2
0
        ////////////////

        protected override void ReceiveReply()
        {
            var    myworld = ModContent.GetInstance <AmbushesWorld>();
            Ambush ambush;

            for (int i = 0; i < this.AmbushTypes.Length; i++)
            {
                ambush = Ambush.CreateType(this.AmbushTypes[i], this.TilePositionXs[i], this.TilePositionYs[i], this.IsEntrapments[i]);
                myworld.AmbushMngr.ArmAmbush(ambush);
            }
        }