class
Entry
public sealed class Entry A folder of content stored on disk
Constructors
Entry(String type) Creates a new storage entry with the specified type
type — The content type (letters only, 1-16 characters) Properties
| Name | Type | Description |
|---|---|---|
Id | String | The identity of this content |
Type | String | The type of content, eg "save", "dupe" |
Created | DateTimeOffset | When this content was created |
Files | BaseFileSystem | This is where you save and load your files to |
Thumbnail | Texture | Gets the thumbnail texture for this storage entry, if one exists |
Methods
Void SetMeta(String key, T value) Set a meta value
T GetMeta(String key, T defaultValue = null) Get a meta value
Void SetThumbnail(Bitmap bitmap) Sets the thumbnail for this storage entry
bitmap — The bitmap to use as the thumbnail Void Delete() Deletes this storage entry and all its files from disk
Void Publish(String title = Unnammed, String[] tags = null, Dictionary<String, String> keyvalues = null) Void Publish(WorkshopPublishOptions options) Publishes this storage entry to the workshop