Table of Contents

Struct CharacterFetch

Namespace
FishMMO.Server.Implementation.World.SceneServer
Assembly
FishMMO.Server.dll

What a participant fetched for one character as it loads, or why it could not.

public readonly struct CharacterFetch
Inherited Members

Properties

Data

What was fetched, handed back to the participant's apply; may be null.

public object Data { get; }

Property Value

object

ErrorCode

The error code of a failed fetch.

public string ErrorCode { get; }

Property Value

string

ErrorMessage

The error message of a failed fetch.

public string ErrorMessage { get; }

Property Value

string

IsSuccess

Whether the fetch worked; a failed fetch abandons the load.

public bool IsSuccess { get; }

Property Value

bool

Methods

Failed(string, string)

A fetch that failed.

public static CharacterFetch Failed(string errorCode, string errorMessage)

Parameters

errorCode string
errorMessage string

Returns

CharacterFetch

Ok(object)

A fetch that worked.

public static CharacterFetch Ok(object data)

Parameters

data object

Returns

CharacterFetch