Entryclass

A folder of content stored on disk

object→Entry
Namespace
global
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.Storage.Entry

Constructors1

Showing 1 constructors

public Entry(string type)PUBLICCONSTRUCTOR

Creates a new storage entry with the specified type

ParameterTypeDescription
typestringThe content type (letters only, 1-16 characters)

Methods6

Showing 6 methods

public void Delete()PUBLIC

Deletes this storage entry and all its files from disk

Returns:void—

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

Get a meta value

ParameterTypeDescription
keystring—
defaultValue = nullT—
Returns:T—

public void SetMeta(string key, T value)PUBLIC

Set a meta value

ParameterTypeDescription
keystring—
valueT—
Returns:void—

public void SetThumbnail(Sandbox.Bitmap bitmap)PUBLIC

Sets the thumbnail for this storage entry

ParameterTypeDescription
bitmapBitmapThe bitmap to use as the thumbnail
Returns:void—

Properties5

Showing 5 properties

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

When this content was created

Returns:DateTimeOffset—

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

The identity of this content

Returns:string—

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

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

Returns:Texture—

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

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

Returns:string—

On this page