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