libER 0.1.4.2
ELDEN RING API library
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | List of all members
from::CS::SoloParamRepository Class Reference

A singleton responsible for storing param resource capsules. More...

#include <cs_param.hpp>

Inheritance diagram for from::CS::SoloParamRepository:
from::FD4::FD4ResCap from::FD4::FD4ResCapHolderItem from::FD4::FD4ComponentBase

Public Member Functions

liber::optref< param::param_file * > get_param_file (param::param_index index)
 Get the raw param file at the associated param index.
 
- Public Member Functions inherited from from::FD4::FD4ResCap
virtual void set_debug (bool value) LIBER_INTERFACE
 Set the internal debugging state.
 
- Public Member Functions inherited from from::FD4::FD4ResCapHolderItem
DLTX::FD4BasicHashStringname ()
 Get the item name.
 
const DLTX::FD4BasicHashStringname () const
 Get the item name (const).
 
FD4ResCapHolderItemnext ()
 Get the next item in the hash table.
 
const FD4ResCapHolderItemnext () const
 Get the next item in the hash table (const).
 
size_tref_count ()
 Get the reference count of the item.
 
const size_tref_count () const
 Get the reference count of the item (const).
 
- Public Member Functions inherited from from::FD4::FD4ComponentBase
virtual LIBERAPI DLRF::DLRuntimeClassget_runtime_class () noexcept
 Get the runtime class object.
 

Static Public Member Functions

static LIBERAPI bool wait_for_params (int timeout)
 Lock until the param repository is loaded or the time runs out.
 

Detailed Description

A singleton responsible for storing param resource capsules.

The capsules are stored in a flat table with param::param_count entries.

Member Function Documentation

◆ get_param_file()

liber::optref< param::param_file * > from::CS::SoloParamRepository::get_param_file ( param::param_index  index)
inline

Get the raw param file at the associated param index.

Parameters
indexa value from the param index enum
Returns
liber::optref<param::param_file*>

◆ wait_for_params()

static LIBERAPI bool from::CS::SoloParamRepository::wait_for_params ( int  timeout)
static

Lock until the param repository is loaded or the time runs out.

Warning
POTENTIAL DEADLOCK
DO NOT call this function from a thread that the game's main thread may wait on.
DO NOT CALL THIS FUNCTION FROM DLLMAIN.
Parameters
timeouttime in ms before abandoning the wait
Returns
true wait succeeded
false wait timed out

The documentation for this class was generated from the following file: