![]() |
Fling Engine
0.00.1
Fling Engine is a game engine written in Vulkan
|
A file is a basic text file that contains a basic text file. More...
#include <File.h>
Inherits Fling::Resource.
Public Member Functions | |
| File (Guid t_ID) | |
| Construct a new File object. More... | |
| const char * | GetData () const |
| Get char* that represents the text in this file. More... | |
| size_t | GetFileLength () const |
| Get the File Length object. More... | |
| bool | IsLoaded () const |
| Returns true if this file resource is loaded or not (i.e. More... | |
Public Member Functions inherited from Fling::Resource | |
| Resource (Fling::Guid t_ID) | |
| virtual | ~Resource ()=default |
| Fling::Guid_Handle | GetGuidHandle () const |
| Get GUID handle (just an int) for this resources guid. More... | |
| const std::string & | GetGuidString () const |
| Get the human-readable string representation of this GUID. More... | |
| std::string | GetFilepathReleativeToAssets () const |
| Returns the full file path that is relative to the assets path based on the GUID of this resource. More... | |
Static Public Member Functions | |
| static std::shared_ptr< Fling::File > | Create (Guid t_ID) |
Private Member Functions | |
| void | LoadFile () |
| Loads the file based on Guid path. More... | |
Private Attributes | |
| std::vector< char > | m_Characters |
| Array of characters that represents this file. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Fling::Resource | |
| Fling::Guid | m_Guid |
| std::string | m_HumanReadableName |
A file is a basic text file that contains a basic text file.
|
explicit |
Construct a new File object.
| t_ID | The GUID that represents the file path to this file. |
|
static |
|
inline |
Get char* that represents the text in this file.
|
inline |
Get the File Length object.
|
inline |
Returns true if this file resource is loaded or not (i.e.
has any characters in the file)
|
private |
Loads the file based on Guid path.
|
private |
Array of characters that represents this file.
1.8.13