소스 검색

Added UGC SetListener method.

Resolves #6.
Brucey 5 달 전
부모
커밋
ace3396b62
3개의 변경된 파일22개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      steamsdk.mod/common.bmx
  2. 1 1
      steamsdk.mod/glue/glue.cpp
  3. 20 3
      steamsdk.mod/steamsdk.bmx

+ 1 - 1
steamsdk.mod/common.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2019-2022 Bruce A Henderson
+' Copyright (c) 2019-2025 Bruce A Henderson
 ' 
 ' 
 ' This software is provided 'as-is', without any express or implied
 ' This software is provided 'as-is', without any express or implied
 ' warranty. In no event will the authors be held liable for any damages
 ' warranty. In no event will the authors be held liable for any damages

+ 1 - 1
steamsdk.mod/glue/glue.cpp

@@ -1,5 +1,5 @@
 /*
 /*
-  Copyright (c) 2019-2022 Bruce A Henderson
+  Copyright (c) 2019-2025 Bruce A Henderson
   
   
   This software is provided 'as-is', without any express or implied
   This software is provided 'as-is', without any express or implied
   warranty. In no event will the authors be held liable for any damages
   warranty. In no event will the authors be held liable for any damages

+ 20 - 3
steamsdk.mod/steamsdk.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2019-2022 Bruce A Henderson
+' Copyright (c) 2019-2025 Bruce A Henderson
 ' 
 ' 
 ' This software is provided 'as-is', without any express or implied
 ' This software is provided 'as-is', without any express or implied
 ' warranty. In no event will the authors be held liable for any damages
 ' warranty. In no event will the authors be held liable for any damages
@@ -23,11 +23,13 @@ bbdoc: Steam SDK
 End Rem
 End Rem
 Module Steam.SteamSDK
 Module Steam.SteamSDK
 
 
-ModuleInfo "Version: 1.05"
+ModuleInfo "Version: 1.06"
 ModuleInfo "License: zlib/libpng"
 ModuleInfo "License: zlib/libpng"
 ModuleInfo "Copyright: Steam SDK - Valve Corporation"
 ModuleInfo "Copyright: Steam SDK - Valve Corporation"
-ModuleInfo "Copyright: Wrapper - 2019-2022 Bruce A Henderson"
+ModuleInfo "Copyright: Wrapper - 2019-2025 Bruce A Henderson"
 
 
+ModuleInfo "History: 1.06"
+ModuleInfo "History: Added TSteamUGC SetListener()"
 ModuleInfo "History: 1.05"
 ModuleInfo "History: 1.05"
 ModuleInfo "History: Update to steamworks sdk 1.53a."
 ModuleInfo "History: Update to steamworks sdk 1.53a."
 ModuleInfo "History: Build fixes."
 ModuleInfo "History: Build fixes."
@@ -1624,6 +1626,21 @@ Type TSteamUGC Extends TSteamAPI
 		bmx_steamsdk_unregister_steamugc(callbackPtr)
 		bmx_steamsdk_unregister_steamugc(callbackPtr)
 	End Method
 	End Method
 
 
+	Rem
+	bbdoc: Sets the UGC callback listener.
+	about: Once installed, the listener will receive events via the callback methods.
+	End Rem
+	Method SetListener(listener:ISteamUGCListener)
+		Self.listener = listener
+	End Method
+	
+	Rem
+	bbdoc: Removes the current UGC callback listener.
+	End Rem
+	Method RemoveListener()
+		listener = Null
+	End Method
+
 	Rem
 	Rem
 	bbdoc: Adds a dependency between the given item and the appid.
 	bbdoc: Adds a dependency between the given item and the appid.
 	about: This list of dependencies can be retrieved by calling #GetAppDependencies.
 	about: This list of dependencies can be retrieved by calling #GetAppDependencies.