Package zombie.core.znet
Class SteamWorkshop
java.lang.Object
zombie.core.znet.SteamWorkshop
- All Implemented Interfaces:
ISteamWorkshopCallback
public class SteamWorkshop extends java.lang.Object implements ISteamWorkshopCallback
-
Field Summary
Fields Modifier and Type Field Description static SteamWorkshop
instance
-
Constructor Summary
Constructors Constructor Description SteamWorkshop()
-
Method Summary
Modifier and Type Method Description long
CreateQueryUGCDetailsRequest(long[] itemIDs, ISteamWorkshopCallback callback)
boolean
CreateWorkshopItem(SteamWorkshopItem item)
boolean
DownloadItem(long itemID, boolean bHighPriority, ISteamWorkshopCallback callback)
java.lang.String
getIDFromItemInstallFolder(java.lang.String dir)
java.lang.String[]
GetInstalledItemFolders()
boolean
GetItemDownloadInfo(long itemID, long[] progress)
java.lang.String
GetItemInstallFolder(long itemID)
long
GetItemInstallTimeStamp(long itemID)
long
GetItemState(long itemID)
boolean
GetItemUpdateProgress(long[] progress)
long[]
GetQueryUGCChildren(long handle, int index)
SteamUGCDetails
GetQueryUGCResult(long handle, int index)
java.util.ArrayList
getStageFolders()
java.lang.String
getWorkshopFolder()
static void
init()
java.util.ArrayList
loadStagedItems()
void
onItemCreated(long itemID, boolean bUserNeedsToAcceptWorkshopLegalAgreement)
void
onItemDownloaded(long itemID)
void
onItemNotCreated(int result)
void
onItemNotDownloaded(long itemID, int result)
void
onItemNotSubscribed(long itemID, int result)
void
onItemNotUpdated(int result)
void
onItemQueryCompleted(long handle, int numResults)
void
onItemQueryNotCompleted(long handle, int result)
void
onItemSubscribed(long itemID)
void
onItemUpdated(boolean bUserNeedsToAcceptWorkshopLegalAgreement)
boolean
ReleaseQueryUGCRequest(long handle)
void
RemoveCallback(ISteamWorkshopCallback callback)
static void
shutdown()
boolean
SubmitWorkshopItem(SteamWorkshopItem item)
boolean
SubscribeItem(long itemID, ISteamWorkshopCallback callback)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
-
Constructor Details
-
SteamWorkshop
public SteamWorkshop()
-
-
Method Details
-
init
public static void init() -
shutdown
public static void shutdown() -
loadStagedItems
public java.util.ArrayList loadStagedItems() -
getWorkshopFolder
public java.lang.String getWorkshopFolder() -
getStageFolders
public java.util.ArrayList getStageFolders() -
CreateWorkshopItem
-
SubmitWorkshopItem
-
GetItemUpdateProgress
public boolean GetItemUpdateProgress(long[] progress) -
GetInstalledItemFolders
public java.lang.String[] GetInstalledItemFolders() -
GetItemState
public long GetItemState(long itemID) -
GetItemInstallFolder
public java.lang.String GetItemInstallFolder(long itemID) -
GetItemInstallTimeStamp
public long GetItemInstallTimeStamp(long itemID) -
SubscribeItem
-
DownloadItem
-
GetItemDownloadInfo
public boolean GetItemDownloadInfo(long itemID, long[] progress) -
CreateQueryUGCDetailsRequest
-
GetQueryUGCResult
-
GetQueryUGCChildren
public long[] GetQueryUGCChildren(long handle, int index) -
ReleaseQueryUGCRequest
public boolean ReleaseQueryUGCRequest(long handle) -
RemoveCallback
-
getIDFromItemInstallFolder
public java.lang.String getIDFromItemInstallFolder(java.lang.String dir) -
onItemCreated
public void onItemCreated(long itemID, boolean bUserNeedsToAcceptWorkshopLegalAgreement)- Specified by:
onItemCreated
in interfaceISteamWorkshopCallback
-
onItemNotCreated
public void onItemNotCreated(int result)- Specified by:
onItemNotCreated
in interfaceISteamWorkshopCallback
-
onItemUpdated
public void onItemUpdated(boolean bUserNeedsToAcceptWorkshopLegalAgreement)- Specified by:
onItemUpdated
in interfaceISteamWorkshopCallback
-
onItemNotUpdated
public void onItemNotUpdated(int result)- Specified by:
onItemNotUpdated
in interfaceISteamWorkshopCallback
-
onItemSubscribed
public void onItemSubscribed(long itemID)- Specified by:
onItemSubscribed
in interfaceISteamWorkshopCallback
-
onItemNotSubscribed
public void onItemNotSubscribed(long itemID, int result)- Specified by:
onItemNotSubscribed
in interfaceISteamWorkshopCallback
-
onItemDownloaded
public void onItemDownloaded(long itemID)- Specified by:
onItemDownloaded
in interfaceISteamWorkshopCallback
-
onItemNotDownloaded
public void onItemNotDownloaded(long itemID, int result)- Specified by:
onItemNotDownloaded
in interfaceISteamWorkshopCallback
-
onItemQueryCompleted
public void onItemQueryCompleted(long handle, int numResults)- Specified by:
onItemQueryCompleted
in interfaceISteamWorkshopCallback
-
onItemQueryNotCompleted
public void onItemQueryNotCompleted(long handle, int result)- Specified by:
onItemQueryNotCompleted
in interfaceISteamWorkshopCallback
-