s&box docs

public class Sandbox.Doo

A visual scripting task composed of executable blocks.

Constructors

Showing 1 constructors

Methods

Showing 8 methods

public void AddChild(Sandbox.Doo.Block parent, Sandbox.Doo.Block blockToInsert)

Add a block as a child of the target block's body.

public bool DeleteBlock(Sandbox.Doo.Block value)

Find and delete this block from the Doo tree.

public string GetLabel()

Returns a short display label describing this Doo's contents.

public bool InsertAfter(Sandbox.Doo.Block target, Sandbox.Doo.Block blockToInsert)

Insert a block after the target block.

public bool InsertBefore(Sandbox.Doo.Block target, Sandbox.Doo.Block blockToInsert)

Insert a block before the target block.

public bool IsEmpty()

Returns true if this Doo has no blocks.

public static override object JsonRead(System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert)

Deserializes a Doo from JSON.

public static override void JsonWrite(object value, System.Text.Json.Utf8JsonWriter writer)

Serializes a Doo to JSON.

Properties

Showing 1 properties

public System.Collections.Generic.List`1<Sandbox.Doo.Block> Sandbox.Doo.Body { get; set; }

The top-level list of blocks that make up this task.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Doo

On this page