Exemplo n.º 1
0
    // "dummy_client"라는 jGuiStage xml파일을 로딩했을때 호출됨.
    protected void OnLoadStageXML_dummy_client(nNWM.nXML.jxDocument stageXml)
    {
        jxE xml         = stageXml.m_Root;
        jxV v           = null;
        jxE ePlayerList = xml.FindByAttr("Name", "PlayerList", out v);
        int iTot        = m_CMD.m_PlayerCmdFile.Length - 1;

        Debug.Log("m_CMD.m_PlayerCmdFile.Length  = " + m_CMD.m_PlayerCmdFile.Length);
        for (int i = 0; i < iTot; ++i)
        {
            jxE eClone = ePlayerList.begin().MakeClone();
            ePlayerList.InsertChild(eClone);
        }

        int idx = 0;

        foreach (jxE e in ePlayerList)
        {
            e.Set_string(m_CMD.m_PlayerCmdFile[idx++].USER_ID);
        }
    }