// with: Detect_VectorReturn
        // SteamAPICall_t
        public CallbackHandle StartPlaytimeTracking(PublishedFileId_t[] pvecPublishedFileID /*PublishedFileId_t **/, Action <StartPlaytimeTrackingResult_t, bool> CallbackFunction = null /*Action<StartPlaytimeTrackingResult_t, bool>*/)
        {
            SteamAPICall_t callback = 0;
            var            unNumPublishedFileIDs = (uint)pvecPublishedFileID.Length;

            fixed(PublishedFileId_t *pvecPublishedFileID_ptr = pvecPublishedFileID)
            {
                callback = platform.ISteamUGC_StartPlaytimeTracking((IntPtr)pvecPublishedFileID_ptr, unNumPublishedFileIDs);
            }

            if (CallbackFunction == null)
            {
                return(null);
            }

            return(StartPlaytimeTrackingResult_t.CallResult(steamworks, callback, CallbackFunction));
        }
Beispiel #2
0
 void OnStartPlaytimeTrackingResult(StartPlaytimeTrackingResult_t pCallback, bool bIOFailure)
 {
     Debug.Log("[" + StartPlaytimeTrackingResult_t.k_iCallback + " - StartPlaytimeTrackingResult] - " + pCallback.m_eResult);
 }