public ActionResult stop(ArgBag arg) { if (bStarted) { threadTimer.Dispose(); } return(View()); }
public ActionResult start(ArgBag arg) { if (!bStarted) { System.Threading.TimerCallback timerDelegate = new System.Threading.TimerCallback(main); threadTimer = new System.Threading.Timer(timerDelegate, null, dueTime, period); bStarted = true; } return(View()); }
public ActionResult Action2(ArgBag arg) { if (arg.isNotType("ArgNull")) { throw new Exception("[ERROR] Invalid argument."); } arg = (ArgNull)arg; return(View()); }
public ActionResult InputKeyRight(ArgBag arg) { if (arg.isNotType("ArgNull")) { throw new Exception("[ERROR] Invalid argument."); } arg = (ArgNull)arg; ((MainGameModel)model).notifyUpdate(); return(View()); }
public ActionResult callAction(int ID, ArgBag arg) { ActionRouting target = null; foreach (ActionRouting action in actionRoutingList) { if (ID == action.actionID) { target = action; } } if (null != target) { return(target.action(arg)); } else { return(null); } }
public ActionResult DefaultAction(ArgBag arg) { return(View()); }