示例#1
0
        // -------------------------------------------------------------------------------
        // ReqActorPlayerLogin
        // -------------------------------------------------------------------------------
        public void ReqActorPlayerLogin(string[] fields, Action <string[]> callbackFunction)
        {
            DictionaryAddAction(callbackFunction);

            MsgReqActorPlayerLogin message = new MsgReqActorPlayerLogin {
            };

            networkManager.client.Send(MsgReqActorPlayerLogin.nId, message);
        }
示例#2
0
        // -------------------------------------------------------------------------------
        // 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
            });
        }
示例#3
0
        // -------------------------------------------------------------------------------
        // OnMsgReqActorPlayerLogin
        // -------------------------------------------------------------------------------
        public void OnMsgReqActorPlayerLogin(NetworkMessage networkMessage)
        {
            MsgReqActorPlayerLogin message = networkMessage.ReadMessage <MsgReqActorPlayerLogin>();

            networkMessage.conn.Send(MsgAckActorPlayerLogin.nId, accountManager.ReqActorPlayerLogin(message, networkMessage.conn));
        }