public async Task <ActionResult <actiontype> > PostActionType(actiontype actiontype) { _context.actiontype.Add(actiontype); await _context.SaveChangesAsync(); return(CreatedAtAction("Getactiontype", new { id = actiontype.actionTypeId }, actiontype)); }
public async Task <IActionResult> PutActionType(int id, actiontype actiontype) { if (id != actiontype.actionTypeId) { return(BadRequest()); } _context.Entry(actiontype).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!actiontypeExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public miniQueueObj(Vector3 p, GameObject t, int n, bool f, actiontype a) { target = t; targetpt = p; msgnum = n; following = f; action = a; }
public miniQueueObj(Vector3 p, GameObject t, int n, bool f, actiontype a) { target = t; targetpt = p; msgnum = n; following = f; action = a; }
public FQueueObj(Vector3 p, GameObject t, int n, bool f, actiontype a, GameObject ac) { target = t; targetpt = p; msgnum = n; following = f; action = a; actorObj = ac; if (a != actiontype.intermission) { actorFunc = GlobalObjs.getCharFunc(actorObj); } }
public QueueObj(GameObject a, GameObject t, Vector3 tp, actiontype at) { actorObj = a; targetObj = t; target = tp; action = at; if (at != actiontype.intermission) { actorFunc = GlobalObjs.getCharFunc(actorObj); } msgNum = curMsg; curMsg++; }
public FQueueObj(Vector3 p, GameObject t, int n, bool f, actiontype a, GameObject ac) { target = t; targetpt = p; msgnum = n; following = f; action = a; actorObj = ac; if (a != actiontype.intermission) { actorFunc = GlobalObjs.getCharFunc(actorObj); } }
public QueueObj(GameObject a, GameObject t, Vector3 tp, actiontype at) { actorObj = a; targetObj = t; target = tp; action = at; if (at != actiontype.intermission) { actorFunc = GlobalObjs.getCharFunc(actorObj); } msgNum = curMsg; curMsg++; }
void SetActionType(Content data, Action action, out actiontype type) { type = actiontype.notSet; if (action.gotoCamera != null) { type = actiontype.gotoCamera; } else if (action.gotoMap != null) { type = actiontype.gotoMap; } else if (action.gotoContent != 0) { type = actiontype.gotoContent; } }
public QueueObj(GameObject a, GameObject t, Vector3 tp, actiontype at) { actorObj = a; if (at != actiontype.intermission) { Debug.Log("actor obj=" + a.name); } targetObj = t; target = tp; action = at; if (at != actiontype.intermission) { actorFunc = GlobalObjs.getCharFunc(actorObj); //Debug.Log ("actor func="+actorFunc.thisChar.name); } msgNum = curMsg; curMsg++; }
public void InstantiateMessage(Content contentData, string dataString) { actiontype type = actiontype.notSet; string actionValue = null; switch (contentData.type) { case contentType.message: newBubbleObject = messagePrefab; break; case contentType.button: newBubbleObject = buttonPrefab; break; } //register ex message for reposition after instantiate curmessage if (curBubble != null) { exBubble = curBubble.GetComponent <RectTransform>(); } //instantiate exmessage curBubble = Instantiate(newBubbleObject); Buble curMessageBubble = curBubble.GetComponent <Buble>(); if (contentData.type == contentType.button) { curMessageBubble.myactionType = contentData.button.type; } //register curmessage to curspace curBubble.transform.SetParent(bubbleSpace[0]); //link on bubble size curMessageBubble.onBubbleResize += RepositionBubblePanel; curMessageBubble.myString = dataString; curMessageBubble.myId = contentData.id; curMessageBubble.myDialogNumber = contentData.dialogNumber; }
void ActByActionType(actiontype type, StructCollection.Action _actionData) { Content nextContent = null; switch (type) { case actiontype.gotoCamera: Debug.Log("go to camera action!" + _actionData.gotoCamera); tabmanager.curTabState = TabManager.tabState.arMode; break; case actiontype.gotoMap: Debug.Log("gotoMap spot name : " + _actionData.gotoMap); Debug.Log("tabmanager : " + tabmanager.gameObject.name); tabmanager.curTabState = TabManager.tabState.mapMode; break; case actiontype.gotoContent: Debug.Log("go to content id code ---->" + _actionData.gotoContent); int choosedNextContentId = _actionData.gotoContent; nextContent = FindContentById(choosedNextContentId); curContent = nextContent; curOrderIndex = findedIndexByid; //sssssssss DataSorter.instance.curDialogIndex = nextContent.dialogNumber; curContentIndex++; Debug.Log("새로운 curContent 내용" + curContent.type + curContent.id); break; } if (curDialogState != DialogState.endDialog) { curDialogState = DialogState.waitTrigger; } }
public KVPair(string key = "", string value = "", actiontype actionType = actiontype.none) : this(key, value) { ActionType = actionType; }
public KVPair(string key = "", actiontype actionType = actiontype.none) { Key = key ?? throw new ArgumentNullException(nameof(key)); ActionType = actionType; }