// 오브젝트 셀렉트 했을 때 발생하는 Event... void EventObjectSelect(TABLE_SET _eTmpTableSet) { // 일단 배경 지우고,,, or 배경 그대로 두고,, 음식을 확대시켜서 고정한다. // 고정되면 조금 어색하다... 이것은 수정될 수 있음.. // 고정되지 않은,, 카메라 앞에 위치만 시킨다. << 이런 방향으로... TABLE_SET eTmpTableSet = _eTmpTableSet; for (int i = 0; i < CloneParent.transform.childCount; ++i) { CloneParent.transform.GetChild(i).gameObject.SetActive(false); } if (TABLE_SET.CURRY == _eTmpTableSet) { selectObjects[0].SetActive(true); } else if (TABLE_SET.RICE_NOODLE == _eTmpTableSet) { selectObjects[1].SetActive(true); } else if (TABLE_SET.CHINA_NOODLE == _eTmpTableSet) { selectObjects[2].SetActive(true); } else if (TABLE_SET.MISO_SOUP == _eTmpTableSet) { selectObjects[3].SetActive(true); } eRoute = ROUTE.PICKED_FOOD; }
public IHttpActionResult PutROUTE(decimal id, ROUTE rOUTE) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (id != rOUTE.ROUTE_ID) { return(BadRequest()); } db.Entry(rOUTE).State = EntityState.Modified; try { db.SaveChanges(); } catch (DbUpdateConcurrencyException) { if (!ROUTEExists(id)) { return(NotFound()); } else { throw; } } return(StatusCode(HttpStatusCode.NoContent)); }
public IHttpActionResult PostROUTE(ROUTE rOUTE) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } db.ROUTEs.Add(rOUTE); try { db.SaveChanges(); } catch (DbUpdateException) { if (ROUTEExists(rOUTE.ROUTE_ID)) { return(Conflict()); } else { throw; } } return(CreatedAtRoute("DefaultApi", new { id = rOUTE.ROUTE_ID }, rOUTE)); }
public void TableSettingComplete() { if (true == bTable && true == bCurry && true == bRiceNoodle && true == bChinaNoodle && true == bMisoSoup) { bool bCheckCurry = false; bool bCheckRiceNoodle = false; bool bCheckChinaNoodle = false; bool bCheckMisoSoup = false; bCheckCurry = tableNaviSc.GetSettle(TABLE_SET.CURRY); bCheckRiceNoodle = tableNaviSc.GetSettle(TABLE_SET.RICE_NOODLE); bCheckChinaNoodle = tableNaviSc.GetSettle(TABLE_SET.CHINA_NOODLE); bCheckMisoSoup = tableNaviSc.GetSettle(TABLE_SET.MISO_SOUP); //uiManager.SetTestText("rice noodle: " + bCheckRiceNoodle.ToString()); if (true == bCheckCurry && true == bCheckRiceNoodle && true == bCheckChinaNoodle && true == bCheckMisoSoup) { // 이러면 OK... eRoute = ROUTE.SELECT_FOOD; PlayerInfo.Instance.isComplite = true; Debug.Log("player:" + PlayerInfo.Instance.isComplite); m_StagePlay.forwardDown(); //uiManager.SetTestText("테이블 차리기 끝"); } else { Debug.Log("Failed"); } } else { //uiManager.SetTestText("테이블을 다 차려야 합니다."); } }
public ActionResult DeleteConfirmed(decimal id) { ROUTE rOUTE = db.ROUTEs.Find(id); db.ROUTEs.Remove(rOUTE); db.SaveChanges(); return(RedirectToAction("Index")); }
void Start() { //Debug.Log("start"); for (int i = 0; i < selectObjects.Length; ++i) { selectObjects[i] = selectObjectParent.transform.GetChild(i).gameObject; } eRoute = ROUTE.TABLE_SETTING; }
public IHttpActionResult GetROUTE(decimal id) { ROUTE rOUTE = db.ROUTEs.Find(id); if (rOUTE == null) { return(NotFound()); } return(Ok(rOUTE)); }
public void ResetButtonEvent() { eTableSet = TABLE_SET.NONE; uiManager.SetTextNotice(eTableSet); ResetTableSetting(); for (int i = 0; i < selectObjects.Length; ++i) { selectObjects[i].SetActive(false); } eRoute = ROUTE.TABLE_SETTING; }
public ActionResult Edit([Bind(Include = "ROUTEID,DEPARTURE,FIRSTSTOP,DESTINATION")] ROUTE rOUTE) { if (ModelState.IsValid) { db.Entry(rOUTE).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.DEPARTURE = new SelectList(db.STATIONs, "STATIONID", "STATIONNAME", rOUTE.DEPARTURE); ViewBag.DESTINATION = new SelectList(db.STATIONs, "STATIONID", "STATIONNAME", rOUTE.DESTINATION); ViewBag.FIRSTSTOP = new SelectList(db.STATIONs, "STATIONID", "STATIONNAME", rOUTE.FIRSTSTOP); return(View(rOUTE)); }
public IHttpActionResult DeleteROUTE(decimal id) { ROUTE rOUTE = db.ROUTEs.Find(id); if (rOUTE == null) { return(NotFound()); } db.ROUTEs.Remove(rOUTE); db.SaveChanges(); return(Ok(rOUTE)); }
// GET: Routes/Details/5 public ActionResult Details(decimal id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } ROUTE rOUTE = db.ROUTEs.Find(id); if (rOUTE == null) { return(HttpNotFound()); } return(View(rOUTE)); }
public void BackToTable() { Debug.Log("Back To Table"); eRoute = ROUTE.SELECT_FOOD; // 여기서 다시 테이블로... for (int i = 0; i < selectObjects.Length; ++i) { selectObjects[i].SetActive(false); } for (int i = 0; i < CloneParent.transform.childCount; ++i) { CloneParent.transform.GetChild(i).gameObject.SetActive(true); } }
// GET: Routes/Edit/5 public ActionResult Edit(decimal id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } ROUTE rOUTE = db.ROUTEs.Find(id); if (rOUTE == null) { return(HttpNotFound()); } ViewBag.DEPARTURE = new SelectList(db.STATIONs, "STATIONID", "STATIONNAME", rOUTE.DEPARTURE); ViewBag.DESTINATION = new SelectList(db.STATIONs, "STATIONID", "STATIONNAME", rOUTE.DESTINATION); ViewBag.FIRSTSTOP = new SelectList(db.STATIONs, "STATIONID", "STATIONNAME", rOUTE.FIRSTSTOP); return(View(rOUTE)); }
internal static object[] Build(Org.Neo4j.causalclustering.routing.load_balancing.LoadBalancingProcessor_Result result) { //JAVA TO C# CONVERTER TODO TASK: Method reference arbitrary object instance method syntax is not converted by Java to C# Converter: object[] routers = result.RouteEndpoints().Select(Endpoint::address).Select(SocketAddress::toString).ToArray(); //JAVA TO C# CONVERTER TODO TASK: Method reference arbitrary object instance method syntax is not converted by Java to C# Converter: object[] readers = result.ReadEndpoints().Select(Endpoint::address).Select(SocketAddress::toString).ToArray(); //JAVA TO C# CONVERTER TODO TASK: Method reference arbitrary object instance method syntax is not converted by Java to C# Converter: object[] writers = result.WriteEndpoints().Select(Endpoint::address).Select(SocketAddress::toString).ToArray(); IList <IDictionary <string, object> > servers = new List <IDictionary <string, object> >(); if (writers.Length > 0) { IDictionary <string, object> map = new SortedDictionary <string, object>(); map[ROLE_KEY] = WRITE.name(); map[ADDRESSES_KEY] = writers; servers.Add(map); } if (readers.Length > 0) { IDictionary <string, object> map = new SortedDictionary <string, object>(); map[ROLE_KEY] = READ.name(); map[ADDRESSES_KEY] = readers; servers.Add(map); } if (routers.Length > 0) { IDictionary <string, object> map = new SortedDictionary <string, object>(); map[ROLE_KEY] = ROUTE.name(); map[ADDRESSES_KEY] = routers; servers.Add(map); } long timeToLiveSeconds = MILLISECONDS.toSeconds(result.TtlMillis()); return(new object[] { timeToLiveSeconds, servers }); }
// GET: Routes/Create public ActionResult Create() { ViewBag.DEPARTURE = new SelectList(db.STATIONs, "STATIONID", "STATIONNAME"); ViewBag.DESTINATION = new SelectList(db.STATIONs, "STATIONID", "STATIONNAME"); ViewBag.FIRSTSTOP = new SelectList(db.STATIONs, "STATIONID", "STATIONNAME"); ROUTE newRoute = new ROUTE(); var lastRoute = db.ROUTEs.OrderByDescending(x => x.ROUTEID).FirstOrDefault(); if (lastRoute == null) { newRoute.ROUTEID = 5001; } else if (lastRoute.ROUTEID != 0) { newRoute.ROUTEID = lastRoute.ROUTEID + 1; } return(View(newRoute)); }
public EventRoute(ROUTE route, SceneGraphNode from, SceneGraphNode to) { this.Route = route; this.From = from; this.To = to; }
// LEFT SIDE public void TableSettingComplete() { // 바로 셀렉트 로 넘어간다.... Debug.Log("Table Setting Complete"); eRoute = ROUTE.SELECT_FOOD; }