This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Migration
Migrating to UNIGINE 2.0
C++ API Migration
Migrating from UNIGINE 2.0 to UNIGINE 2.1
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Unigine::FileSystem Class

File list access and mesh streaming functions have been added to the Unigine::FileSystem class.

UNIGINEUNIGINE 2.0Comments
-int getNumModifiers() Returns the total number of file modifiers registered in the file system.
-const char * getModifier(int num) Returns the name of the given modifier.
-void addModifier(const char * name) Registers a new modifier in the file system.
-void removeModifier(const char * name) Unregisters a given modifier in the file system.
-void clearModifiers() Unregister all modifiers in the file system.
-int getNumFiles() Returns the number of files cached by the file system.
-void getFileNames(Vector< String > & names) Fills the given vector with the list of unarchived files cached by the file system.
-const char * getFileName(const char * name) Returns the relative path to the file by the given partial one.
-int isFile(const char * name) Checks if a given file exists in the file system.
-int isKnownFile(const char * name) Checks if the given file is known to the file system.
-int addKnownFile(const char * name) Registers the regular file name as known and appends it into the map used for fast searching.
-int getNumPackages() Returns the number of ZIP and UNG packages inside the data directory (the directory specified as an argument of the data_path command-line option).
-int findPackage(const char * name) Checks if an UNG or ZIP package has been added into the file system.
-const char * getPackageName(int num) Returns a name of a given ZIP or UNG package.
-int getNumPackageFiles(int num) Returns the number of files inside of a given ZIP or UNG package.
-void getPackageFileNames(int num, Vector< String > & names) Fills the given vector with the list of files in the specified ZIP or UNG package.
-const char * getPackageFileName(int num, const char * name) Returns the full path to given file relative to the package root directory. The path includes the name of the given file.
-int isPackageFile(int num, const char * name) Checks if the given file exists in the package.
-int loadMesh(const char * name, int group, float weight) Adds a mesh to the background loading queue in the alphabetical order.
-int removeMesh(const char * name) Removes a mesh from the loading queue.
-int forceMesh(const char * name) Loads a mesh immediately after calling the function.
-int checkMesh(const char * name) Checks whether the mesh was loaded to the queue or not.
virtual int isBufferFile (const char * name) const =0virtual int isBlobFile (const char * name) const =0 Unigine::Buffer changed to Unigine::Blob.
virtual int addBufferFile (const char * name) const =0virtual int addBlobFile (const char * name) const =0 Unigine::Buffer changed to Unigine::Blob.
virtual int removeBufferFile (const char * name) const =0virtual int removeBlobFile (const char * name) const =0 Unigine::Buffer changed to Unigine::Blob.
Last update: 03.07.2017
Build: ()