public ServerMsg() { RecipientId = ""; Tag = CommandTag.None; Length = 0; Value = null; }
private void Cooldown(CommandTag commandTag) { SearchText(UITag.CooldownText).text = "CD"; SearchText(UITag.CooldownData).text = skillManager.GetMaxCooldown(commandTag).ToString(); }
// 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; }
public SensorMsg() { SenderId = ""; Tag = CommandTag.None; Length = 0; Value = null; }
public void TryMoveUIFocus(CommandTag command) { Debug.Log(command); }
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)); }
public VerifiedSkillEventArgs(CommandTag useSkill) { UseSkill = useSkill; }
public SkillTypeTag GetSkillTypeTag(CommandTag commandTag) { return(GetSkillTypeTag( GameCore.AxeManCore.GetComponent <ConvertSkillMetaInfo>() .GetSkillNameTag(commandTag))); }
public SkillNameTag GetSkillNameTag(CommandTag commandTag) { return(GetComponent <SkillMetaInfo>().GetSkillNameTag(commandTag)); }
public EnteringAimModeEventArgs(SubTag subTag, CommandTag commandTag) { SubTag = subTag; CommandTag = commandTag; }
public int GetSkillDamage(CommandTag commandTag) { return(GetComponent <SkillDamage>().GetSkillDamage(commandTag)); }
public int GetMaxCooldown(CommandTag commandTag) { return(GetComponent <SkillCooldown>().GetMaxCooldown(commandTag)); }
public string GetSkillName(CommandTag commandTag) { return(GameCore.AxeManCore.GetComponent <ConvertSkillMetaInfo>() .GetSkillName(commandTag)); }
private void Damage(CommandTag commandTag) { SearchText(UITag.DamageText).text = "Dmg"; SearchText(UITag.DamageData).text = skillManager.GetSkillDamage(commandTag).ToString(); }
public VerifyingSkillEventArgs(CommandTag useSkill, Stack <bool> canUseSkill) { UseSkill = useSkill; CanUseSkill = canUseSkill; }
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)); } }
private void Awake() { pcUseSkill = CommandTag.INVALID; }
public int GetCurrentCooldown(CommandTag commandTag) { return(GetCurrentCooldown( GameCore.AxeManCore.GetComponent <ConvertSkillMetaInfo>() .GetSkillNameTag(commandTag))); }
public FailedVerifyingEventArgs(CommandTag useSkill) { UseSkill = useSkill; }