private void GameHandler_GetSdata(IResponer responer, PktGetSdata vo)
        {
            var player = APlayerManager.Instance.OnGetPlayerByConn(responer.playerConnDesc);

            if (player == null)
            {
                return;
            }

            if (string.IsNullOrEmpty(vo.name))
            {
                foreach (var l in loadList)
                {
                    var cake = new CakeServer(l, player.psid);
                    cake.Sync();
                }

                var pdata = new PktContaData();
                pdata.id = InitValueDefs.CityID;
                responer.Response(pdata);

                AContaManager.Instance.OnEnterConta(player.psid, InitValueDefs.CityID);
            }
            else
            {
                var cake = new CakeServer(vo.name, player.psid);
                cake.Sync();
            }
        }
        private void OnEnterConta(IResponer responer, Player player, PData pData)
        {
            var pkt = new PktContaData();

            if (string.IsNullOrEmpty(pData.strArg))
            {
                pkt.id = pData.intArg;
                responer.Response(pkt);
            }
            else
            {
                var cake = new CakeServer("pinfo", player.psid);
                var data = AConfigManager.Instance.OnGetMapData(pData.strArg, cake.GetIntValue(pData.strArg));
                pkt.id = data.id;
                responer.Response(pkt);
            }
            AContaManager.Instance.OnEnterConta(player.psid, pkt.id);
        }
예제 #3
0
 private static void rcvContaData(PktContaData obj)
 {
     clientComm.rcvContaData(obj.id, obj.lDatas);
 }