Project Arrhythmia
A video game developed by Vitamin Games.
Loading...
Searching...
No Matches
FileManager Class Reference
+ Inheritance diagram for FileManager:

Classes

class  LevelFolder
 
class  LSFile
 

Public Member Functions

bool DeleteBeatmapFile (string _filepath)
 
void DeleteFileRaw (string _filepath)
 
void DeleteFile (string _filepath)
 
void DeleteFile (string _filepath, string _filename)
 
string LoadJSONFileRaw (string _filepath)
 
string LoadJSONFile (string _filepath)
 
IEnumerator LoadImageFileRaw (string _filepath, System.Action< Sprite > callback, System.Action< string, string > onError)
 
IEnumerator LoadRawFile (string _filepath, System.Action< byte[]> callback)
 
async Task< AudioClip > LoadClip (string path)
 
IEnumerator LoadMusicFile (string _filepath, System.Action< AudioClip > callback, bool _streaming=false)
 
List< LevelFolderGetFolderList (string _path)
 
List< LSFileGetFileFolderList (string _path, string _fileType=null)
 
List< LSFileGetFileList (string _path, string _fileType=null)
 
VGFunctions.LSError ZipEditorBeatmap (string _beatmapName)
 Zips up a given editor beatmap level and returns the filepath to the zip.
 
bool UnZipBeatmap (string _beatmapName)
 Unzips a downloaded arcade beatmap.
 

Static Public Member Functions

static bool CheckIfDirectoryExists (string _filepath, bool _create=true)
 
static string FormatPath (string _filename)
 Makes path lowercase and removed spaces.
 
static bool CheckIfFileExists (string _filepath)
 
static string GetAppPath ()
 
static string ArcadeBeatmapFilePath (string _beatmapName)
 
static string EditorBeatmapFilePath (string _beatmapName)
 
static string EditorBeatmapFilePathWithLegacy (string _beatmapName, DataManager.FileType _fileType, out bool isLegacy)
 
static string EditorBeatmapFilePath (string _beatmapName, DataManager.FileType _fileType, bool _checkForFile=true)
 
static string EditorBeatmapFilePathLegacy (string _beatmapName, DataManager.FileType _fileType)
 

Static Public Attributes

static FileManager inst
 

Private Member Functions

void Awake ()
 

Static Private Attributes

static string className = "[<color=#FF9800>FileManager</color>] \n"
 

Member Function Documentation

◆ FormatPath()

static string FileManager.FormatPath ( string _filename)
static

Makes path lowercase and removed spaces.

Parameters
_filename
Returns

◆ UnZipBeatmap()

bool FileManager.UnZipBeatmap ( string _beatmapName)

Unzips a downloaded arcade beatmap.

Parameters
_beatmapNameName of downloaded beatmap.
Returns

◆ ZipEditorBeatmap()

VGFunctions.LSError FileManager.ZipEditorBeatmap ( string _beatmapName)

Zips up a given editor beatmap level and returns the filepath to the zip.

Parameters
_beatmapName
Returns

The documentation for this class was generated from the following file: