Exemplo n.º 1
0
        internal bool InvokeNpcTransformation(int npcId)
        {
            NpcTransformationEventArgs args = new NpcTransformationEventArgs
            {
                NpcId = npcId
            };

            this.NpcTransform.Invoke(args);
            return(args.Handled);
        }
Exemplo n.º 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;
     }
 }
Exemplo n.º 3
0
		internal bool InvokeNpcTransformation(int npcId)
		{
			NpcTransformationEventArgs args = new NpcTransformationEventArgs
			{
				NpcId = npcId
			};

			this.NpcTransform.Invoke(args);
			return args.Handled;
		}
Exemplo n.º 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;
     }
 }