public FxCubeEmitter(AlchemyNode ale) : base(ale) { AleParameter temp; if (ale.TryGetParameter("CubeEmitter_Width", out temp)) { Width = (AlchemyCurveAnimation)temp.Value; } if (ale.TryGetParameter("CubeEmitter_Height", out temp)) { Height = (AlchemyCurveAnimation)temp.Value; } if (ale.TryGetParameter("CubeEmitter_Depth", out temp)) { Depth = (AlchemyCurveAnimation)temp.Value; } if (ale.TryGetParameter("CubeEmitter_MinSpread", out temp)) { MinSpread = (AlchemyCurveAnimation)temp.Value; } if (ale.TryGetParameter("CubeEmitter_MaxSpread", out temp)) { MaxSpread = (AlchemyCurveAnimation)temp.Value; } }
public FxRectAppearance(AlchemyNode ale) : base(ale) { AleParameter temp; if (ale.TryGetParameter("RectApp_CenterOnPos", out temp)) { CenterOnPos = (bool)temp.Value; } if (ale.TryGetParameter("RectApp_ViewingAngleFade", out temp)) { ViewingAngleFade = (bool)temp.Value; } if (ale.TryGetParameter("RectApp_Scale", out temp)) { Scale = (AlchemyFloatAnimation)temp.Value; } if (ale.TryGetParameter("RectApp_Length", out temp)) { Length = (AlchemyFloatAnimation)temp.Value; } if (ale.TryGetParameter("RectApp_Width", out temp)) { Width = (AlchemyFloatAnimation)temp.Value; } }
public FxOrientedAppearance(AlchemyNode ale) : base(ale) { AleParameter temp; if (ale.TryGetParameter("OrientedApp_Height", out temp)) { Height = (AlchemyFloatAnimation)temp.Value; } if (ale.TryGetParameter("OrientedApp_Width", out temp)) { Width = (AlchemyFloatAnimation)temp.Value; } }
public FxSphereEmitter(AlchemyNode ale) : base(ale) { AleParameter temp; if (ale.TryGetParameter("SphereEmitter_MinRadius", out temp)) { MinRadius = (AlchemyCurveAnimation)temp.Value; } if (ale.TryGetParameter("SphereEmitter_MaxRadius", out temp)) { MaxRadius = (AlchemyCurveAnimation)temp.Value; } }
public FLBeamAppearance(AlchemyNode ale) : base(ale) { AleParameter temp; if (ale.TryGetParameter("BeamApp_DupeFirstParticle", out temp)) { DupeFirstParticle = (bool)temp.Value; } if (ale.TryGetParameter("BeamApp_DisablePlaceholder", out temp)) { DisablePlaceholder = (bool)temp.Value; } if (ale.TryGetParameter("BeamApp_LineAppearance", out temp)) { LineAppearance = (bool)temp.Value; } }
public FxEmitter(AlchemyNode ale) : base(ale) { AleParameter temp; if (ale.TryGetParameter("Emitter_InitialPartices", out temp)) { InitialParticles = (int)temp.Value; } if (ale.TryGetParameter("Emitter_Frequency", out temp)) { Frequency = (AlchemyCurveAnimation)temp.Value; } if (ale.TryGetParameter("Emitter_EmitCount", out temp)) { EmitCount = (AlchemyCurveAnimation)temp.Value; } if (ale.TryGetParameter("Emitter_InitLifeSpan", out temp)) { InitLifeSpan = (AlchemyCurveAnimation)temp.Value; } if (ale.TryGetParameter("Emitter_Pressure", out temp)) { Pressure = (AlchemyCurveAnimation)temp.Value; } if (ale.TryGetParameter("Emitter_VelocityApproach", out temp)) { VelocityApproach = (AlchemyCurveAnimation)temp.Value; } if (ale.TryGetParameter("Emitter_MaxParticles", out temp)) { MaxParticles = (AlchemyCurveAnimation)temp.Value; } }
public FxNode(AlchemyNode ale) { Name = ale.Name; AleParameter temp; if (ale.TryGetParameter("Node_Name", out temp)) { NodeName = (string)temp.Value; CRC = CrcTool.FLAleCrc(NodeName); } if (ale.TryGetParameter("Node_Transform", out temp)) { Transform = (AlchemyTransform)temp.Value; } else { Transform = new AlchemyTransform(); } if (ale.TryGetParameter("Node_LifeSpan", out temp)) { NodeLifeSpan = (float)temp.Value; } }
public FxBasicAppearance(AlchemyNode ale) : base(ale) { AleParameter temp; if (ale.TryGetParameter("BasicApp_QuadTexture", out temp)) { QuadTexture = (bool)temp.Value; } if (ale.TryGetParameter("BasicApp_TriTexture", out temp)) { if ((bool)temp.Value) { FLLog.Warning("ALE", "BasicApp_TriTexture not implemented"); } } if (ale.TryGetParameter("BasicApp_MotionBlur", out temp)) { MotionBlur = (bool)temp.Value; } if (ale.TryGetParameter("BasicApp_Color", out temp)) { Color = (AlchemyColorAnimation)temp.Value; } if (ale.TryGetParameter("BasicApp_Alpha", out temp)) { Alpha = (AlchemyFloatAnimation)temp.Value; } if (ale.TryGetParameter("BasicApp_HtoVAspect", out temp)) { HToVAspect = (AlchemyFloatAnimation)temp.Value; } if (ale.TryGetParameter("BasicApp_Rotate", out temp)) { Rotate = (AlchemyFloatAnimation)temp.Value; } if (ale.TryGetParameter("BasicApp_TexName", out temp)) { Texture = (string)temp.Value; } if (ale.TryGetParameter("BasicApp_UseCommonTexFrame", out temp)) { UseCommonAnimation = (bool)temp.Value; } if (ale.TryGetParameter("BasicApp_TexFrame", out temp)) { Animation = (AlchemyFloatAnimation)temp.Value; } if (ale.TryGetParameter("BasicApp_CommonTexFrame", out temp)) { CommonAnimation = (AlchemyCurveAnimation)temp.Value; } if (ale.TryGetParameter("BasicApp_FlipTexU", out temp)) { FlipHorizontal = (bool)temp.Value; } if (ale.TryGetParameter("BasicApp_FlipTexV", out temp)) { FlipVertical = (bool)temp.Value; } if (ale.TryGetParameter("BasicApp_Size", out temp)) { Size = (AlchemyFloatAnimation)temp.Value; } if (ale.TryGetParameter("BasicApp_BlendInfo", out temp)) { BlendInfo = BlendMap.Map((Tuple <uint, uint>)temp.Value); } }