IWriter¶
Source:
Assets/UpscaleSDK/Core/Saves/Runtime/FileSystems/IWriter.cs
interface IWriter¶
Interface for writing files to a file system.
Events¶
public event Action<int, string> OnWriteError¶
Event triggered when an error occurs during a write operation. Error code may be presented as an integer or string.
Methods¶
public void Write(string fileName, string extension, string data)¶
Writes data to a file with the specified name and extension.
Parameters
| Name | Description |
|---|---|
fileName |
Name of the file to write to. |
extension |
File extension of the file. |
data |
Data to write to the file. |