public void AddEffect(PostProcessingEffectType type, float duration)
        {
            PostProcessingEffect e;

            switch (type)
            {
            case PostProcessingEffectType.Blur:
                e            = new BlurPostProcessingEffect(duration);
                e.OnExpired += EffectExpired;
                _effects.Add(e);
                break;

            case PostProcessingEffectType.Death:
                e            = new DeathPostProcessingEffect(duration);
                e.OnExpired += EffectExpired;
                _effects.Add(e);
                break;

            case PostProcessingEffectType.Acid:
                e            = new AcidPostProcessingEffect(duration);
                e.OnExpired += EffectExpired;
                _effects.Add(e);
                break;
            }
        }
        public void AddPostProcessingEffect(PostProcessingEffectType type, float duration)
        {
            NetOutgoingMessage m = IoCManager.Resolve <ISS14NetServer>().CreateMessage();

            m.Write((byte)NetMessage.PlayerSessionMessage);
            m.Write((byte)PlayerSessionMessage.AddPostProcessingEffect);
            m.Write((int)type);
            m.Write(duration);
            IoCManager.Resolve <ISS14NetServer>().SendMessage(m, ConnectedClient, NetDeliveryMethod.ReliableUnordered);
        }
 public void AddEffect(PostProcessingEffectType type, float duration)
 {
     PostProcessingEffect e;
     switch (type)
     {
         case PostProcessingEffectType.Blur:
             e = new BlurPostProcessingEffect(duration);
             e.OnExpired += EffectExpired;
             _effects.Add(e);
             break;
         case PostProcessingEffectType.Death:
             e = new DeathPostProcessingEffect(duration);
             e.OnExpired += EffectExpired;
             _effects.Add(e);
             break;
         //case PostProcessingEffectType.Acid:
         //    e = new AcidPostProcessingEffect(duration);
         //    e.OnExpired += EffectExpired;
         //    _effects.Add(e);
         //    break;
     }
 }
 public void AddPostProcessingEffect(PostProcessingEffectType type, float duration)
 {
     NetOutgoingMessage m = IoCManager.Resolve<ISS14NetServer>().CreateMessage();
     m.Write((byte) NetMessage.PlayerSessionMessage);
     m.Write((byte) PlayerSessionMessage.AddPostProcessingEffect);
     m.Write((int) type);
     m.Write(duration);
     IoCManager.Resolve<ISS14NetServer>().SendMessage(m, ConnectedClient, NetDeliveryMethod.ReliableUnordered);
 }