public void MoveEvalMenu(string creature_id) { C2G.CreatureEvalInitInfo packet = new C2G.CreatureEvalInitInfo(); packet.creature_id = creature_id; Network.GameServer.JsonAsync <C2G.CreatureEvalInitInfo, C2G.CreatureEvalInitInfoAck>(packet, EvalInitInfoHandler); }
void EvalInitInfoHandler(C2G.CreatureEvalInitInfo send, C2G.CreatureEvalInitInfoAck recv) { MenuParams parms = new MenuParams(); parms.AddParam("InitInfo", recv); parms.AddParam("CreatureID", send.creature_id); if (Popup.Instance.GetCurrentPopup() != null) { StackPopup(); } ChangeMenu(GameMenu.HeroesEval, parms); }