Quantum 3 3.1.0

Public Member Functions | Public Attributes | List of all members
Quantum.ServerSharedResources Class Reference

Default implementation of IDeterministicSharedResources. Loads the FP look up tables and the asset database (from disk, or from the embedded resource as fallback) once into a resource manager that is shared by all server rooms. More...

Inherits IDeterministicSharedResources.

Public Member Functions

void Load (DeterministicSharedResourcesArguments args)
 Loads the FP look up tables and the asset database. Does nothing if already loaded. Throws on errors. More...
 
void Unload ()
 Unloads the shared resource manager. More...
 

Public Attributes

ResourceManagerStatic ResourceManager => _resourceManager
 The shared resource manager, null until Load succeeded. More...
 

Detailed Description

Default implementation of IDeterministicSharedResources. Loads the FP look up tables and the asset database (from disk, or from the embedded resource as fallback) once into a resource manager that is shared by all server rooms.

Member Function Documentation

◆ Load()

void Quantum.ServerSharedResources.Load ( DeterministicSharedResourcesArguments  args)
inline

Loads the FP look up tables and the asset database. Does nothing if already loaded. Throws on errors.

Parameters
argsLoad arguments

◆ Unload()

void Quantum.ServerSharedResources.Unload ( )
inline

Unloads the shared resource manager.

Member Data Documentation

◆ ResourceManager

ResourceManagerStatic Quantum.ServerSharedResources.ResourceManager => _resourceManager

The shared resource manager, null until Load succeeded.