Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="callback"></param>
        /// <param name="state"></param>
        /// <returns></returns>
        public static int PublishWorld(PublishWorldCompleteDelegate callback, Guid worldId, object state)
        {
            PublishWorldState async = new PublishWorldState();

            async.callback = callback;
            async.state    = state;

            return(Community.Async_PublishWorldToFacebook(KoduFacebookId, worldId, PublishWorldComplete, async));
        }
Exemplo n.º 2
0
        static void PublishWorldComplete(AsyncResult ar)
        {
            AsyncResult_FacebookOperation result = (AsyncResult_FacebookOperation)ar;

            PublishWorldState async = (PublishWorldState)ar.Param;

            if (async.callback != null)
            {
                async.callback(result.Success, result.FacebookResultCode, async.state);
            }
        }