ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
Public Attributes | Protected Member Functions | List of all members
CP_SDK::CPConfig Class Reference

ChatPlex SDK config. More...

#include <CPConfig.hpp>

Inheritance diagram for CP_SDK::CPConfig:
Inheritance graph
[legend]
Collaboration diagram for CP_SDK::CPConfig:
Collaboration graph
[legend]

Public Attributes

bool FirstRun = true
 
bool FirstChatServiceRun = true
 

Protected Member Functions

void Reset_Impl () override
 Reset config to default.
 
 CP_SDK_JSON_SERIALIZE_DECL () override
 Write the document.
 
 CP_SDK_JSON_UNSERIALIZE_DECL () override
 Read the document.
 
virtual std::filesystem::path GetRelativePath () override
 Get relative config path.
 
virtual void OnInit (bool p_OnCreation) override
 On config init.
 
- Protected Member Functions inherited from CP_SDK::Config::JsonConfig
 JsonConfig ()
 Constructor.
 
virtual ~JsonConfig ()
 Destructor.
 
virtual std::filesystem::path GetFullPath ()
 Get full config path.
 
void Init ()
 Init config.
 
void WriteFile (std::filesystem::path p_FullPath)
 Write file.
 

Additional Inherited Members

- Public Member Functions inherited from CP_SDK::Config::JsonConfig
void Warmup ()
 Dummy method for warmup.
 
void Reset ()
 Reset config to default.
 
void Save ()
 Save config file.
 

Detailed Description

ChatPlex SDK config.

Definition at line 8 of file CPConfig.hpp.

Member Function Documentation

◆ CP_SDK_JSON_SERIALIZE_DECL()

CP_SDK::CPConfig::CP_SDK_JSON_SERIALIZE_DECL ( )
overrideprotectedvirtual

Write the document.

Parameters
p_DocumentTarget

Implements CP_SDK::Config::JsonConfig.

◆ CP_SDK_JSON_UNSERIALIZE_DECL()

CP_SDK::CPConfig::CP_SDK_JSON_UNSERIALIZE_DECL ( )
overrideprotectedvirtual

Read the document.

Parameters
p_DocumentSource

Implements CP_SDK::Config::JsonConfig.

◆ GetRelativePath()

virtual std::filesystem::path CP_SDK::CPConfig::GetRelativePath ( )
overrideprotectedvirtual

Get relative config path.

Implements CP_SDK::Config::JsonConfig.

◆ OnInit()

virtual void CP_SDK::CPConfig::OnInit ( bool  p_OnCreation)
overrideprotectedvirtual

On config init.

Parameters
p_OnCreationOn creation

Implements CP_SDK::Config::JsonConfig.

◆ Reset_Impl()

void CP_SDK::CPConfig::Reset_Impl ( )
overrideprotectedvirtual

Reset config to default.

Implements CP_SDK::Config::JsonConfig.

Member Data Documentation

◆ FirstChatServiceRun

bool CP_SDK::CPConfig::FirstChatServiceRun = true

Definition at line 14 of file CPConfig.hpp.

◆ FirstRun

bool CP_SDK::CPConfig::FirstRun = true

Definition at line 13 of file CPConfig.hpp.


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