Table of Contents

Interface IRuntimeDataContainer<TNetworkManager, TServerManager, TConnection, TDataContainer>

Namespace
FishMMO.Server.Core
Assembly
FishMMO.Server.dll

Generic interface for runtime data containers that store mutable server state. Data containers are managed by Server.cs and provide type-safe access to runtime data without coupling data storage to behaviour logic.

public interface IRuntimeDataContainer<TNetworkManager, TServerManager, TConnection, TDataContainer> : IRuntimeDataContainer, IServerComponent<TNetworkManager, TServerManager, TConnection, IRuntimeDataContainer>, IServerComponent where TDataContainer : IRuntimeDataContainer

Type Parameters

TNetworkManager

The concrete network manager or wrapper type.

TServerManager

The concrete server manager type.

TConnection

The transport's connection representation.

TDataContainer

The concrete data container type.

Inherited Members

Methods

Clear()

Clears all runtime data in this container, resetting it to initial state. Called during server shutdown or when data needs to be reset.

void Clear()

Initialize(IServer<TNetworkManager, TConnection, IRuntimeDataContainer>, TServerManager)

Initializes the container with server and manager references. Called by the registry during server startup.

ServerComponentInitializationStatus Initialize(IServer<TNetworkManager, TConnection, IRuntimeDataContainer> server, TServerManager serverManager)

Parameters

server IServer<TNetworkManager, TConnection, IRuntimeDataContainer>

The server instance.

serverManager TServerManager

The server manager instance.

Returns

ServerComponentInitializationStatus

The initialization status.