示例#1
0
 /// <summary>
 /// <para> Accessor methods to set properties on items</para>
 /// </summary>
 public static bool SetProperty(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, string pchPropertyValue)
 {
     InteropHelp.TestIfAvailableClient();
     using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName))
         using (var pchPropertyValue2 = new InteropHelp.UTF8StringHandle(pchPropertyValue)) {
             return(NativeMethods.ISteamInventory_SetProperty(CSteamAPIContext.GetSteamInventory(), handle, nItemID, pchPropertyName2, pchPropertyValue2));
         }
 }
示例#2
0
 /// <summary>
 /// <para> Remove the property on the item</para>
 /// </summary>
 public static bool RemoveProperty(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName))
     {
         return(NativeMethods.ISteamInventory_RemoveProperty(CSteamGameServerAPIContext.GetSteamInventory(), handle, nItemID, pchPropertyName2));
     }
 }
示例#3
0
 /// <summary>
 /// <para> Submit the update request by handle</para>
 /// </summary>
 public static bool SubmitUpdateProperties(SteamInventoryUpdateHandle_t handle, out SteamInventoryResult_t pResultHandle)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamInventory_SubmitUpdateProperties(CSteamAPIContext.GetSteamInventory(), handle, out pResultHandle));
 }
 internal bool SubmitUpdateProperties(SteamInventoryUpdateHandle_t handle, ref SteamInventoryResult_t pResultHandle)
 {
     return(_SubmitUpdateProperties(Self, handle, ref pResultHandle));
 }
 internal bool SetProperty4(SteamInventoryUpdateHandle_t handle, InventoryItemId nItemID, string pchPropertyName, float flValue)
 {
     return(_SetProperty4(Self, handle, nItemID, pchPropertyName, flValue));
 }
 internal bool SetProperty2(SteamInventoryUpdateHandle_t handle, InventoryItemId nItemID, string pchPropertyName, [MarshalAs(UnmanagedType.U1)] bool bValue)
 {
     return(_SetProperty2(Self, handle, nItemID, pchPropertyName, bValue));
 }
 internal bool RemoveProperty(SteamInventoryUpdateHandle_t handle, InventoryItemId nItemID, string pchPropertyName)
 {
     return(_RemoveProperty(Self, handle, nItemID, pchPropertyName));
 }
 private static extern bool _SubmitUpdateProperties(IntPtr self, SteamInventoryUpdateHandle_t handle, ref SteamInventoryResult_t pResultHandle);
 public static explicit operator ulong(SteamInventoryUpdateHandle_t that) => default;                       // 0x00000001802A78B0-0x00000001802A78C0
 public bool Equals(SteamInventoryUpdateHandle_t other) => default;                                         // 0x0000000180004FB0-0x0000000180004FC0
        }         // 0x0000000180004FE0-0x0000000180004FF0

        static SteamInventoryUpdateHandle_t()
        {
            Invalid = default;
        }         // 0x00000001807A2380-0x00000001807A23C0
 /// Submit the update request by handle
 public static bool SubmitUpdateProperties(SteamInventoryUpdateHandle_t handle, out SteamInventoryResult_t pResultHandle)
 {
     pResultHandle = (SteamInventoryResult_t)0;
     return(false);
 }
 public static bool SetProperty2(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, float flValue)
 {
     return(false);
 }
 /// Remove the property on the item
 public static bool RemoveProperty(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName)
 {
     return(false);
 }
示例#14
0
 internal bool SetProperty2(SteamInventoryUpdateHandle_t handle, InventoryItemId nItemID, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchPropertyName, [MarshalAs(UnmanagedType.U1)] bool bValue)
 {
     return(_SetProperty2(Self, handle, nItemID, pchPropertyName, bValue));
 }
 private static extern bool _SetProperty(IntPtr self, SteamInventoryUpdateHandle_t handle, InventoryItemId nItemID, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchPropertyName, float flValue);
 public bool Equals(SteamInventoryUpdateHandle_t other) => default;                                         // 0x0000000180004FB0-0x0000000180004FC0
 public int CompareTo(SteamInventoryUpdateHandle_t other) => default;                                       // 0x0000000180004F10-0x0000000180004F20
        internal bool SetProperty(SteamInventoryUpdateHandle_t handle, InventoryItemId nItemID, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchPropertyName, float flValue)
        {
            var returnValue = _SetProperty(Self, handle, nItemID, pchPropertyName, flValue);

            return(returnValue);
        }
示例#18
0
        internal bool SetProperty4(SteamInventoryUpdateHandle_t handle, InventoryItemId nItemID, string pchPropertyName, float flValue)
        {
            bool self = this._SetProperty4(this.Self, handle, nItemID, pchPropertyName, flValue);

            return(self);
        }
        internal bool SubmitUpdateProperties(SteamInventoryUpdateHandle_t handle, ref SteamInventoryResult_t pResultHandle)
        {
            var returnValue = _SubmitUpdateProperties(Self, handle, ref pResultHandle);

            return(returnValue);
        }
 public static bool SetProperty(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, float flValue)
 {
     InteropHelp.TestIfAvailableGameServer();
     using InteropHelp.UTF8StringHandle pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName);
     return(NativeMethods.ISteamInventory_SetPropertyFloat(CSteamGameServerAPIContext.GetSteamInventory(), handle, nItemID, pchPropertyName2, flValue));
 }