Esempio n. 1
0
        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();
                }
            }
            else
            {
                var cake = new CakeServer(vo.name, player.psid);
                cake.Sync();
            }
        }