예제 #1
0
 public ServerMsg()
 {
     RecipientId = "";
       Tag = CommandTag.None;
       Length = 0;
       Value = null;
 }
예제 #2
0
 private void Cooldown(CommandTag commandTag)
 {
     SearchText(UITag.CooldownText).text = "CD";
     SearchText(UITag.CooldownData).text
         = skillManager.GetMaxCooldown(commandTag).ToString();
 }
예제 #3
0
 // copy constructor
 public SensorMsg(SensorMsg sensorMsg)
 {
     this.SenderId = sensorMsg.SenderId;
       this.Date = sensorMsg.Date;
       this.Time = sensorMsg.Time;
       this.Tag = sensorMsg.Tag;
       this.Length = sensorMsg.Length;
       this.Value = sensorMsg.Value;
 }
예제 #4
0
 public SensorMsg()
 {
     SenderId = "";
       Tag = CommandTag.None;
       Length = 0;
       Value = null;
 }
예제 #5
0
 public void TryMoveUIFocus(CommandTag command)
 {
     Debug.Log(command);
 }
예제 #6
0
 public void Register(string CommandEng, string CommandKor, Action <string[]> Function, CommandTag Tag = CommandTag.Default)
 {
     if (string.IsNullOrEmpty(CommandEng))
     {
         CommandEng = "CirnixNullCommandMessage";
     }
     if (string.IsNullOrEmpty(CommandKor))
     {
         CommandKor = "CirnixNullCommandMessage";
     }
     Add(new CommandComponent(CommandEng, CommandKor, Tag, Function));
 }
예제 #7
0
파일: AimMode.cs 프로젝트: minkooz/AxeMan
 public VerifiedSkillEventArgs(CommandTag useSkill)
 {
     UseSkill = useSkill;
 }
예제 #8
0
 public SkillTypeTag GetSkillTypeTag(CommandTag commandTag)
 {
     return(GetSkillTypeTag(
                GameCore.AxeManCore.GetComponent <ConvertSkillMetaInfo>()
                .GetSkillNameTag(commandTag)));
 }
예제 #9
0
 public SkillNameTag GetSkillNameTag(CommandTag commandTag)
 {
     return(GetComponent <SkillMetaInfo>().GetSkillNameTag(commandTag));
 }
예제 #10
0
파일: AimMode.cs 프로젝트: minkooz/AxeMan
 public EnteringAimModeEventArgs(SubTag subTag, CommandTag commandTag)
 {
     SubTag     = subTag;
     CommandTag = commandTag;
 }
예제 #11
0
 public int GetSkillDamage(CommandTag commandTag)
 {
     return(GetComponent <SkillDamage>().GetSkillDamage(commandTag));
 }
예제 #12
0
 public int GetMaxCooldown(CommandTag commandTag)
 {
     return(GetComponent <SkillCooldown>().GetMaxCooldown(commandTag));
 }
예제 #13
0
 public string GetSkillName(CommandTag commandTag)
 {
     return(GameCore.AxeManCore.GetComponent <ConvertSkillMetaInfo>()
            .GetSkillName(commandTag));
 }
예제 #14
0
 private void Damage(CommandTag commandTag)
 {
     SearchText(UITag.DamageText).text = "Dmg";
     SearchText(UITag.DamageData).text
         = skillManager.GetSkillDamage(commandTag).ToString();
 }
예제 #15
0
파일: AimMode.cs 프로젝트: minkooz/AxeMan
 public VerifyingSkillEventArgs(CommandTag useSkill,
                                Stack <bool> canUseSkill)
 {
     UseSkill    = useSkill;
     CanUseSkill = canUseSkill;
 }
