Blockclass

Base class for all executable blocks within a Doo.

objectBlock
Namespace
global
Assembly
Sandbox.Engine
Declaration
public class Sandbox.Doo.Block

Constructors1

Showing 1 constructors

public Block()PUBLICCONSTRUCTOR

Methods4

Showing 4 methods

public virtual void CollectArguments(System.Collections.Generic.HashSet`1<string> arguments)PUBLICVIRTUAL

ParameterTypeDescription
argumentsHashSet<string>
Returns:void

public virtual string GetNodeString()PUBLICVIRTUAL

Returns a human-readable string describing this block for display in the editor.

Returns:string

public virtual bool HasBody()PUBLICVIRTUAL

Returns true if this can have child nodes

Returns:bool

public virtual void Reset()PUBLICVIRTUAL

Reset this block to some sensible defaults. This is called when the block is first added, so this is a good opportunity to set up default values for properties.

Returns:void

Properties1

Showing 1 properties

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

Optional list of child blocks nested inside this block.

Returns:List<Block>

On this page