Esempio n. 1
0
        public LightEffectHandler(WorldElement parent, LightEffectHandler copy)
        {
            Parent = parent;

            Effect = (LightEffect)copy.Effect.Clone();
            BasePosition = copy.BasePosition;

            Update();
        }
Esempio n. 2
0
        void AddLightEffect(LightEffectHandler lightEffect)
        {
            LightEffects.Add(lightEffect);

            if (Map != null)
                Map.AddStaticLightEffect(lightEffect.Effect);
        }