Table of Contents

Class CharacterCreationContributor

Namespace
FishMMO.Server.Implementation.LoginServer
Assembly
FishMMO.Server.dll

A module's share of a new character: rows prepared from templates on the main thread, written inside the creation's transaction. The Factions module's starting standings are one.

public abstract class CharacterCreationContributor
Inheritance
CharacterCreationContributor
Inherited Members

Remarks

Declared with [assembly: CharacterCreationContributor(typeof(MyContributor))], so character creation names no module: removing one removes its rows from new characters and nothing else.

Properties

Name

For logs.

public abstract string Name { get; }

Property Value

string

Methods

PersistAsync(IDatabaseServiceRegistry, long, object)

Worker, inside the creation's transaction: writes prepared for the new character. False fails the creation, which then rolls back (a character missing part of what it starts with is worse than a retry).

public abstract Task<bool> PersistAsync(IDatabaseServiceRegistry services, long characterID, object prepared)

Parameters

services IDatabaseServiceRegistry
characterID long
prepared object

Returns

Task<bool>

Prepare(RaceTemplate)

Main thread: what a character of race starts with, as plain data (no Unity objects: it is read on a worker); null when it starts with nothing of this module's.

public abstract object Prepare(RaceTemplate race)

Parameters

race RaceTemplate

Returns

object