public static ERemoteStoragePublishedFileVisibility ToSteam( this MyPublishedFileVisibility visibility) { switch (visibility) { case MyPublishedFileVisibility.Public: return(ERemoteStoragePublishedFileVisibility.k_ERemoteStoragePublishedFileVisibilityPublic); case MyPublishedFileVisibility.FriendsOnly: return(ERemoteStoragePublishedFileVisibility.k_ERemoteStoragePublishedFileVisibilityFriendsOnly); case MyPublishedFileVisibility.Private: return(ERemoteStoragePublishedFileVisibility.k_ERemoteStoragePublishedFileVisibilityPrivate); default: return((ERemoteStoragePublishedFileVisibility)(int)visibility); } }
internal static void PublishWorkshopFile(string file, string previewFile, string title, string description, string longDescription, MyPublishedFileVisibility visibility, string[] tags, Action <bool, MyRemoteStoragePublishFileResult> onCallResult) { if (EnsureGameService()) { m_gameServiceCache.PublishWorkshopFile(file, previewFile, title, description, longDescription, visibility, tags, onCallResult); } }