Пример #1
0
    public int getBranchById(string actor, int setId, int lineId)
    {
        ActorDialogue actorDialogue;

        if (dialogue.TryGetValue(actor, out actorDialogue))
        {
            DialogueLine dialogueLine = actorDialogue.getDialogueLineById(setId, lineId);
            if (dialogueLine != null)
            {
                return(dialogueLine.getBranchSetId());
            }
            else
            {
                return(0);
            }
        }
        else
        {
            return(0);
        }
    }