Table of Contents

Class TextCommandResult

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public class TextCommandResult
Inheritance
TextCommandResult
Inherited Members
Extension Methods

Fields

Data

public object Data

Field Value

object

ErrorCode

public string ErrorCode

Field Value

string

MessageParams

public object[] MessageParams

Field Value

object[]

Status

public EnumCommandStatus Status

Field Value

EnumCommandStatus

StatusMessage

Will be displayed with a Lang.Get()

public string StatusMessage

Field Value

string

Properties

Deferred

public static TextCommandResult Deferred { get; }

Property Value

TextCommandResult

DeferredHandler

public static OnCommandDelegate DeferredHandler { get; }

Property Value

OnCommandDelegate

Methods

Error(string, string)

public static TextCommandResult Error(string message, string errorCode = "")

Parameters

message string
errorCode string

Returns

TextCommandResult

Success(string, object)

public static TextCommandResult Success(string message = "", object data = null)

Parameters

message string
data object

Returns

TextCommandResult