Table of Contents

Interface INamingSystem<TConnection>

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

Engine-agnostic public API for the naming system used to resolve IDs to human-readable names and to resolve names back to IDs. Implementations should prefer local caches when available and fall back to database lookups. The connection parameter is typed as object so this contract remains independent of the networking transport.

public interface INamingSystem<TConnection> : IServerBehaviour, IServerComponent

Type Parameters

TConnection

Methods

SendNamingBatchBroadcast(TConnection, NamingSystemType, long[], string[])

Send several resolved names of one type back to the requesting connection in one reply.

void SendNamingBatchBroadcast(TConnection conn, NamingSystemType type, long[] ids, string[] names)

Parameters

conn TConnection

Opaque connection object representing the requester.

type NamingSystemType

Type of naming resolution (for example character or guild).

ids long[]

Identifiers answered.

names string[]

The name of the id at the same index, or empty when no such entity exists. The same length as ids.

SendNamingBroadcast(TConnection, NamingSystemType, long, string)

Send a resolved name for the given ID back to the requesting connection.

void SendNamingBroadcast(TConnection conn, NamingSystemType type, long id, string name)

Parameters

conn TConnection

Opaque connection object representing the requester.

type NamingSystemType

Type of naming resolution (for example character or guild).

id long

Identifier that was resolved.

name string

Resolved human-readable name for the id.

SendReverseNamingBroadcast(TConnection, NamingSystemType, string, long, string)

Send the result of a reverse-name lookup (name -> id) back to the requester. If the name was not found the implementation should send an appropriate payload indicating failure (commonly id = 0 and empty name).

void SendReverseNamingBroadcast(TConnection conn, NamingSystemType type, string nameLowerCase, long id, string name)

Parameters

conn TConnection

Opaque connection object representing the requester.

type NamingSystemType

Type of naming resolution requested.

nameLowerCase string

Lowercased name that was searched for.

id long

Resolved identifier (0 if not found).

name string

Resolved canonical name (empty if not found).