Exemple #1
0
        protected override void DispatchMessage(MessageRecievedEvent evt)
        {
            switch (evt.Message.FuncId)
            {
            case 8000:
            {
                var msg = new CheckVersionInMessage(evt.Sender, evt.Message, evt.Data);
                msg.Coroutine = new Coroutine(item => CheckVersion(item, msg));
                msg.Coroutine.MoveNext();
            }
            break;

            case 8001:
            {
                var msg = new CheckVersion2InMessage(evt.Sender, evt.Message, evt.Data);
                msg.Coroutine = new Coroutine(item => CheckVersion2(item, msg));
                msg.Coroutine.MoveNext();
            }
            break;

            case 8002:
            {
                var msg = new CheckVersion3InMessage(evt.Sender, evt.Message, evt.Data);
                msg.Coroutine = new Coroutine(item => CheckVersion3(item, msg));
                msg.Coroutine.MoveNext();
            }
            break;

            default:
                break;
            }
        }
Exemple #2
0
        /// <summary>
        /// </summary>
        public IEnumerator CheckVersion(Coroutine coroutine, CheckVersionInMessage msg)
        {
            DirectoryCharacterProxy proxy;

            if (Proxys.TryGetValue(msg.CharacterId, out proxy))
            {
                return(mProxyImpl.CheckVersion(coroutine, proxy, msg));
            }
            return(null);
        }