示例#1
0
 public EffectValue(string Name, Effect Value, string Path, EffectHolderType HolderType)
     : base(Name)
 {
     this.HolderType = HolderType;
     this.Value      = Value;
     this.Path       = Path;
 }
示例#2
0
 public EffectValue(string Name, EffectHolderType HolderType)
     : base(Name)
 {
     this.HolderType = HolderType;
     this.Value      = null;
     this.Path       = "";
 }
        public static EffectHolder ReturnHolderByType(EffectHolderType HolderType, Effect Value)
        {
            switch (HolderType)
            {
            case EffectHolderType.Basic3D: return(new _3DEffect().Create(Value));

            case EffectHolderType.Deferred3D: return(new Deferred3DEffect().Create(Value));

            case EffectHolderType.DeferredLight: return(new DeferredLightEffect().Create(Value));

            case EffectHolderType.Lit3D: return(new Lit3DEffect().Create(Value));
            }
            return(null);
        }
示例#4
0
 public EffectValue(string Name, string Path, EffectHolderType HolderType)
     : base(Name)
 {
     this.HolderType = HolderType;
     this.Value      = LoadEffect(Path);
 }