public EffectValue(string Name, Effect Value, string Path, EffectHolderType HolderType) : base(Name) { this.HolderType = HolderType; this.Value = Value; this.Path = Path; }
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); }
public EffectValue(string Name, string Path, EffectHolderType HolderType) : base(Name) { this.HolderType = HolderType; this.Value = LoadEffect(Path); }