Table of Contents

Interface ICharacterPersistenceHost

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

What the character save and load lend a CharacterPersistenceParticipant: the database services, the main thread, and the characters resident on this server.

public interface ICharacterPersistenceHost

Properties

Services

The database services, or null when the server has no database.

IDatabaseServiceRegistry Services { get; }

Property Value

IDatabaseServiceRegistry

Methods

TryEnqueueMainThread(Action)

Runs action on the main thread; false when the queue refused it.

bool TryEnqueueMainThread(Action action)

Parameters

action Action

Returns

bool

TryGetResidentCharacter(long, out IPlayerCharacter)

The character with characterID, while it is resident here.

bool TryGetResidentCharacter(long characterID, out IPlayerCharacter character)

Parameters

characterID long
character IPlayerCharacter

Returns

bool

TryGetSystem<T>(out T)

A server system on this server, by its contract (a party participant reaches the party system).

bool TryGetSystem<T>(out T system) where T : class, IServerBehaviour

Parameters

system T

Returns

bool

Type Parameters

T