Example #1
0
        internal bool InvokeNpcTransformation(int npcId)
        {
            NpcTransformationEventArgs args = new NpcTransformationEventArgs
            {
                NpcId = npcId
            };

            this.NpcTransform.Invoke(args);
            return(args.Handled);
        }
Example #2
0
 private void OnTransform(NpcTransformationEventArgs args)
 {
     if (args.Handled)
         return;
     if (filterStorage.FilteredNPCs.Contains(Main.npc[args.NpcId].netID))
     {
         Main.npc[args.NpcId].active = false;
     }
 }
Example #3
0
		internal bool InvokeNpcTransformation(int npcId)
		{
			NpcTransformationEventArgs args = new NpcTransformationEventArgs
			{
				NpcId = npcId
			};

			this.NpcTransform.Invoke(args);
			return args.Handled;
		}
Example #4
0
 private void OnTransform(NpcTransformationEventArgs args)
 {
     if (args.Handled)
         return;
     if (blockedNPC.Contains(Main.npc[args.NpcId].netID))
     {
         Main.npc[args.NpcId].active = false;
     }
 }