Exemple #1
0
        public void parseFormation(CNameObjDict co)
        {
            CMixArray cm = (CMixArray)co["ret"];
            Dictionary <string, object> formation = new Dictionary <string, object>();

            for (int i = 0; i < 6; i++)
            {
                formation[i.ToString()] = cm[i];
            }
            config.formation = formation;
        }
Exemple #2
0
        public bool CheckUser(CNameObjDict co)
        {
            CMixArray c = (CMixArray)co["ret"];

            if (c.FixedLength > 0)
            {
                return(true);    // the server has role
            }
            else
            {
                return(false);    //don't have role
            }
        }
Exemple #3
0
        public int GetHeroID(CNameObjDict co)
        {
            CMixArray c = (CMixArray)co["ret"];

            return(c.Int(1));
        }