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; }
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 } }
public int GetHeroID(CNameObjDict co) { CMixArray c = (CMixArray)co["ret"]; return(c.Int(1)); }