s&box docs

public sealed class Sandbox.Storage.Entry

A folder of content stored on disk

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

public Entry(string type)

Creates a new storage entry with the specified type

Parameters

  • type: The content type (letters only, 1-16 characters)

Methods

Showing 6 methods

public void Delete()

Deletes this storage entry and all its files from disk

public T GetMeta(string key, T defaultValue = null)

Get a meta value

Parameters

  • defaultValue: Default: null

public void SetMeta(string key, T value)

Set a meta value

public void SetThumbnail(Sandbox.Bitmap bitmap)

Sets the thumbnail for this storage entry

Parameters

  • bitmap: The bitmap to use as the thumbnail

Properties

Showing 5 properties

public System.DateTimeOffset Sandbox.Storage.Entry.Created { get; set; }

When this content was created

public Sandbox.BaseFileSystem Sandbox.Storage.Entry.Files { get; set; }

This is where you save and load your files to

public string Sandbox.Storage.Entry.Id { get; set; }

The identity of this content

public Sandbox.Texture Sandbox.Storage.Entry.Thumbnail { get; set; }

Gets the thumbnail texture for this storage entry, if one exists

public string Sandbox.Storage.Entry.Type { get; set; }

The type of content, eg "save", "dupe"

Metadata

FieldValue
Namespaceglobal
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Storage.Entry

On this page