Example #1
0
        public ImpersonateHf(List <Property> properties, World world)
            : base(properties, world)
        {
            foreach (Property property in properties)
            {
                switch (property.Name)
                {
                case "trickster_hfid": Trickster = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break;

                case "cover_hfid": Cover = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break;

                case "target_enid": Target = world.GetEntity(Convert.ToInt32(property.Value)); break;
                }
            }

            Trickster.AddEvent(this);
            Cover.AddEvent(this);
            Target.AddEvent(this);
        }