public void ApplyToPoint(DPOW.Reader.Point destPoint, float t)
        {
            Ciloci.Flee.ExpressionContext c = new Ciloci.Flee.ExpressionContext();
            c.Imports.AddType(typeof(Math));
            c.Variables["t"] = t;
            if (x != string.Empty)
            {
                destPoint.X = (float)c.CompileGeneric <double>(x).Evaluate();
            }
            if (y != string.Empty)
            {
                destPoint.Y = (float)c.CompileGeneric <double>(y).Evaluate();
            }
            if (z != string.Empty)
            {
                destPoint.Z = (float)c.CompileGeneric <double>(z).Evaluate();
            }
            if (u != string.Empty)
            {
                destPoint.U = (float)c.CompileGeneric <double>(u).Evaluate();
            }
            if (v != string.Empty)
            {
                destPoint.V = (float)c.CompileGeneric <double>(v).Evaluate();
            }

            Color newColor = destPoint.Color;

            gradient.ApplyToColor(ref newColor, t);
            destPoint.Color = newColor;
        }
        public void ApplyToColor(ref Color destColor, float t)
        {
            Ciloci.Flee.ExpressionContext c = new Ciloci.Flee.ExpressionContext();
            c.Imports.AddType(typeof(Math));
            c.Variables["t"] = t;
            int aa = destColor.A;

            if (a != string.Empty)
            {
                aa = (int)c.CompileGeneric <double>(a).Evaluate();
            }
            int rr = destColor.R;

            if (r != string.Empty)
            {
                rr = (int)c.CompileGeneric <double>(r).Evaluate();
            }
            int gg = destColor.G;

            if (g != string.Empty)
            {
                gg = (int)c.CompileGeneric <double>(g).Evaluate();
            }
            int bb = destColor.B;

            if (b != string.Empty)
            {
                bb = (int)c.CompileGeneric <double>(b).Evaluate();
            }

            destColor = Color.FromArgb(aa, rr, gg, bb);
        }
        public void ApplyToIcon(DPOW.Reader.Icon destIcon, float t)
        {
            position.ApplyToPoint(destIcon.Position, t);
            size.ApplyToPoint(destIcon.Size, t);
            destIcon.WTF        = wtf;
            destIcon.Visible    = visible;
            destIcon.ShadowType = shadow;
            destIcon.Unknown1   = unk1;
            destIcon.Unknown2   = unk2;
            destIcon.UnknownS1  = uns1;

            Ciloci.Flee.ExpressionContext c = new Ciloci.Flee.ExpressionContext();
            c.Imports.AddType(typeof(Math));
            c.Variables["t"] = t;
            if (alpha != "")
            {
                destIcon.Alpha = (byte)c.CompileGeneric <double>(alpha).Evaluate();
            }
        }