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
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
connTConnectionOpaque connection object representing the requester.
typeNamingSystemTypeType of naming resolution (for example character or guild).
idlongIdentifier that was resolved.
namestringResolved 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
connTConnectionOpaque connection object representing the requester.
typeNamingSystemTypeType of naming resolution requested.
nameLowerCasestringLowercased name that was searched for.
idlongResolved identifier (0 if not found).
namestringResolved canonical name (empty if not found).