Beispiel #1
0
 /// <summary>
 /// <para> Sets metadata about a screenshot's location (for example, the name of the map)</para>
 /// </summary>
 public static bool SetLocation(ScreenshotHandle hScreenshot, string pchLocation)
 {
     InteropHelp.TestIfAvailableClient();
     using (var pchLocation2 = new InteropHelp.UTF8StringHandle(pchLocation)) {
         return(NativeMethods.ISteamScreenshots_SetLocation(hScreenshot, pchLocation2));
     }
 }
Beispiel #2
0
        public static bool SetLocation(ScreenshotHandle hScreenshot, string pchLocation)
        {
            InteropHelp.TestIfAvailableClient();
            bool result;

            using (InteropHelp.UTF8StringHandle uTF8StringHandle = new InteropHelp.UTF8StringHandle(pchLocation))
            {
                result = NativeMethods.ISteamScreenshots_SetLocation(hScreenshot, uTF8StringHandle);
            }
            return(result);
        }
Beispiel #3
0
        public static Screenshot?AddScreenshot(string filename, string thumbnail, int width, int height)
        {
            Screenshot?      nullable;
            ScreenshotHandle library = SteamScreenshots.Internal.AddScreenshotToLibrary(filename, thumbnail, width, height);

            if (library.Value != 0)
            {
                nullable = new Screenshot?(new Screenshot()
                {
                    Value = library
                });
            }
            else
            {
                nullable = null;
            }
            return(nullable);
        }
Beispiel #4
0
 private static extern bool _SetLocation(IntPtr self, ScreenshotHandle hScreenshot, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchLocation);
 internal bool TagUser(ScreenshotHandle hScreenshot, SteamId steamID)
 {
     return(_TagUser(Self, hScreenshot, steamID));
 }
 internal bool SetLocation(ScreenshotHandle hScreenshot, string pchLocation)
 {
     return(_SetLocation(Self, hScreenshot, pchLocation));
 }
 internal bool TagPublishedFile(ScreenshotHandle hScreenshot, PublishedFileId unPublishedFileID)
 {
     return(_TagPublishedFile(Self, hScreenshot, unPublishedFileID));
 }
 /// Tags a user as being visible in the screenshot
 public static bool TagUser(ScreenshotHandle hScreenshot, CSteamID steamID)
 {
     return(false);
 }
Beispiel #9
0
 /// <summary>
 /// <para> Tags a user as being visible in the screenshot</para>
 /// </summary>
 public static bool TagUser(ScreenshotHandle hScreenshot, CSteamID steamID)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamScreenshots_TagUser(hScreenshot, steamID));
 }
        }         // 0x00000001800163C0-0x00000001800163D0

        static ScreenshotHandle()
        {
            Invalid = default;
        }         // 0x0000000180948C60-0x0000000180948CA0
Beispiel #11
0
        internal bool TagUser(ScreenshotHandle hScreenshot, SteamId steamID)
        {
            var returnValue = _TagUser(Self, hScreenshot, steamID);

            return(returnValue);
        }
        internal ScreenshotHandle WriteScreenshot(IntPtr pubRGB, uint cubRGB, int nWidth, int nHeight)
        {
            ScreenshotHandle self = this._WriteScreenshot(this.Self, pubRGB, cubRGB, nWidth, nHeight);

            return(self);
        }
        internal ScreenshotHandle AddScreenshotToLibrary(string pchFilename, string pchThumbnailFilename, int nWidth, int nHeight)
        {
            ScreenshotHandle self = this._AddScreenshotToLibrary(this.Self, pchFilename, pchThumbnailFilename, nWidth, nHeight);

            return(self);
        }
 // Sets metadata about a screenshot's location (for example, the name of the map)
 public static bool SetLocation(ScreenshotHandle hScreenshot, string pchLocation)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamScreenshots_SetLocation(hScreenshot, pchLocation));
 }
 public bool Equals(ScreenshotHandle other) => default;                             // 0x0000000180016320-0x0000000180016330
 public int CompareTo(ScreenshotHandle other) => default;                           // 0x000000018002CB20-0x000000018002CB30
 public static explicit operator uint(ScreenshotHandle that) => default;            // 0x0000000180322710-0x00000001803232A0
 public bool Equals(ScreenshotHandle other) => default;                             // 0x0000000180016320-0x0000000180016330
Beispiel #17
0
        internal bool SetLocation(ScreenshotHandle hScreenshot, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchLocation)
        {
            var returnValue = _SetLocation(Self, hScreenshot, pchLocation);

            return(returnValue);
        }
Beispiel #18
0
        internal bool TagPublishedFile(ScreenshotHandle hScreenshot, PublishedFileId unPublishedFileID)
        {
            var returnValue = _TagPublishedFile(Self, hScreenshot, unPublishedFileID);

            return(returnValue);
        }
Beispiel #19
0
 private static extern bool _TagUser(IntPtr self, ScreenshotHandle hScreenshot, SteamId steamID);
 /// Tags a published file as being visible in the screenshot
 public static bool TagPublishedFile(ScreenshotHandle hScreenshot, PublishedFileId_t unPublishedFileID)
 {
     return(false);
 }
Beispiel #21
0
 private static extern bool _TagPublishedFile(IntPtr self, ScreenshotHandle hScreenshot, PublishedFileId unPublishedFileID);
Beispiel #22
0
        }                                                                                                                                      // 0x00000001808371D0-0x0000000180837220

        public static bool SetLocation(ScreenshotHandle hScreenshot, string pchLocation) => default;                                           // 0x0000000180837270-0x00000001808373B0
Beispiel #23
0
 public static bool SetLocation(ScreenshotHandle hScreenshot, string pchLocation) => default;                                           // 0x0000000180837270-0x00000001808373B0
 public static bool TagUser(ScreenshotHandle hScreenshot, CSteamID steamID) => default;                                                 // 0x0000000180837410-0x0000000180837470
Beispiel #24
0
 public static bool TagUser(ScreenshotHandle hScreenshot, CSteamID steamID) => default;                                                 // 0x0000000180837410-0x0000000180837470
 public static bool TagPublishedFile(ScreenshotHandle hScreenshot, PublishedFileId_t unPublishedFileID) => default;                     // 0x00000001808373B0-0x0000000180837410
Beispiel #25
0
 /// <summary>
 /// <para> Tags a published file as being visible in the screenshot</para>
 /// </summary>
 public static bool TagPublishedFile(ScreenshotHandle hScreenshot, PublishedFileId_t unPublishedFileID)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamScreenshots_TagPublishedFile(hScreenshot, unPublishedFileID));
 }
 /// Sets metadata about a screenshot's location (for example, the name of the map)
 public static bool SetLocation(ScreenshotHandle hScreenshot, string pchLocation)
 {
     return(false);
 }