예제 #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"));
 }
예제 #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");
 }
예제 #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;
        }
예제 #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);
 }
예제 #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;
            }
        }
예제 #6
0
 public TExLMov(ExMode m, string?name) : base(m, name)
 {
 }
예제 #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;
            }
        }
예제 #8
0
 public TExV2(ExMode m, string?name) : base(m, name)
 {
     x = Ex.Field(ex, "x");
     y = Ex.Field(ex, "y");
 }