Table of Contents

Interface ICharacterMappingData<TConnection>

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

Runtime data container for character-to-connection mappings and character lookups. Provides read-only access to all character mapping collections.

public interface ICharacterMappingData<TConnection> : IRuntimeDataContainer, IServerComponent

Type Parameters

TConnection

Properties

CharactersByID

Maps character IDs to player character instances.

Dictionary<long, IPlayerCharacter> CharactersByID { get; }

Property Value

Dictionary<long, IPlayerCharacter>

CharactersByLowerCaseName

Maps lowercase character names to player character instances for case-insensitive lookups.

Dictionary<string, IPlayerCharacter> CharactersByLowerCaseName { get; }

Property Value

Dictionary<string, IPlayerCharacter>

CharactersByWorld

Maps world server IDs to dictionaries of character IDs and player character instances.

Dictionary<long, Dictionary<long, IPlayerCharacter>> CharactersByWorld { get; }

Property Value

Dictionary<long, Dictionary<long, IPlayerCharacter>>

ConnectionCharacters

Maps network connections to player character instances.

Dictionary<TConnection, IPlayerCharacter> ConnectionCharacters { get; }

Property Value

Dictionary<TConnection, IPlayerCharacter>

SessionTokens

Maps character IDs to their session ownership info (token + server ID). Used to release character sessions via ReleaseAsync on disconnect.

Dictionary<long, CharacterSessionInfo> SessionTokens { get; }

Property Value

Dictionary<long, CharacterSessionInfo>

WaitingSceneLoadCharacters

Maps network connections to player characters waiting for scene load completion.

Dictionary<TConnection, IPlayerCharacter> WaitingSceneLoadCharacters { get; }

Property Value

Dictionary<TConnection, IPlayerCharacter>