Esempio n. 1
0
 protected TExSB(ExMode m, string?name) : base(m, name)
 {
     bpi       = TExPI.Box(Ex.Field(ex, "bpi"));
     scale     = Ex.Field(ex, "scale");
     direction = new TExV2(Ex.Field(ex, "direction"));
     velocity  = new TExMov(Ex.Field(ex, "movement"));
 }
Esempio n. 2
0
 public TExRV2(ExMode m, string?name) : base(m, name)
 {
     nx    = Ex.Field(ex, "nx");
     ny    = Ex.Field(ex, "ny");
     rx    = Ex.Field(ex, "rx");
     ry    = Ex.Field(ex, "ry");
     angle = Ex.Field(ex, "angle");
 }
Esempio n. 3
0
        protected TEx(ExMode mode, Type t, string?name)
        {
            if (mode == ExMode.RefParameter)
            {
                t = t.MakeByRefType();
            }
            ex = name == null?Expression.Parameter(t) : Expression.Parameter(t, name);

            this.type = ex.Type;
        }
Esempio n. 4
0
 protected TExPI(ExMode m, string?name) : base(m, name)
 {
     id     = Ex.Field(ex, "id");
     t      = Ex.Field(ex, "t");
     loc    = Ex.Field(ex, "loc");
     locx   = Ex.Field(loc, "x");
     locy   = Ex.Field(loc, "y");
     index  = Ex.Field(ex, "index");
     findex = Ex.Convert(index, ExUtils.tfloat);
 }
Esempio n. 5
0
        private static void ParseArgs(IEnumerable <string> args)
        {
            s_options = new OptionSet
            {
                { "p", "Preview mode", v => s_mode = ExMode.Preview },
                { "s=", "source folder", v => s_source = v },
                { "d=", "destination folder", v => s_destination = v },
                { "h|?|help", "Display Help menu", v => s_mode = ExMode.Help },
            };

            try
            {
                s_options.Parse(args);
            }
            catch (OptionException e)
            {
                s_Logger.LogException(LogLevel.Error, e.Message, e);
                s_hasErrors = true;
            }
        }
Esempio n. 6
0
 public TExLMov(ExMode m, string?name) : base(m, name)
 {
 }
Esempio n. 7
0
        private static void ParseArgs(IEnumerable<string> args)
        {
            s_options = new OptionSet
                {
                    {"p", "Preview mode", v => s_mode = ExMode.Preview},
                    {"s=","source folder", v=> s_source = v},
                    {"d=","destination folder", v=> s_destination = v },
                    {"h|?|help", "Display Help menu", v=> s_mode = ExMode.Help},
                };

            try
            {
                s_options.Parse(args);
            }
            catch (OptionException e)
            {
                s_Logger.LogException(LogLevel.Error, e.Message, e);
                s_hasErrors = true;
            }
        }
Esempio n. 8
0
 public TExV2(ExMode m, string?name) : base(m, name)
 {
     x = Ex.Field(ex, "x");
     y = Ex.Field(ex, "y");
 }