Exemple #1
0
    /// <summary>
    /// Tos the byte code.
    /// </summary>
    public override void ToByteCode(ByteCodes code)
    {
        List <byte> byteList = new List <byte>();

        AddNodeCode(byteList);

        string nameHndName   = (m_NameTextBox != null) ? m_NameTextBox.name : "";
        string dialogHndName = (m_ViNoTextBox != null) ? m_ViNoTextBox.name : "";

        for (int i = 0; i < dlgDataList.Count; i++)
        {
            DialogPartData dlgData = dlgDataList[i];

// if a item is not Checked , the item is shown.
#if false
            if (!dlgData.active)
            {
                continue;
            }
#endif
            string tag = GetSingleDialogIDNodeTag(dlgData.dialogID);
            ByteCodeScriptTools.AddNodeCode(byteList, tag);

            CodeGenerator.GenerateADialogCode(byteList, dlgData, nameHndName, dialogHndName);
        }

        code.Add(byteList.ToArray());

        // To Byte codes this Children.
        ToByteCodeInternal(code);
    }