예제 #1
0
        protected void S2D_ReqUserInfo(IIncommingMessage reader)
        {
            var msg = reader.Parse <Msg_ReqAccountData>();

            _authDb.GetAccount(msg.account, (dbData) => {
                reader.Respond(EMsgDS.D2S_RepUserInfo,
                               new Msg_RepAccountData()
                {
                    accountData = dbData as AccountData
                });
            });
        }
예제 #2
0
        protected void OnMsg_S2D_ReqUserInfo(IServerProxy proxy, Deserializer reader)
        {
            var msg = reader.Parse <Msg_ReqAccountData>();

            _authDb.GetAccount(msg.account, (dbData) => {
                proxy.SendMsg(EMsgDS.D2S_RepUserInfo,
                              new Msg_RepAccountData()
                {
                    accountData = dbData as AccountData
                });
            });
        }