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
ErrorCode
The error code of a failed fetch.
public string ErrorCode { get; }
Property Value
ErrorMessage
The error message of a failed fetch.
public string ErrorMessage { get; }
Property Value
IsSuccess
Whether the fetch worked; a failed fetch abandons the load.
public bool IsSuccess { get; }
Property Value
Methods
Failed(string, string)
A fetch that failed.
public static CharacterFetch Failed(string errorCode, string errorMessage)
Parameters
Returns
Ok(object)
A fetch that worked.
public static CharacterFetch Ok(object data)
Parameters
dataobject