// ------------------------------------------------------------------------------- // ReqActorPlayerLogin // ------------------------------------------------------------------------------- public void ReqActorPlayerLogin(string[] fields, Action <string[]> callbackFunction) { DictionaryAddAction(callbackFunction); MsgReqActorPlayerLogin message = new MsgReqActorPlayerLogin { }; networkManager.client.Send(MsgReqActorPlayerLogin.nId, message); }
// ------------------------------------------------------------------------------- // ReqActorPlayerLogin // ------------------------------------------------------------------------------- public MsgAckActorPlayerLogin ReqActorPlayerLogin(MsgReqActorPlayerLogin message, NetworkConnection connection = null) { bool _bSuccess = false; /*if (dictLobby.TryGetValue(connection, out cAccount)) * _bSuccess = ActorPlayerLogin(message.sName, connection);*/ return(new MsgAckActorPlayerLogin { bSuccess = _bSuccess }); }
// ------------------------------------------------------------------------------- // OnMsgReqActorPlayerLogin // ------------------------------------------------------------------------------- public void OnMsgReqActorPlayerLogin(NetworkMessage networkMessage) { MsgReqActorPlayerLogin message = networkMessage.ReadMessage <MsgReqActorPlayerLogin>(); networkMessage.conn.Send(MsgAckActorPlayerLogin.nId, accountManager.ReqActorPlayerLogin(message, networkMessage.conn)); }