Ejemplo n.º 1
0
        ////////////////

        protected override void ReceiveOnClient()
        {
            NPC npc   = Main.npc[this.NpcWho];
            var mynpc = npc.GetGlobalNPC <ElementsNPC>();

            mynpc.IsInitialized = true;
            mynpc.Elements      = new HashSet <ElementDefinition>(
                this.ElementNames
                .Select(name => ElementDefinition.GetElementByName(name))
                );
        }