Dooclass

A visual scripting task composed of executable blocks.

objectDoo
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.Doo

Constructors1

Showing 1 constructors

public Doo()PUBLICCONSTRUCTOR

Methods8

Showing 8 methods

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

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

ParameterTypeDescription
parentBlock
blockToInsertBlock
Returns:void

public bool DeleteBlock(Sandbox.Doo.Block value)PUBLIC

Find and delete this block from the Doo tree.

ParameterTypeDescription
valueBlock
Returns:bool

public string GetLabel()PUBLIC

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

Returns:string

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

Insert a block after the target block.

ParameterTypeDescription
targetBlock
blockToInsertBlock
Returns:bool

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

Insert a block before the target block.

ParameterTypeDescription
targetBlock
blockToInsertBlock
Returns:bool

public bool IsEmpty()PUBLIC

Returns true if this Doo has no blocks.

Returns:bool

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

Deserializes a Doo from JSON.

ParameterTypeDescription
readerUtf8JsonReader
typeToConvertType
Returns:object

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

Serializes a Doo to JSON.

ParameterTypeDescription
valueobject
writerUtf8JsonWriter
Returns:void

Properties1

Showing 1 properties

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

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

Returns:List<Block>

On this page