public OrientationCubeComponentSolver(TwitchModule module) : base(module) { var component = module.BombComponent.GetComponent(ComponentType); _submit = (MonoBehaviour)SubmitField.GetValue(component); _left = (MonoBehaviour)LeftField.GetValue(component); _right = (MonoBehaviour)RightField.GetValue(component); _ccw = (MonoBehaviour)CcwField.GetValue(component); _cw = (MonoBehaviour)CwField.GetValue(component); ModInfo = ComponentSolverFactory.GetModuleInfo(GetModuleType(), "Move the cube with !{0} press cw l set. The buttons are l, r, cw, ccw, set."); }
/// <summary> /// 设置表名 /// </summary> /// <param name="tName"></param> public void SetTable(string tName) { if ((LeftField as object) != null) { LeftField.SetTableName(tName); } if ((RightField as object) != null) { RightField.SetTableName(tName); } if (Left != null) { Left.SetTable(tName); } if (Right != null) { Right.SetTable(tName); } }
public override TSqlQuery Compile(ClauseCompilationContext context) { StringBuilder sb = new StringBuilder(); sb.Append($"{JoinType.GetDescription()} {TSqlSyntax.Join} {SqlBuilderHelper.PrepareTableName(JoinedTable)}"); if (TableHints.HasValue) { string hints = SqlBuilderHelper.GetTableHintString(TableHints.Value); sb.Append(" "); sb.Append($"{TSqlSyntax.With}({hints})"); } sb.Append(" "); sb.Append($"{TSqlSyntax.On} {LeftField.GetFullName()} {SqlBuilderHelper.ConvertBinaryOperationToString(Operation)} {RightField.GetFullName()}"); return(new TSqlQuery(sb.ToString())); }