Пример #1
0
        public async Task <ActionResult <actiontype> > PostActionType(actiontype actiontype)
        {
            _context.actiontype.Add(actiontype);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("Getactiontype", new { id = actiontype.actionTypeId }, actiontype));
        }
Пример #2
0
        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());
        }
Пример #3
0
 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;
 }
Пример #5
0
 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);
     }
 }
Пример #6
0
 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++;
 }
Пример #7
0
 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);
     }
 }
Пример #8
0
 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++;
 }
Пример #9
0
    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;
        }
    }
Пример #10
0
 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++;
 }
Пример #11
0
    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;
    }
Пример #12
0
    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;
 }