예제 #16
0
        private void ReadData(Queue <string> stream, bool instantly = false, string label = null)
        {
            Queue <VNCommand> commands = new Queue <VNCommand>();

            int           id = 0;
            bool          breakReservation = false; // 루프를 빠져나갈것을 예약하는 유무.
            bool          menuStart        = false;
            List <string> keys             = new List <string>();
            string        labelName        = "";
            string        strLineValue     = null;

            string     command = null;
            string     name    = null;
            CommandTag tag     = CommandTag.Text;

            if (label != null)
            {
                labelName = label;
            }

            Debug.Log(labelName + "  menuStart : " + menuStart);
            Debug.Log("--------------------------------------------------------");

            while (stream.Count > 0 && (strLineValue = stream.Dequeue()) != null)
            {
                // 다음 큐를 확인해서, 셀렉터나 메뉴끝이라면 루프브레이크를 true로 해 준다.
                if (stream.Count > 0 && NeedBreakReservation(stream.Peek(), instantly))
                {
                    breakReservation = true;
                }

                if (!strLineValue.Substring(1, 1).Equals("#"))
                {
                    keys = GetSplitedKeyValues(strLineValue);
                }

                if (keys != null && keys.Count > 1)
                {
                    tag     = config.GetTag(keys[(int)CommandKey.tag]);
                    command = keys[(int)CommandKey.command];
                    name    = keys[(int)CommandKey.tag];
                    command = command.Replace("\\n", "\n");

                    Debug.Log("[" + labelName + "]  " + tag + " : " + command);

                    switch (tag)
                    {
                    case CommandTag.Text:
                        commands.Enqueue(new VNCommand(id++, tag, command, name));
                        break;

                    case CommandTag.Label:
                        labelName = command;
                        break;

                    case CommandTag.End:
                        vnCommandSet.Add(labelName, new Queue <VNCommand>(commands));
                        commands.Clear();
                        break;

                    case CommandTag.InfoText:
                        commands.Enqueue(new VNCommand(id++, tag, command));
                        break;

                    case CommandTag.Show:
                        commands.Enqueue(new VNCommand(id++, tag, command));
                        break;

                    case CommandTag.Bg:
                        commands.Enqueue(new VNCommand(id++, tag, command));
                        break;

                    case CommandTag.Image:
                        commands.Enqueue(new VNCommand(id++, tag, command));
                        break;

                    case CommandTag.Menu:
                        Debug.Log(labelName + " Is memu");
                        commands.Enqueue(new VNCommand(id++, tag));
                        menuStart = true;
                        break;

                    case CommandTag.Selector:
                        if ((instantly && menuStart) || !instantly)
                        {
                            commands.Enqueue(new VNCommand(id++, tag, command, linkName: labelName + _dictId));
                            ReadData(stream, true, labelName + _dictId++);
                        }
                        else if (instantly)
                        {
                            vnCommandSet.Add(labelName, new Queue <VNCommand>(commands));
                            commands.Clear();
                            return;
                        }
                        break;

                    case CommandTag.MenuEnd:
                        Debug.Log("menu end : " + labelName + "  instantly : " + instantly + "  menuStart : " + menuStart);
                        if ((instantly && menuStart) || !instantly)
                        {
                            commands.Enqueue(new VNCommand(id++, tag));
                        }
                        else if (instantly)
                        {
                            vnCommandSet.Add(labelName, new Queue <VNCommand>(commands));
                            return;
                        }
                        menuStart = false;
                        break;

                    case CommandTag.JumpToLabel:
                        commands.Enqueue(new VNCommand(id++, tag, command));
                        break;

                    case CommandTag.Action:
                        commands.Enqueue(new VNCommand(id++, tag, command));
                        break;

                    case CommandTag.CreateCharacter:
                        break;

                    case CommandTag.AddShell:
                        break;

                    default:
                        continue;
                    }

                    keys = null;
                }

                if (breakReservation && !menuStart)
                {
                    vnCommandSet.Add(labelName, new Queue <VNCommand>(commands));
                    commands.Clear();
                    return;
                }
            }

            if (commands != null && !vnCommandSet.ContainsKey(labelName))
            {
                vnCommandSet.Add(labelName, new Queue <VNCommand>(commands));
            }
        }
예제 #17
0
파일: AimMode.cs 프로젝트: minkooz/AxeMan
 private void Awake()
 {
     pcUseSkill = CommandTag.INVALID;
 }
예제 #18
0
 public int GetCurrentCooldown(CommandTag commandTag)
 {
     return(GetCurrentCooldown(
                GameCore.AxeManCore.GetComponent <ConvertSkillMetaInfo>()
                .GetSkillNameTag(commandTag)));
 }
예제 #19
0
 public FailedVerifyingEventArgs(CommandTag useSkill)
 {
     UseSkill = useSkill;
 }