コード例 #1
0
ファイル: Waypoint.cs プロジェクト: sindromexd/simplebot
 public Waypoint(WaypointType Type, ConditionalVarType VarType, uint ItemID, ConditionalCheckType CheckType, int Output, string GoToLabel)
 {
     wType = Type;
     wCondVarType = VarType;
     wItemID = ItemID;
     wCondCheckType = CheckType;
     wCondOutput = Output;
     wLabelName = GoToLabel;
 }
コード例 #2
0
ファイル: Cavebot.cs プロジェクト: sindromexd/simplebot
 private string checkTypeToString(ConditionalCheckType checkType)
 {
     switch (checkType)
     {
         case ConditionalCheckType.Equals:
             return "==";
         case ConditionalCheckType.Bigger:
             return ">";
         case ConditionalCheckType.BiggerorEquals:
             return ">=";
         case ConditionalCheckType.Smaller:
             return "<";
         case ConditionalCheckType.SmallerorEquals:
             return "<=";
         case ConditionalCheckType.Differs:
             return "!=";
         default:
             return "==";
     }
 }
コード例 #3
0
ファイル: Cavebot.cs プロジェクト: sindromexd/simplebot
 private void uxConditionalCheckType_SelectedIndexChanged(object sender, EventArgs e)
 {
     condCheckType = (ConditionalCheckType)uxConditionalCheckType.SelectedIndex;
 }